IAPI::SetSystemTime

property SetSystemTime.

Sets the System Time with optionally Year, Month, Day, Hour, Minute, Second.

 

HRESULT SetSystemTime(
  long Year,
  long Month,
  long Day,
  long Hour,
  long Minute,
  long Second,
  long *pVal
);

Parameters

Year

[in] .   Year number with four digits as 2000, 2002…. or zero to ignore.

Month

[in] .   Month number fom 1 to 12 (zero to ignore)

Day

[in] .   Day number from 1 to 31 (zero to ignore)

Hour

[in] .   Hour from 0 to 24 (-1 to ignore)

Minute

[in] .   Minute from 0 to 60 (-1 to ignore)

Second

[in] .   Second from 0 to 60 (-1 to ignore)

pVal

[out, retval] The returned value is: 1 if OK, 0 if failed

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI