NCryptIsKeyHandle function

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

Syntax


BOOL WINAPI NCryptIsKeyHandle(
  _In_  NCRYPT_KEY_HANDLE hKey
);

Parameters

hKey [in]

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]

Header

Ncrypt.h

Library

Ncrypt.lib

DLL

Ncrypt.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft