Files
FEX-Emu--FEX/Source/Windows/include/wine/unixlib.h
T
Ryan Houdek c09225f868 Windows: Load unixlib if possible
Currently does nothing other than load it (as the library also doesn't
do anything yet). Ensured it was working by temporarily creating a test
entrypoint and doing `Call` on to it.

Next step after this is to reimplement some of the nasty hacks FEX is
doing inside the unixlib code itself.
2026-06-26 20:50:24 -07:00

29 lines
726 B
C++

// SPDX-License-Identifier: LGPL-2.1-or-later
// SPDX-FileCopyrightText: Copyright (C) 2021 Alexandre Julliard
#pragma once
#include <winternl.h>
#ifdef __cplusplus
extern "C" {
#endif
constexpr NTSTATUS STATUS_SUCCESS = 0;
constexpr NTSTATUS STATUS_NOT_SUPPORTED = 0xC00000BB;
constexpr NTSTATUS STATUS_INTERNAL_ERROR = 0xC00000E5;
typedef UINT64 unixlib_handle_t;
extern NTSTATUS(WINAPI* __wine_set_unix_env)(const char*, const char*);
extern NTSTATUS(WINAPI* __wine_unix_call_dispatcher)(unixlib_handle_t, unsigned int, void*);
static inline NTSTATUS __wine_unix_call(unixlib_handle_t handle, unsigned int code, void* args) {
return __wine_unix_call_dispatcher(handle, code, args);
}
#ifdef __cplusplus
}
#endif