Sdílet prostřednictvím


IpcInitializeEnvironment function

Initializes the environment for use. This method should only be called once per process, after calling IpcInitialize and before calling any other Rights Management Services SDK 2.1 method.

Syntax

HRESULT WINAPI IpcInitializeEnvironment(void);

Parameters

This function has no parameters.

Return value

If the function succeeds, the return value is S_OK. If the function fails, it returns an HRESULT value that indicates the error.

For more information, see Error codes for a description of all RMS SDK 2.1 return values.

Remarks

You will call IpcUninitializeEnvironment in the close down of your application. For more information, see IpcUninitializeEnvironment.

Requirements

Minimum supported client
Windows Vista with SP2 [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Ipcprot.h (include Msipc.h)
Library
Msipc.lib
DLL
Msipc.dll

See also

Error codes

IpcInitialize

IpcUninitializeEnvironment