CRYPT_PROVIDER_REGDEFUSAGE structure (wintrust.h)

The CRYPT_PROVIDER_REGDEFUSAGE structure is used by the WintrustAddDefaultForUsage function to register callback information about a provider's default usage.

Syntax

typedef struct _CRYPT_PROVIDER_REGDEFUSAGE {
  DWORD cbStruct;
  GUID  *pgActionID;
  WCHAR *pwszDllName;
  char  *pwszLoadCallbackDataFunctionName;
  char  *pwszFreeCallbackDataFunctionName;
} CRYPT_PROVIDER_REGDEFUSAGE, *PCRYPT_PROVIDER_REGDEFUSAGE;

Members

cbStruct

Size, in bytes, of this structure.

pgActionID

GUID that specifies the provider's default action.

pwszDllName

Pointer to the name of the provider DLL.

pwszLoadCallbackDataFunctionName

Pointer to the name of the function that loads the callback data to be returned when the WintrustGetDefaultForUsage function is called with the dwAction parameter set to DWACTION_ALLOCANDFILL. This information also exists in the WINTRUST_DATA structure.

pwszFreeCallbackDataFunctionName

Pointer to the name of the function that frees allocated memory when the WintrustGetDefaultForUsage function is called with the dwAction parameter set to DWACTION_FREE. This information also exists in the WINTRUST_DATA structure.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header wintrust.h

See also

CRYPT_PROVIDER_DEFUSAGE

WINTRUST_DATA

WintrustAddDefaultForUsage