The IProgram2::GetNextMandatoryTime method, in Configuration Manager, gets the time of when a mandatory program will run next on a client computer.

[IDL]
HRESULT GetNextMandatoryTime(
	 DATE*  pNextDate,
	 BOOL*  pbLogoff,
	 BOOL*  pbLogon
);

Parameters

pNextDate


Data type: DATEQualifiers: [out, retval]Pointer to the first future mandatory time. The value is 0 if there is not a future mandatory time.
pbLogOff


Data type: BOOLQualifiers: [out]Pointer to true if the program is scheduled to run at the next logoff.
pbLogon


Data type: BOOLQualifiers: [out]Pointer to true if the program is scheduled to run at the next logon.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK


The method succeeded.

Requirements

UIResource.dll.

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.