2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_NT_INFO_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_NT_INFO_H_
|
|
|
|
#include "libc/nt/struct/systeminfo.h"
|
|
|
|
#include "libc/nt/thunk/msabi.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
void GetSystemInfo(struct NtSystemInfo *lpSystemInfo);
|
|
|
|
uint32_t GetSystemDirectory(char16_t *lpBuffer, uint32_t uSize);
|
|
|
|
uint32_t GetSystemDirectoryA(char *lpBuffer, uint32_t uSize);
|
|
|
|
uint32_t GetWindowsDirectory(char16_t *lpBuffer, uint32_t uSize);
|
|
|
|
uint32_t GetTempPath(uint32_t uSize, char16_t *lpBuffer);
|
|
|
|
|
2020-11-09 15:41:11 -08:00
|
|
|
bool32 GetComputerNameEx(/* enum/computernameformat.h */ int NameType,
|
|
|
|
char16_t *opt_lpBuffer, uint32_t *nSize);
|
|
|
|
|
2020-06-15 07:18:57 -07:00
|
|
|
#if ShouldUseMsabiAttribute()
|
|
|
|
#include "libc/nt/thunk/systeminfo.inc"
|
|
|
|
#endif /* ShouldUseMsabiAttribute() */
|
2021-02-01 04:04:44 -08:00
|
|
|
COSMOPOLITAN_C_END_
|
2020-06-15 07:18:57 -07:00
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NT_INFO_H_ */
|