The GetCurrentWindowAvailableTime WMI class method, in Configuration Manager, gets the time remaining in a currently active service window for a specified type.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
uint32 GetCurrentWindowAvailableTime( [IN] UInt32 ServiceWindowType, [IN] Boolean FallbackToAllProgramsWindow, [OUT] UInt32 WindowAvailableTime ); |
Parameters
- ServiceWindowType
- Data type: UInt32Qualifiers: [in]Type of service window.
The following table shows the list of possible values.
Value Service Window Type Description 1
ALLPROGRAM_SERVICEWINDOW
All Programs Service Window
2
PROGRAM_SERVICEWINDOW
Program Service Window
3
REBOOTREQUIRED_SERVICEWINDOW
Reboot Required Service Window
4
SOFTWAREUPDATE_SERVICEWINDOW
Software Update Service Window
5
OSD_SERVICEWINDOW
OSD Service Window
6
USER_DEFINED_SERVICE_WINDOW
Corresponds to non-working hours.
- FallbackToAllProgramsWindow
- Data type: BooleanQualifiers: [in]true if the generic All programs window service window is to be used when a window specified in ServiceWindowType is not available; otherwise, false.
- WindowAvailableTime
- Data type: UInt32Qualifiers: [out] Available time remaining for service window.
Return Values
A UInt32 data type that is 0 to indicate success or nonzero to indicate failure.
For information about handling returned errors, see About Configuration Manager Errors.
Remarks
Requirements
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.