NdiRegOpenKey

RETERR NdiRegOpenKey(HNDI hndi, LPCSTR lpszSubKey, LPHKEY lphk)
HNDI hndi;            // NDI handle
LPCSTR lpszSubKey;    // address of buffer
LPHKEY lphk;          // address of key handle
 

The NdiRegOpenKey function returns a key to the NDI object's registry section. If lpszSubKey is specified, then it returns a subkey under the NDI object's registry section. This function does not create the subkey if it does not already exist.

hndi
Identifies the NDI object.
lpszSubKey
Points to a buffer that contains the null-terminated subkey string. May be NULL or empty.
lphk
Points to an HKEY handle to receive the opened registry key.

The registry key opened if lpszSubKey is NULL is the following:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Class\
    {network class name}\{driver number}\
 

where network class name is Net, NetTrans, NetClient, NetServer or NetService; and driver number is the driver number assigned by the Device Manager. The driver number has no meaning other than to distinguish it from other drivers of the same class.

NdiRegOpenKey calls SURegOpenKey ensuring compatibility during setup from within Windows 3.1.