The UserControlService WMI class method attempts to send a user-defined control code to a service managed by a system driver.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 UserControlService(
[in] uint8 ControlCode
);
Parameters
ControlCode [in]
Specifies defined values (from 128 to 255) that provide control commands specific to a user.
Return value
Returns a value of 0 (zero) if the UserControlService request was accepted, 1 (one) if the request is not supported, and any other number to indicate an error.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Namespace | Root\CIMV2 |
| MOF | CIMWin32.mof |
| DLL | CIMWin32.dll |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
