NCryptIsKeyHandle function (ncrypt.h)
The NCryptIsKeyHandle function determines if the specified handle is a CNG key handle.
Syntax
BOOL NCryptIsKeyHandle(
[in] NCRYPT_KEY_HANDLE hKey
);
Parameters
[in] 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
Requirement | Value |
---|---|
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 |