function UninstallProtocol(pUniqueInstallId: PChar) : DWORD;
Parameters:
pUniqueInstallId
[in] Unique ID of the subject executing driver uninstallation.
Return values:
HNERR_OK
Driver uninstalled successfully.
HNERR_WRONG_OS
This OS is not supported.
HNERR_UNINSTALL_DRIVER
Can't uninstall Packet Sniffer SDK driver.
Description:
Since version 3.1 you can install PSSDK internal drivers statically using corresponding PSSDK
functions, that allows your application to get full access to PSSDK functions under user account with
restricted rights.
The driver uninstallation process goes the following way:
1. Driver loading status is set to "Manual" (manual driver loading, the same as it is implemented
in the version 3.0 and earlier);
2. When the third and the second applications uninstall the driver, nothing happens: real
uninstallation is executed by the last application.
To use this function administrator rights are required. This function doesn't require PSSDK to
be initialized.
Example:
DWORD Res = HNPSManager.UninstallProtocol(PChar("MyCompanyNameMyAppNameWhateverElse"));
if (Res == HNERR_OK) MessageBox(...);
Requirements:
Operating system
Operating systems supported: NT/2000/XP/2003/Vista.