Skip to content

Latest commit

 

History

History
100 lines (72 loc) · 3.91 KB

nf-msdrm-drmsetglobaloptions.md

File metadata and controls

100 lines (72 loc) · 3.91 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist req.product ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:msdrm.DRMSetGlobalOptions
DRMSetGlobalOptions function (msdrm.h)
Sets the transport protocol to a specified value and optionally specifies whether the server lockbox is used.
DRMSetGlobalOptions
DRMSetGlobalOptions function [Active Directory Rights Management Services SDK 1.0]
msdrm/DRMSetGlobalOptions
rm.drmsetglobaloptions
rm\drmsetglobaloptions.htm
rm
fff0d503-e342-4f50-810c-bda4e9e14ad7
12/05/2018
DRMSetGlobalOptions, DRMSetGlobalOptions function [Active Directory Rights Management Services SDK 1.0], msdrm/DRMSetGlobalOptions, rm.drmsetglobaloptions
msdrm.h
Windows
Msdrm.lib
Msdrm.dll
Windows
Rights Management Services client 1.0 SP2 or later
19H1
DRMSetGlobalOptions
msdrm/DRMSetGlobalOptions
c++
APIRef
kbSyntax
DllExport
Msdrm.dll
DRMSetGlobalOptions

DRMSetGlobalOptions function

-description

[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 DRMSetGlobalOptions function sets the transport protocol to a specified value and optionally specifies whether the server lockbox is used.

-parameters

-param eGlobalOptions [in]

A value of the DRMGLOBALOPTIONS enumeration that specifies the option to set.

Only one option can be specified in each call to DRMSetGlobalOptions. For example, if both WinHTTP and the server lockbox are required, you must call DRMSetGlobalOptions twice, once with eGlobalOptions set to DRMGLOBALOPTIONS_USE_WINHTTP and once with eGlobalOptions set to DRMGLOBALOPTIONS_USE_SERVERSECURITYPROCESSOR.

-param pvdata [in]

A pointer to a void value. This parameter is not currently used.

-param dwlen [in]

The size, in bytes, of the pvdata buffer. This parameter is not currently used.

-returns

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following list. For a list of common error codes, see Common HRESULT Values.

-remarks

Applications cannot toggle between the WinHTTP and WinINet protocols.

WinINet does not support usage under the network service account. If an application will be run under the network service account, the application must specify the DRMGLOBALOPTIONS_USE_WINHTTP option.

An AD RMS-enabled server application should call the DRMSetGlobalOptions function prior to calling any other rights management functions. Calling DRMSetGlobalOptions after other rights management functions have been called will not change the type of lockbox or transport protocol in use.

-see-also

AD RMS Functions

DRMGLOBALOPTIONS