DRMCALLBACK callback function (msdrmdefs.h)

Note

The AD RMS SDK leveraging functionality exposed by the client in Msdrm.dll is available for use in Windows Server 2008, Windows Vista, Windows Server 2008 R2, Windows 7, Windows Server 2012, and Windows 8. It may be altered or unavailable in subsequent versions. Instead, use Active Directory Rights Management Services SDK 2.1, which leverages functionality exposed by the client in Msipc.dll.

Some of the functions included in the AD RMS SDK provide status information and licenses to your application by using a callback function that you must implement. The callback syntax is shown below.

Syntax

DRMCALLBACK Drmcallback;

HRESULT Drmcallback(
  DRM_STATUS_MSG unnamedParam1,
  HRESULT unnamedParam2,
  void *unnamedParam3,
  void *unnamedParam4
)
{...}

Parameters

unnamedParam1

Specifies the action being performed. This can be one of the DRM_STATUS_MSG enumeration values.

unnamedParam2

The status of the current action.

unnamedParam3

unnamedParam4

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

The following asynchronous AD RMS functions use a callback function:

Requirements

Requirement Value
Target Platform Windows
Header msdrmdefs.h

See also

Creating a Callback Function

End-User License Callback Example

Issuance License Callback Example