Open ThomasMertes opened 3 years ago
These definitions together with other missing definitions in windows.h allow the compilation of Seed7. The definitions from winbase.h need to be inserted after the definitions from winnt.h into windows.h.
BOOL WINAPI LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE); BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE); HANDLE WINAPI GetCurrentProcess(void); HANDLE WINAPI GetCurrentThread(void); BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE); BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE); BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,DWORD,PDWORD); HGLOBAL WINAPI GlobalFree(HGLOBAL); HLOCAL WINAPI LocalAlloc(UINT,SIZE_T);
These definitions together with other missing definitions in windows.h allow the compilation of Seed7. The definitions from winbase.h need to be inserted after the definitions from winnt.h into windows.h.
BOOL WINAPI LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE); BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE); HANDLE WINAPI GetCurrentProcess(void); HANDLE WINAPI GetCurrentThread(void); BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE); BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE); BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,DWORD,PDWORD); HGLOBAL WINAPI GlobalFree(HGLOBAL); HLOCAL WINAPI LocalAlloc(UINT,SIZE_T);
define LPTR 64