WdsCliAuthorizeSession function (wdsclientapi.h)

Converts a session with a WDS server into an authenticated session.

Syntax

HRESULT WDSCLIAPI WdsCliAuthorizeSession(
  [in, out]      HANDLE        hSession,
  [in, optional] PWDS_CLI_CRED pCred
);

Parameters

[in, out] hSession

A handle to a session with a WDS server. This was a handle returned by the WdsCliCreateSession function.

[in, optional] pCred

Pointer to a WDS_CLI_CRED structure that contains the client's credentials.

Return value

If the function succeeds, the return is S_OK.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wdsclientapi.h
Library WdsClientAPI.lib
DLL WdsClientAPI.dll

See also

WDS_CLI_CRED

WdsCliCreateSession

Windows Deployment Services Client Functions