NCryptIsKeyHandle function

The NCryptIsKeyHandle function determines if the specified handle is a CNG key handle.

Syntax

BOOL NCryptIsKeyHandle(
  NCRYPT_KEY_HANDLE hKey
);

Parameters

hKey

The handle of the key to test.

Return Value

Returns a nonzero value if the handle is a key handle or zero otherwise.

Remarks

A service must not call this function from its StartService Function. If a service calls this function from its StartService function, a deadlock can occur, and the service may stop responding.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header ncrypt.h
Library Ncrypt.lib
DLL Ncrypt.dll