47 lines
4.0 KiB
C
47 lines
4.0 KiB
C
|
#ifndef COSMOPOLITAN_LIBC_NT_DLL_H_
|
||
|
#define COSMOPOLITAN_LIBC_NT_DLL_H_
|
||
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||
|
COSMOPOLITAN_C_START_
|
||
|
#if 0
|
||
|
/* ░░░░
|
||
|
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░
|
||
|
▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
|
||
|
░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒
|
||
|
▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
|
||
|
▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓
|
||
|
░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
|
||
|
▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
|
||
|
░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓
|
||
|
▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████
|
||
|
▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███
|
||
|
▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███
|
||
|
▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██
|
||
|
▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██
|
||
|
▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███
|
||
|
░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██
|
||
|
╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗
|
||
|
│ cosmopolitan § new technology » dynamic link libraries ─╬─│┼
|
||
|
╚────────────────────────────────────────────────────────────────────────────│*/
|
||
|
#endif
|
||
|
|
||
|
int64_t LoadLibrary(const char16_t *lpLibFileName);
|
||
|
int64_t LoadLibraryEx(const char16_t *lpLibFileName, int64_t hFile,
|
||
|
uint32_t dwFlags);
|
||
|
uint32_t GetModuleFileName(int64_t hModule, char16_t *lpFilename,
|
||
|
uint32_t nSize);
|
||
|
intptr_t GetModuleHandle(const char *lpModuleName);
|
||
|
intptr_t GetModuleHandleW(const char16_t *lpModuleName);
|
||
|
void *GetProcAddress(int64_t hModule, const char *lpProcName);
|
||
|
int32_t FreeResource(int64_t hResData);
|
||
|
intptr_t LockResource(int64_t hResData);
|
||
|
int32_t FreeLibrary(int64_t hLibModule);
|
||
|
|
||
|
COSMOPOLITAN_C_END_
|
||
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||
|
#endif /* COSMOPOLITAN_LIBC_NT_DLL_H_ */
|