WSManGetSessionOptionAsDword function (wsman.h)
Gets the value of a session option.
Syntax
DWORD WSManGetSessionOptionAsDword(
[in] WSMAN_SESSION_HANDLE session,
WSManSessionOption option,
[in, out] DWORD *value
);
Parameters
[in] session
Specifies the handle returned by a WSManCreateSession call. This parameter cannot be NULL.
option
Specifies the option to get. Not all session options can be retrieved. The options are defined in the WSManSessionOption enumeration.
[in, out] value
Specifies the value of specified session option.
Return value
This method returns zero on success. Otherwise, this method returns an error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | wsman.h |
Library | WsmSvc.lib |
DLL | WsmSvc.dll |
Redistributable | Windows Management Framework on Windows Server 2008 with SP2 and Windows Vista with SP2 |