Basic NtCreateFile.

This commit is contained in:
Ben Vanik
2013-10-15 21:30:57 -07:00
parent f409795dd1
commit 388f354870
6 changed files with 144 additions and 86 deletions

View File

@@ -64,6 +64,14 @@ typedef uint32_t X_STATUS;
#define X_MEM_HEAP 0x40000000
#define X_MEM_16MB_PAGES 0x80000000 // from Valve SDK
// FILE_*, used by NtOpenFile
#define X_FILE_SUPERSEDED 0x00000000
#define X_FILE_OPENED 0x00000001
#define X_FILE_CREATED 0x00000002
#define X_FILE_OVERWRITTEN 0x00000003
#define X_FILE_EXISTS 0x00000004
#define X_FILE_DOES_NOT_EXIST 0x00000005
// PAGE_*, used by NtAllocateVirtualMemory
#define X_PAGE_NOACCESS 0x00000001
@@ -98,6 +106,13 @@ typedef uint32_t X_STATUS;
#define X_LANGUAGE_JAPANESE 2
typedef struct {
uint16_t length;
uint16_t maximum_length;
char* buffer;
} X_ANSI_STRING;
} // namespace kernel
} // namespace xe