Share via


ClearLog method of the CIM_PhysicalComputerSystemView class

An extrinsic method for clearing a log on this physical computer system.Requests that the Log be cleared of all entries.The return value shall be 0 if the request was successfully executed, 1 if the request is not supported, and 2 if an error occurred. A return code of 4096 shall indicate the request to clear log was successfully initiated, a ConcreteJob has been created, and its reference returned in the output parameter Job.

Syntax

uint32 ClearLog(
  [in] string LogInstanceID
);

Parameters

LogInstanceID [in]

Idenfier for the log that is requested to be cleared.

Return value

Completed with No Error (0)

Not Supported (1)

Failed (2)

DMTF Reserved (3 32767)

Vendor Reserved (32768 65535)

Requirements

Minimum supported client
Windows 8.1
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\Windows\HardwareManagement
MOF
Pcsvdevice.mof
DLL
PCSVdevice.dll

See also

CIM_PhysicalComputerSystemView