Share via


DRM_MSG_ACQUIRE_ADVISORY message

[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.]

The DRM_MSG_ACQUIRE_ADVISORY message is sent to the custom callback function in response to the DRMAcquireAdvisories function being called.

Parameters

hr

The result of the action being monitored. The contents of the pvParam parameter is dependent on the value of this parameter. This can be one of the following values.

S_DRM_CONNECTING (NULL)

A connection has not yet occurred.

S_DRM_CONNECTED (NULL)

The system has connected to a server.

S_DRM_COMPLETED (NULL)

The operation is complete.

S_DRM_INPROGRESS (A pointer to a DWORD value that contains an integer that represents the progress of the current request, from zero to 100.)

This can be used for a progress bar or other visual indicator.

pvParam

The contents of this parameter is dependent on the value in the hr parameter. For more information, see the hr parameter description.

pvContext

An application-defined value, such as a pointer to a callback function, a pointer to an event handle, or other value.

Return value

If the callback function succeeds, the function returns S_OK.

If the callback function fails, it returns an HRESULT error code.

Remarks

The DRMAcquireAdvisories function is an asynchronous function that will return before this message is sent to the callback function. It is the application's responsibility to ensure that this synchronization is properly handled.

Requirements

Product
Rights Management Services client 1.0 SP2 or later
Header
Msdrmdefs.h

See also

Creating a Callback Function

DRM_STATUS_MSG

DRMAcquireAdvisories