TestAndSetState method of the Win32_RDSHServer class
Compares the current state to the specified comparand; if the two match, the state is set to a new value. Regardless of the match, the current state is also returned.
Syntax
uint32 TestAndSetState(
[in] uint32 Comparand,
[in] uint32 NewState,
[out] uint32 InitState
);
Parameters
-
Comparand [in]
-
A value to compare to the current state; if the two values match, the state is set to NewState.
-
NewState [in]
-
The new value of the state.
-
InitState [out]
-
On success or failure, returns the current state.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\cimv2\rdms |
MOF |
|
DLL |
|