Packet Sniffer SDK DLL Edition

HNPSManager :: Methods :: MgrUninstallLoopBack

 Previous Next

Uninstalls current PSSDK version loopback driver.

Syntax:

DWORD __stdcall MgrUninstallLoopBack(LPCTSTR pUniqueInstallId);

Parameters:

pUniqueInstallId

[in] Unique ID of the subject executing driver uninstallation.

Return values:

HNERR_OKDriver uninstalled successfully.
HNERR_WRONG_OSThis OS is not supported.
HNERR_UNINSTALL_DRIVERCan'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 = MgrUninstallLoopBack(TEXT("MyCompanyNameMyAppNameWhateverElse"));
if (Res == HNERR_OK) MessageBox(...);

Requirements:

Operating system

Operating systems supported: NT/2000/XP/2003/Vista.

Unicode

Implemented as MgrUninstallLoopBackW (Unicode) and MgrUninstallLoopBackA (ANSI).

See also:MgrInstallLoopBack, MgrInstallProtocol, MgrUninstallProtocol