diff --git a/.github/workflows/buildluna.yml b/.github/workflows/buildluna.yml index 3c26f3c3f3d..eee4fdd1d98 100644 --- a/.github/workflows/buildluna.yml +++ b/.github/workflows/buildluna.yml @@ -2,7 +2,7 @@ name: buildluna on: workflow_call: jobs: - build_xp: + hook_xp: runs-on: windows-2019 permissions: id-token: write @@ -19,7 +19,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: hook_winxp + name: hook_xp path: cpp/LunaHook/builds/Release_English_winxp hook: diff --git a/cpp/LunaHook/LunaHook/util/ntxpundef.h b/cpp/LunaHook/LunaHook/util/ntxpundef.h index 807e4fe9797..bdfd8ed8538 100644 --- a/cpp/LunaHook/LunaHook/util/ntxpundef.h +++ b/cpp/LunaHook/LunaHook/util/ntxpundef.h @@ -1,19 +1,21 @@ +#ifndef NTXPUNDEF_H +#define NTXPUNDEF_H #if (_WIN32_WINNT <= _WIN32_WINNT_WIN7) -typedef -__drv_sameIRQL +typedef __drv_sameIRQL __drv_functionClass(EXCEPTION_ROUTINE) EXCEPTION_DISPOSITION NTAPI EXCEPTION_ROUTINE( - __inout struct _EXCEPTION_RECORD* ExceptionRecord, + __inout struct _EXCEPTION_RECORD *ExceptionRecord, __in PVOID EstablisherFrame, - __inout struct _CONTEXT* ContextRecord, - __in PVOID DispatcherContext -); -typedef EXCEPTION_ROUTINE* PEXCEPTION_ROUTINE; -typedef struct _EXCEPTION_REGISTRATION_RECORD { - struct _EXCEPTION_REGISTRATION_RECORD* Next; + __inout struct _CONTEXT *ContextRecord, + __in PVOID DispatcherContext); +typedef EXCEPTION_ROUTINE *PEXCEPTION_ROUTINE; +typedef struct _EXCEPTION_REGISTRATION_RECORD +{ + struct _EXCEPTION_REGISTRATION_RECORD *Next; PEXCEPTION_ROUTINE Handler; } EXCEPTION_REGISTRATION_RECORD; -#endif // !EXCEPTION_REGISTRATION_RECORD \ No newline at end of file +#endif // !EXCEPTION_REGISTRATION_RECORD +#endif // NTXPUNDEF_H \ No newline at end of file