IWDTFSystemAction2 interface

Defines operations and properties that support driver testing.

Members

The IWDTFSystemAction2 interface inherits from IWDTFAction2. IWDTFSystemAction2 also has these types of members:

Methods

The IWDTFSystemAction2 interface has these methods.

MethodDescription
ConnectedStandby

Puts the system into Connected Standby state and exits Connected Standby state after the desired time has passed.

GetFirstSleepState

Returns the first supported sleep state.

GetNextSleepState

Returns the next supported sleep state.

PowerAnalyzeTraceByFile

Analyzes a power trace session that has already been collected and stored in the associated trace message (.etl) log file.

PowerTracingEnd

Ends a power trace session. This method is available starting with Windows 8.

PowerTracingStart

Starts a power trace session using the default location to store the associated trace message file. This method is available starting with Windows 8.

PowerTracingStartByFile

Starts a power trace session and specifies the path to store the associated trace message file. This method is available starting with Windows 8.

RebootRestart

Restart the system and the current test.

RebootRestartWithContext

Restarts the system and the current test with context data.

Sleep

Puts the system into the desired sleep state.

 

Properties

The IWDTFSystemAction2 interface has these properties.

PropertyAccess typeDescription

Critical

Read/write

Gets or sets a value that indicates whether the the system power state is critical.

GetRebootContext

Read-only

Gets the context data after the system restarts as a result of a call to RebootRestartWithContext.

IsRestarted

Read-only

Gets a value that indicates whether the test script restarted as a result of a call to RebootRestart or RebootRestartWithContext.

IsRestartedWithContext

Read-only

Gets a value that indicates whether the test script was restarted for a specific context.

SleepWakeTimeInSeconds

Read/write

Gets or sets the time in seconds when the system will wake from the sleep state.

 

WDTF ProgID

The WDTF ProgId for the IWDTFSystemAction2 interface is "System". You must specify the WDTF ProgId when you call the HasInterface, GetInterface, GetInterfaces, and GetInterfacesIfExist methods.


Set System = WDTF.SystemDepot.ThisSystem.GetInterface("System")

Requirements

Minimum supported client

Windows XP Professional

Minimum supported server

Windows Server 2008

Namespace

Microsoft.WDTF

Assembly

WDTFSystemAction.Interop.dll

Header

WDTFSystemAction.h

IDL

WDTFSystemAction.idl

 

 

Send comments about this topic to Microsoft

Show: