Guest_imported
New member
- Jan 1, 1970
- 0
Can someone show me how to use the GetTimeZoneInformation function???
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TZId = GetTimeZoneInformation((LPTIME_ZONE_INFORMATION) &TimeZoneInformation );
switch (TZId)
{
case TIME_ZONE_ID_UNKNOWN:
// Do something
break;
case TIME_ZONE_ID_STANDARD:
// Do something
break;
case TIME_ZONE_ID_DAYLIGHT:
// Do something
break;
default:
//
// Something is wrong with the time zone information. Fail
// the logon request.
//
NtStatus = STATUS_INVALID_LOGON_HOURS;
break;
}
if (NT_SUCCESS(NtStatus))
{
// Do something
}
TIME_ZONE_INFORMATION TimeZoneInformation;
NTSTATUS NTStatus=STATUS_SUCCESS;
DWORD TZId;