EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

WSManInitialize function

Initializes the Windows Remote Management Client API. WSManInitialize can be used by different clients on the same process.

Syntax


DWORD WINAPI WSManInitialize(
  DWORD flags,
  _Out_  HANDLE *apiHandle
);

Parameters

flags

A flag of type WSMAN_FLAG_REQUESTED_API_VERSION_1_0 or WSMAN_FLAG_REQUESTED_API_VERSION_1_1. The client that will use the disconnect-reconnect functionality should use the WSMAN_FLAG_REQUESTED_API_VERSION_1_1 flag.

apiHandle [out]

Defines a handle that uniquely identifies the client. This parameter cannot be NULL. When you have finished used the handle, close it by calling the WSManDeinitialize method.

Return value

This method returns zero on success. Otherwise, this method returns an error code.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework on Windows Server 2008 with SP2, Windows Server 2003 with SP2, Windows Vista with SP1, and Windows Vista with SP2

Header

Wsman.h

Library

WsmSvc.lib

DLL

WsmSvc.dll

 

 

表示:
© 2014 Microsoft