mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 14:46:09 +00:00
Split kernel32 into separate files (part 2)
This commit is contained in:
33
dll/kernel32/timezoneapi.h
Normal file
33
dll/kernel32/timezoneapi.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "minwinbase.h"
|
||||
|
||||
struct TIME_ZONE_INFORMATION {
|
||||
LONG Bias;
|
||||
WCHAR StandardName[32];
|
||||
SYSTEMTIME StandardDate;
|
||||
LONG StandardBias;
|
||||
WCHAR DaylightName[32];
|
||||
SYSTEMTIME DaylightDate;
|
||||
LONG DaylightBias;
|
||||
};
|
||||
|
||||
using LPTIME_ZONE_INFORMATION = TIME_ZONE_INFORMATION *;
|
||||
|
||||
constexpr DWORD TIME_ZONE_ID_UNKNOWN = 0;
|
||||
constexpr DWORD TIME_ZONE_ID_STANDARD = 1;
|
||||
constexpr DWORD TIME_ZONE_ID_DAYLIGHT = 2;
|
||||
constexpr DWORD TIME_ZONE_ID_INVALID = 0xFFFFFFFFu;
|
||||
|
||||
namespace kernel32 {
|
||||
|
||||
BOOL WIN_FUNC SystemTimeToFileTime(const SYSTEMTIME *lpSystemTime, LPFILETIME lpFileTime);
|
||||
BOOL WIN_FUNC FileTimeToSystemTime(const FILETIME *lpFileTime, LPSYSTEMTIME lpSystemTime);
|
||||
BOOL WIN_FUNC FileTimeToLocalFileTime(const FILETIME *lpFileTime, LPFILETIME lpLocalFileTime);
|
||||
BOOL WIN_FUNC LocalFileTimeToFileTime(const FILETIME *lpLocalFileTime, LPFILETIME lpFileTime);
|
||||
BOOL WIN_FUNC DosDateTimeToFileTime(WORD wFatDate, WORD wFatTime, LPFILETIME lpFileTime);
|
||||
BOOL WIN_FUNC FileTimeToDosDateTime(const FILETIME *lpFileTime, LPWORD lpFatDate, LPWORD lpFatTime);
|
||||
DWORD WIN_FUNC GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation);
|
||||
|
||||
} // namespace kernel32
|
||||
Reference in New Issue
Block a user