hfiref0x / UACME

Defeating Windows User Account Control
BSD 2-Clause "Simplified" License
6.08k stars 1.3k forks source link

Win32 Compilation NtStatus Undefined #139

Closed platinumvoid closed 1 year ago

platinumvoid commented 1 year ago

Although the x64 build compiles successfully, I am getting the following errors when trying to compile the Win32 version: Using Visual Studio 2022 v143. Tried Windows SDK 10.0.22621.0 and 10.0.19041.0.

Severity    Code    Description Project File    Line    Suppression State
Error   C2440   'function': cannot convert from 'DWORD (__cdecl *)(PVOID)' to 'LPTHREAD_START_ROUTINE'  Akagi   \UACME\Source\Akagi\methods\zcgonvh.c   546 
Error   C2065   'ntStatus': undeclared identifier   Akagi   \UACME\Source\Akagi\methods\hybrids.c   1270    
Error   C2065   'ntStatus': undeclared identifier   Akagi   \UACME\Source\Akagi\methods\hybrids.c   1269    
Error   C2065   'ntStatus': undeclared identifier   Akagi   \UACME\Source\Akagi\methods\hybrids.c   1268    
Error (active)  E0020   identifier "ntStatus" is undefined  Akagi   \UACME\Source\Akagi\methods\hybrids.c   1267    
hfiref0x commented 1 year ago

Thanks for report, it should be fixed in https://github.com/hfiref0x/UACME/commit/aac89f3ef35606b24d9155ba691322d9bccfc9ce.