cosmopolitan/libc/nt/dll.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
4 KiB
C
Raw Permalink Normal View History

2020-06-15 14:18:57 +00:00
#ifndef COSMOPOLITAN_LIBC_NT_DLL_H_
#define COSMOPOLITAN_LIBC_NT_DLL_H_
COSMOPOLITAN_C_START_
/* ░░░░
cosmopolitan § new technology » dynamic link libraries
*/
int64_t LoadLibrary(const char16_t *lpLibFileName);
int64_t LoadLibraryA(const char *lpLibFileName);
2020-06-15 14:18:57 +00:00
int64_t LoadLibraryEx(const char16_t *lpLibFileName, int64_t hFile,
uint32_t dwFlags);
2021-01-30 07:19:29 +00:00
uint32_t GetModuleFileNameA(int64_t hModule, char *lpFilename, uint32_t nSize);
intptr_t GetModuleHandle(const char *opt_lpModuleName);
intptr_t GetModuleHandleW(const char16_t *opt_lpModuleName);
2020-06-15 14:18:57 +00:00
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);
2023-11-17 18:35:34 +00:00
void *AddDllDirectory(const char16_t *NewDirectory);
2020-06-15 14:18:57 +00:00
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_NT_DLL_H_ */