[SDK] Reorganize header files
This commit is contained in:
parent
e48262d4d7
commit
120277161c
@ -20,4 +20,4 @@ Abstract:
|
|||||||
#include <ntstatus.h>
|
#include <ntstatus.h>
|
||||||
#include <ntimage.h>
|
#include <ntimage.h>
|
||||||
|
|
||||||
#endif
|
#endif /* !_NT_H */
|
@ -16,6 +16,28 @@ Abstract:
|
|||||||
#ifndef _NTDEF_H
|
#ifndef _NTDEF_H
|
||||||
#define _NTDEF_H
|
#define _NTDEF_H
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifndef IN
|
||||||
|
#define IN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef OUT
|
||||||
|
#define OUT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef OPTIONAL
|
||||||
|
#define OPTIONAL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef FASTCALL
|
||||||
|
#define FASTCALL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef NTAPI
|
||||||
|
#define NTAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef VOID
|
#ifndef VOID
|
||||||
#define VOID void
|
#define VOID void
|
||||||
#endif
|
#endif
|
||||||
@ -24,12 +46,6 @@ Abstract:
|
|||||||
#define CONST const
|
#define CONST const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef IN
|
|
||||||
#define IN
|
|
||||||
#define OUT
|
|
||||||
#define OPTIONAL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ANYSIZE_ARRAY
|
#ifndef ANYSIZE_ARRAY
|
||||||
#define ANYSIZE_ARRAY 1
|
#define ANYSIZE_ARRAY 1
|
||||||
#endif
|
#endif
|
||||||
@ -42,16 +58,13 @@ Abstract:
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FASTCALL
|
#ifndef NULL
|
||||||
#define FASTCALL
|
#ifdef __cplusplus
|
||||||
#endif
|
#define NULL 0
|
||||||
|
#else
|
||||||
#ifndef NTAPI
|
|
||||||
#define NTAPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef NULL
|
|
||||||
#define NULL ((VOID *)0)
|
#define NULL ((VOID *)0)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Basic types.
|
// Basic types.
|
||||||
@ -64,9 +77,9 @@ typedef unsigned short USHORT;
|
|||||||
typedef unsigned long ULONG;
|
typedef unsigned long ULONG;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Basic type pointers.
|
// Basic pointer types.
|
||||||
//
|
//
|
||||||
typedef void *PVOID;
|
typedef VOID *PVOID;
|
||||||
typedef CHAR *PCHAR;
|
typedef CHAR *PCHAR;
|
||||||
typedef SHORT *PSHORT;
|
typedef SHORT *PSHORT;
|
||||||
typedef UCHAR *PUCHAR;
|
typedef UCHAR *PUCHAR;
|
||||||
@ -74,17 +87,24 @@ typedef USHORT *PUSHORT;
|
|||||||
typedef ULONG *PULONG;
|
typedef ULONG *PULONG;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Wide characters.
|
// Logical value types.
|
||||||
//
|
|
||||||
typedef USHORT WCHAR;
|
|
||||||
typedef WCHAR *PWCHAR;
|
|
||||||
|
|
||||||
//
|
|
||||||
// Logical values.
|
|
||||||
//
|
//
|
||||||
typedef ULONG LOGICAL;
|
typedef ULONG LOGICAL;
|
||||||
typedef ULONG *PLOGICAL;
|
typedef ULONG *PLOGICAL;
|
||||||
|
|
||||||
|
//
|
||||||
|
// String types.
|
||||||
|
//
|
||||||
|
typedef CHAR *LPSTR;
|
||||||
|
typedef CONST CHAR *LPCSTR;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Wide character/string types.
|
||||||
|
//
|
||||||
|
typedef USHORT WCHAR;
|
||||||
|
typedef WCHAR *PWCHAR, *LPWSTR;
|
||||||
|
typedef CONST WCHAR *LPCWSTR;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Status codes.
|
// Status codes.
|
||||||
//
|
//
|
||||||
@ -160,21 +180,4 @@ typedef struct _LIST_ENTRY {
|
|||||||
struct _LIST_ENTRY *BackLink;
|
struct _LIST_ENTRY *BackLink;
|
||||||
} LIST_ENTRY, *PLIST_ENTRY;
|
} LIST_ENTRY, *PLIST_ENTRY;
|
||||||
|
|
||||||
//
|
#endif /* !_NTDEF_H */
|
||||||
// Runtime library definitions.
|
|
||||||
//
|
|
||||||
|
|
||||||
PVOID
|
|
||||||
RtlCopyMemory (
|
|
||||||
PVOID Destination,
|
|
||||||
CONST PVOID Source,
|
|
||||||
ULONG Length
|
|
||||||
);
|
|
||||||
|
|
||||||
PVOID
|
|
||||||
RtlZeroMemory (
|
|
||||||
PVOID Destination,
|
|
||||||
ULONG Length
|
|
||||||
);
|
|
||||||
|
|
||||||
#endif
|
|
@ -23,4 +23,4 @@ Abstract:
|
|||||||
#define IMAGE_FILE_MACHINE_I386 0x014c
|
#define IMAGE_FILE_MACHINE_I386 0x014c
|
||||||
#define IMAGE_FILE_MACHINE_AMD64 0x8664
|
#define IMAGE_FILE_MACHINE_AMD64 0x8664
|
||||||
|
|
||||||
#endif
|
#endif /* !_NTIMAGE_H */
|
29
SDK/INC/NT/ntrtl.h
Normal file
29
SDK/INC/NT/ntrtl.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*++
|
||||||
|
|
||||||
|
Copyright (c) 2024, Quinn Stephens.
|
||||||
|
Provided under the BSD 3-Clause license.
|
||||||
|
|
||||||
|
Module Name:
|
||||||
|
|
||||||
|
ntrtl.h
|
||||||
|
|
||||||
|
Abstract:
|
||||||
|
|
||||||
|
Provides NT RTL (Run-Time Library) definitions.
|
||||||
|
|
||||||
|
--*/
|
||||||
|
|
||||||
|
#ifndef _NTRTL_H
|
||||||
|
#define _NTRTL_H
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
//
|
||||||
|
// Memory operations.
|
||||||
|
//
|
||||||
|
#define RtlMoveMemory(Destination, Source, Length) memmove((Destination), (Source), (Length))
|
||||||
|
#define RtlCopyMemory(Destination, Source, Length) memcpy((Destination), (Source), (Length))
|
||||||
|
#define RtlFillMemory(Destination, Length, Fill) memset((Destination), (Fill), (Length))
|
||||||
|
#define RtlZeroMemory(Destination, Length) memset((Destination), 0, (Length))
|
||||||
|
|
||||||
|
#endif /* !_NTRTL_H */
|
@ -41,4 +41,4 @@ Abstract:
|
|||||||
#define STATUS_DRIVER_UNABLE_TO_LOAD ((NTSTATUS) 0xC000026CL)
|
#define STATUS_DRIVER_UNABLE_TO_LOAD ((NTSTATUS) 0xC000026CL)
|
||||||
#define STATUS_NO_MATCH ((NTSTATUS) 0xC0000272L)
|
#define STATUS_NO_MATCH ((NTSTATUS) 0xC0000272L)
|
||||||
|
|
||||||
#endif
|
#endif /* !_NTSTATUS_H */
|
@ -25,11 +25,11 @@ project("CRT")
|
|||||||
kind("StaticLib")
|
kind("StaticLib")
|
||||||
location("SDK/CRT")
|
location("SDK/CRT")
|
||||||
|
|
||||||
includedirs({ "SDK/CRT/INC" })
|
includedirs({ "SDK/INC/CRT" })
|
||||||
objdir("BUILD/SDK/CRT")
|
objdir("BUILD/SDK/CRT")
|
||||||
targetdir("BUILD/SDK")
|
targetdir("BUILD/SDK")
|
||||||
targetname("crt")
|
targetname("crt")
|
||||||
files({ "SDK/CRT/INC/**.h", "SDK/CRT/**.c" })
|
files({ "SDK/INC/CRT/**.h", "SDK/CRT/**.c" })
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
project("BOOT")
|
project("BOOT")
|
||||||
|
Loading…
Reference in New Issue
Block a user