mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 16:37:12 +00:00
Split kernel32 into separate files (part 2)
This commit is contained in:
92
dll/kernel32/minwinbase.h
Normal file
92
dll/kernel32/minwinbase.h
Normal file
@@ -0,0 +1,92 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
|
||||
struct SECURITY_ATTRIBUTES {
|
||||
DWORD nLength;
|
||||
LPVOID lpSecurityDescriptor;
|
||||
BOOL bInheritHandle;
|
||||
};
|
||||
|
||||
using PSECURITY_ATTRIBUTES = SECURITY_ATTRIBUTES *;
|
||||
using LPSECURITY_ATTRIBUTES = SECURITY_ATTRIBUTES *;
|
||||
|
||||
struct FILETIME {
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
};
|
||||
|
||||
using PFILETIME = FILETIME *;
|
||||
using LPFILETIME = FILETIME *;
|
||||
|
||||
struct SYSTEMTIME {
|
||||
WORD wYear;
|
||||
WORD wMonth;
|
||||
WORD wDayOfWeek;
|
||||
WORD wDay;
|
||||
WORD wHour;
|
||||
WORD wMinute;
|
||||
WORD wSecond;
|
||||
WORD wMilliseconds;
|
||||
};
|
||||
|
||||
using PSYSTEMTIME = SYSTEMTIME *;
|
||||
using LPSYSTEMTIME = SYSTEMTIME *;
|
||||
|
||||
enum FINDEX_INFO_LEVELS { FindExInfoStandard, FindExInfoBasic, FindExInfoMaxInfoLevel };
|
||||
|
||||
enum FINDEX_SEARCH_OPS {
|
||||
FindExSearchNameMatch,
|
||||
FindExSearchLimitToDirectories,
|
||||
FindExSearchLimitToDevices,
|
||||
FindExSearchMaxSearchOp
|
||||
};
|
||||
|
||||
constexpr DWORD FILE_ATTRIBUTE_DIRECTORY = 0x00000010;
|
||||
constexpr DWORD FILE_ATTRIBUTE_NORMAL = 0x00000080;
|
||||
|
||||
constexpr DWORD MAX_PATH = 260;
|
||||
|
||||
struct WIN32_FIND_DATAA {
|
||||
DWORD dwFileAttributes;
|
||||
FILETIME ftCreationTime;
|
||||
FILETIME ftLastAccessTime;
|
||||
FILETIME ftLastWriteTime;
|
||||
DWORD nFileSizeHigh;
|
||||
DWORD nFileSizeLow;
|
||||
DWORD dwReserved0;
|
||||
DWORD dwReserved1;
|
||||
char cFileName[MAX_PATH];
|
||||
char cAlternateFileName[14];
|
||||
};
|
||||
|
||||
struct WIN32_FIND_DATAW {
|
||||
DWORD dwFileAttributes;
|
||||
FILETIME ftCreationTime;
|
||||
FILETIME ftLastAccessTime;
|
||||
FILETIME ftLastWriteTime;
|
||||
DWORD nFileSizeHigh;
|
||||
DWORD nFileSizeLow;
|
||||
DWORD dwReserved0;
|
||||
DWORD dwReserved1;
|
||||
WCHAR cFileName[MAX_PATH];
|
||||
WCHAR cAlternateFileName[14];
|
||||
};
|
||||
|
||||
using PWIN32_FIND_DATAA = WIN32_FIND_DATAA *;
|
||||
using LPWIN32_FIND_DATAA = WIN32_FIND_DATAA *;
|
||||
using PWIN32_FIND_DATAW = WIN32_FIND_DATAW *;
|
||||
using LPWIN32_FIND_DATAW = WIN32_FIND_DATAW *;
|
||||
|
||||
typedef struct _OVERLAPPED {
|
||||
ULONG_PTR Internal;
|
||||
ULONG_PTR InternalHigh;
|
||||
union {
|
||||
struct {
|
||||
DWORD Offset;
|
||||
DWORD OffsetHigh;
|
||||
};
|
||||
PVOID Pointer;
|
||||
};
|
||||
HANDLE hEvent;
|
||||
} OVERLAPPED, *LPOVERLAPPED;
|
||||
Reference in New Issue
Block a user