mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Adds some NT functions (#1358)
This commit is contained in:
parent
12cb0669fb
commit
42a9ed0131
13 changed files with 195 additions and 0 deletions
|
@ -49,6 +49,7 @@ COSMOPOLITAN_C_START_
|
|||
intptr_t LoadResource(int64_t hModule, int64_t hResInfo);
|
||||
uint32_t SetHandleCount(uint32_t uNumber);
|
||||
uint32_t GetLogicalDrives(void);
|
||||
uint32_t GetLogicalDriveStringsA(uint32_t nBufferLength, char *lpBuffer);
|
||||
bool32 FlushFileBuffers(int64_t hFile);
|
||||
|
||||
int64_t ReOpenFile(int64_t hOriginalFile, uint32_t dwDesiredAccess,
|
||||
|
@ -205,6 +206,7 @@ uint32_t GetFinalPathNameByHandle(int64_t hFile, char16_t *out_path,
|
|||
|
||||
uint32_t GetFullPathName(const char16_t *lpFileName, uint32_t nBufferLength,
|
||||
char16_t *lpBuffer, char16_t **lpFilePart);
|
||||
uint32_t GetShortPathName(const char16_t *lpszLongPath, char16_t *out_lpszShortPath, uint32_t cchBuffer);
|
||||
|
||||
bool32 GetOverlappedResult(int64_t hFile, struct NtOverlapped *lpOverlapped,
|
||||
uint32_t *lpNumberOfBytesTransferred, bool32 bWait);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue