Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 1.38 KB

CryptGetKeyParam.md

File metadata and controls

68 lines (47 loc) · 1.38 KB

Home

Function name : CryptGetKeyParam

Group: Cryptography Reference - Library: advapi32


Retrieves data that governs the operations of a key.


Code examples:

CryptoAPI: Collection of Providers class

Declaration:

BOOL WINAPI CryptGetKeyParam(
	HCRYPTKEY hKey,
	DWORD dwParam,
	BYTE* pbData,
	DWORD* pdwDataLen,
	DWORD dwFlags
);  

FoxPro declaration:

DECLARE INTEGER CryptGetKeyParam IN advapi32;
	INTEGER   hKey,;
	INTEGER   dwParam,;
	STRING  @ pbData,;
	INTEGER @ pdwDataLen,;
	INTEGER   dwFlags
  

Parameters:

hKey [in] Handle to the key being queried.

dwParam [in] Specifies the query being made.

pbData [out] Pointer to a sequence of BYTEs to receive the data.

pdwDataLen [in, out] Pointer to a DWORD value specifying the size, in bytes, of the buffer pointed to by the pbData parameter.

dwFlags [in] Reserved for future use and must be zero.


Return value:

If the function succeeds, the return value is nonzero (TRUE).


Comments:

If the Microsoft Cryptographic Service Provider is used, the base symmetric keying material is not obtainable by this function or any other function.