Packet Sniffer SDK DLL Edition

HNPSManager :: Methods :: MgrIsProtocolInstalled

 Previous Next

Return status of the protocol driver installation for current version of Packet Sniffer SDK.

Syntax:

BOOL __stdcall MgrIsProtocolInstalled();

Return values:

MgrIsProtocolInstalled return status of the protocol driver installation for current version of Packet Sniffer SDK. TRUE - PSSDK driver is installed and will be loaded statically, otherwise FALSE.

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 installation process goes the following way:

1. PSSDK driver is copied in the %SYSTEM%\Drivers directory;

2. Driver is registered in the system registry;

3. Driver loading status is set as System (static loading, i.e. on the OS startup).

This function may be useful if you want to check in your application if the protocol driver is installed. For example, an application working under restricted rights can not install PSSDK driver, but using this function you can check if it will work under current user account or not.

This function doesn't require PSSDK to be initialized.

Example:

BOOL bRes = MgrIsProtocolInstalled();
if (bRes == TRUE) MessageBox(...);

Requirements:

Operating system

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

See also:MgrInstallProtocol, MgrUninstallProtocol, MgrIsLoopBackInstalled, MgrInstallLoopBack, MgrUninstallLoopBack