mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:19:20 +03:00
Fix 32-bit builds
This commit is contained in:
@ -701,10 +701,10 @@ pub struct _DETOUR_TRAMPOLINE {
|
|||||||
pub type PDETOUR_TRAMPOLINE = *mut _DETOUR_TRAMPOLINE;
|
pub type PDETOUR_TRAMPOLINE = *mut _DETOUR_TRAMPOLINE;
|
||||||
#[doc = " Binary Typedefs."]
|
#[doc = " Binary Typedefs."]
|
||||||
pub type PF_DETOUR_BINARY_BYWAY_CALLBACK = ::std::option::Option<
|
pub type PF_DETOUR_BINARY_BYWAY_CALLBACK = ::std::option::Option<
|
||||||
unsafe extern "C" fn(pContext: PVOID, pszFile: LPCSTR, ppszOutFile: *mut LPCSTR) -> BOOL,
|
unsafe extern "stdcall" fn(pContext: PVOID, pszFile: LPCSTR, ppszOutFile: *mut LPCSTR) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PF_DETOUR_BINARY_FILE_CALLBACK = ::std::option::Option<
|
pub type PF_DETOUR_BINARY_FILE_CALLBACK = ::std::option::Option<
|
||||||
unsafe extern "C" fn(
|
unsafe extern "stdcall" fn(
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
pszOrigFile: LPCSTR,
|
pszOrigFile: LPCSTR,
|
||||||
pszFile: LPCSTR,
|
pszFile: LPCSTR,
|
||||||
@ -712,7 +712,7 @@ pub type PF_DETOUR_BINARY_FILE_CALLBACK = ::std::option::Option<
|
|||||||
) -> BOOL,
|
) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PF_DETOUR_BINARY_SYMBOL_CALLBACK = ::std::option::Option<
|
pub type PF_DETOUR_BINARY_SYMBOL_CALLBACK = ::std::option::Option<
|
||||||
unsafe extern "C" fn(
|
unsafe extern "stdcall" fn(
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
nOrigOrdinal: ULONG,
|
nOrigOrdinal: ULONG,
|
||||||
nOrdinal: ULONG,
|
nOrdinal: ULONG,
|
||||||
@ -723,18 +723,18 @@ pub type PF_DETOUR_BINARY_SYMBOL_CALLBACK = ::std::option::Option<
|
|||||||
) -> BOOL,
|
) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PF_DETOUR_BINARY_COMMIT_CALLBACK =
|
pub type PF_DETOUR_BINARY_COMMIT_CALLBACK =
|
||||||
::std::option::Option<unsafe extern "C" fn(pContext: PVOID) -> BOOL>;
|
::std::option::Option<unsafe extern "stdcall" fn(pContext: PVOID) -> BOOL>;
|
||||||
pub type PF_DETOUR_ENUMERATE_EXPORT_CALLBACK = ::std::option::Option<
|
pub type PF_DETOUR_ENUMERATE_EXPORT_CALLBACK = ::std::option::Option<
|
||||||
unsafe extern "C" fn(pContext: PVOID, nOrdinal: ULONG, pszName: LPCSTR, pCode: PVOID) -> BOOL,
|
unsafe extern "stdcall" fn(pContext: PVOID, nOrdinal: ULONG, pszName: LPCSTR, pCode: PVOID) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PF_DETOUR_IMPORT_FILE_CALLBACK = ::std::option::Option<
|
pub type PF_DETOUR_IMPORT_FILE_CALLBACK = ::std::option::Option<
|
||||||
unsafe extern "C" fn(pContext: PVOID, hModule: HMODULE, pszFile: LPCSTR) -> BOOL,
|
unsafe extern "stdcall" fn(pContext: PVOID, hModule: HMODULE, pszFile: LPCSTR) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PF_DETOUR_IMPORT_FUNC_CALLBACK = ::std::option::Option<
|
pub type PF_DETOUR_IMPORT_FUNC_CALLBACK = ::std::option::Option<
|
||||||
unsafe extern "C" fn(pContext: PVOID, nOrdinal: DWORD, pszFunc: LPCSTR, pvFunc: PVOID) -> BOOL,
|
unsafe extern "stdcall" fn(pContext: PVOID, nOrdinal: DWORD, pszFunc: LPCSTR, pvFunc: PVOID) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PF_DETOUR_IMPORT_FUNC_CALLBACK_EX = ::std::option::Option<
|
pub type PF_DETOUR_IMPORT_FUNC_CALLBACK_EX = ::std::option::Option<
|
||||||
unsafe extern "C" fn(
|
unsafe extern "stdcall" fn(
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
nOrdinal: DWORD,
|
nOrdinal: DWORD,
|
||||||
pszFunc: LPCSTR,
|
pszFunc: LPCSTR,
|
||||||
@ -742,26 +742,26 @@ pub type PF_DETOUR_IMPORT_FUNC_CALLBACK_EX = ::std::option::Option<
|
|||||||
) -> BOOL,
|
) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PDETOUR_BINARY = *mut ::std::os::raw::c_void;
|
pub type PDETOUR_BINARY = *mut ::std::os::raw::c_void;
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
#[doc = " Transaction APIs."]
|
#[doc = " Transaction APIs."]
|
||||||
pub fn DetourTransactionBegin() -> LONG;
|
pub fn DetourTransactionBegin() -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourTransactionAbort() -> LONG;
|
pub fn DetourTransactionAbort() -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourTransactionCommit() -> LONG;
|
pub fn DetourTransactionCommit() -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourTransactionCommitEx(pppFailedPointer: *mut *mut PVOID) -> LONG;
|
pub fn DetourTransactionCommitEx(pppFailedPointer: *mut *mut PVOID) -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourUpdateThread(hThread: HANDLE) -> LONG;
|
pub fn DetourUpdateThread(hThread: HANDLE) -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourAttach(ppPointer: *mut PVOID, pDetour: PVOID) -> LONG;
|
pub fn DetourAttach(ppPointer: *mut PVOID, pDetour: PVOID) -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourAttachEx(
|
pub fn DetourAttachEx(
|
||||||
ppPointer: *mut PVOID,
|
ppPointer: *mut PVOID,
|
||||||
pDetour: PVOID,
|
pDetour: PVOID,
|
||||||
@ -770,29 +770,29 @@ extern "C" {
|
|||||||
ppRealDetour: *mut PVOID,
|
ppRealDetour: *mut PVOID,
|
||||||
) -> LONG;
|
) -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourDetach(ppPointer: *mut PVOID, pDetour: PVOID) -> LONG;
|
pub fn DetourDetach(ppPointer: *mut PVOID, pDetour: PVOID) -> LONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourSetIgnoreTooSmall(fIgnore: BOOL) -> BOOL;
|
pub fn DetourSetIgnoreTooSmall(fIgnore: BOOL) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourSetRetainRegions(fRetain: BOOL) -> BOOL;
|
pub fn DetourSetRetainRegions(fRetain: BOOL) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourSetSystemRegionLowerBound(pSystemRegionLowerBound: PVOID) -> PVOID;
|
pub fn DetourSetSystemRegionLowerBound(pSystemRegionLowerBound: PVOID) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourSetSystemRegionUpperBound(pSystemRegionUpperBound: PVOID) -> PVOID;
|
pub fn DetourSetSystemRegionUpperBound(pSystemRegionUpperBound: PVOID) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
#[doc = " Code Functions."]
|
#[doc = " Code Functions."]
|
||||||
pub fn DetourFindFunction(pszModule: LPCSTR, pszFunction: LPCSTR) -> PVOID;
|
pub fn DetourFindFunction(pszModule: LPCSTR, pszFunction: LPCSTR) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCodeFromPointer(pPointer: PVOID, ppGlobals: *mut PVOID) -> PVOID;
|
pub fn DetourCodeFromPointer(pPointer: PVOID, ppGlobals: *mut PVOID) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCopyInstruction(
|
pub fn DetourCopyInstruction(
|
||||||
pDst: PVOID,
|
pDst: PVOID,
|
||||||
ppDstPool: *mut PVOID,
|
ppDstPool: *mut PVOID,
|
||||||
@ -801,36 +801,36 @@ extern "C" {
|
|||||||
plExtra: *mut LONG,
|
plExtra: *mut LONG,
|
||||||
) -> PVOID;
|
) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourSetCodeModule(hModule: HMODULE, fLimitReferencesToModule: BOOL) -> BOOL;
|
pub fn DetourSetCodeModule(hModule: HMODULE, fLimitReferencesToModule: BOOL) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourAllocateRegionWithinJumpBounds(
|
pub fn DetourAllocateRegionWithinJumpBounds(
|
||||||
pbTarget: LPCVOID,
|
pbTarget: LPCVOID,
|
||||||
pcbAllocatedSize: PDWORD,
|
pcbAllocatedSize: PDWORD,
|
||||||
) -> PVOID;
|
) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
#[doc = " Loaded Binary Functions."]
|
#[doc = " Loaded Binary Functions."]
|
||||||
pub fn DetourGetContainingModule(pvAddr: PVOID) -> HMODULE;
|
pub fn DetourGetContainingModule(pvAddr: PVOID) -> HMODULE;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourEnumerateModules(hModuleLast: HMODULE) -> HMODULE;
|
pub fn DetourEnumerateModules(hModuleLast: HMODULE) -> HMODULE;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourGetEntryPoint(hModule: HMODULE) -> PVOID;
|
pub fn DetourGetEntryPoint(hModule: HMODULE) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourGetModuleSize(hModule: HMODULE) -> ULONG;
|
pub fn DetourGetModuleSize(hModule: HMODULE) -> ULONG;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourEnumerateExports(
|
pub fn DetourEnumerateExports(
|
||||||
hModule: HMODULE,
|
hModule: HMODULE,
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
pfExport: PF_DETOUR_ENUMERATE_EXPORT_CALLBACK,
|
pfExport: PF_DETOUR_ENUMERATE_EXPORT_CALLBACK,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourEnumerateImports(
|
pub fn DetourEnumerateImports(
|
||||||
hModule: HMODULE,
|
hModule: HMODULE,
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
@ -838,7 +838,7 @@ extern "C" {
|
|||||||
pfImportFunc: PF_DETOUR_IMPORT_FUNC_CALLBACK,
|
pfImportFunc: PF_DETOUR_IMPORT_FUNC_CALLBACK,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourEnumerateImportsEx(
|
pub fn DetourEnumerateImportsEx(
|
||||||
hModule: HMODULE,
|
hModule: HMODULE,
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
@ -846,20 +846,20 @@ extern "C" {
|
|||||||
pfImportFuncEx: PF_DETOUR_IMPORT_FUNC_CALLBACK_EX,
|
pfImportFuncEx: PF_DETOUR_IMPORT_FUNC_CALLBACK_EX,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourFindPayload(hModule: HMODULE, rguid: *const GUID, pcbData: *mut DWORD) -> PVOID;
|
pub fn DetourFindPayload(hModule: HMODULE, rguid: *const GUID, pcbData: *mut DWORD) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourFindPayloadEx(rguid: *const GUID, pcbData: *mut DWORD) -> PVOID;
|
pub fn DetourFindPayloadEx(rguid: *const GUID, pcbData: *mut DWORD) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourGetSizeOfPayloads(hModule: HMODULE) -> DWORD;
|
pub fn DetourGetSizeOfPayloads(hModule: HMODULE) -> DWORD;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
#[doc = " Persistent Binary Functions."]
|
#[doc = " Persistent Binary Functions."]
|
||||||
pub fn DetourBinaryOpen(hFile: HANDLE) -> PDETOUR_BINARY;
|
pub fn DetourBinaryOpen(hFile: HANDLE) -> PDETOUR_BINARY;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryEnumeratePayloads(
|
pub fn DetourBinaryEnumeratePayloads(
|
||||||
pBinary: PDETOUR_BINARY,
|
pBinary: PDETOUR_BINARY,
|
||||||
pGuid: *mut GUID,
|
pGuid: *mut GUID,
|
||||||
@ -867,14 +867,14 @@ extern "C" {
|
|||||||
pnIterator: *mut DWORD,
|
pnIterator: *mut DWORD,
|
||||||
) -> PVOID;
|
) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryFindPayload(
|
pub fn DetourBinaryFindPayload(
|
||||||
pBinary: PDETOUR_BINARY,
|
pBinary: PDETOUR_BINARY,
|
||||||
rguid: *const GUID,
|
rguid: *const GUID,
|
||||||
pcbData: *mut DWORD,
|
pcbData: *mut DWORD,
|
||||||
) -> PVOID;
|
) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinarySetPayload(
|
pub fn DetourBinarySetPayload(
|
||||||
pBinary: PDETOUR_BINARY,
|
pBinary: PDETOUR_BINARY,
|
||||||
rguid: *const GUID,
|
rguid: *const GUID,
|
||||||
@ -882,16 +882,16 @@ extern "C" {
|
|||||||
cbData: DWORD,
|
cbData: DWORD,
|
||||||
) -> PVOID;
|
) -> PVOID;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryDeletePayload(pBinary: PDETOUR_BINARY, rguid: *const GUID) -> BOOL;
|
pub fn DetourBinaryDeletePayload(pBinary: PDETOUR_BINARY, rguid: *const GUID) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryPurgePayloads(pBinary: PDETOUR_BINARY) -> BOOL;
|
pub fn DetourBinaryPurgePayloads(pBinary: PDETOUR_BINARY) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryResetImports(pBinary: PDETOUR_BINARY) -> BOOL;
|
pub fn DetourBinaryResetImports(pBinary: PDETOUR_BINARY) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryEditImports(
|
pub fn DetourBinaryEditImports(
|
||||||
pBinary: PDETOUR_BINARY,
|
pBinary: PDETOUR_BINARY,
|
||||||
pContext: PVOID,
|
pContext: PVOID,
|
||||||
@ -901,15 +901,15 @@ extern "C" {
|
|||||||
pfCommit: PF_DETOUR_BINARY_COMMIT_CALLBACK,
|
pfCommit: PF_DETOUR_BINARY_COMMIT_CALLBACK,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryWrite(pBinary: PDETOUR_BINARY, hFile: HANDLE) -> BOOL;
|
pub fn DetourBinaryWrite(pBinary: PDETOUR_BINARY, hFile: HANDLE) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourBinaryClose(pBinary: PDETOUR_BINARY) -> BOOL;
|
pub fn DetourBinaryClose(pBinary: PDETOUR_BINARY) -> BOOL;
|
||||||
}
|
}
|
||||||
#[doc = " Create Process & Load Dll."]
|
#[doc = " Create Process & Load Dll."]
|
||||||
pub type PDETOUR_CREATE_PROCESS_ROUTINEA = ::std::option::Option<
|
pub type PDETOUR_CREATE_PROCESS_ROUTINEA = ::std::option::Option<
|
||||||
unsafe extern "C" fn(
|
unsafe extern "stdcall" fn(
|
||||||
lpApplicationName: LPCSTR,
|
lpApplicationName: LPCSTR,
|
||||||
lpCommandLine: LPSTR,
|
lpCommandLine: LPSTR,
|
||||||
lpProcessAttributes: LPSECURITY_ATTRIBUTES,
|
lpProcessAttributes: LPSECURITY_ATTRIBUTES,
|
||||||
@ -923,7 +923,7 @@ pub type PDETOUR_CREATE_PROCESS_ROUTINEA = ::std::option::Option<
|
|||||||
) -> BOOL,
|
) -> BOOL,
|
||||||
>;
|
>;
|
||||||
pub type PDETOUR_CREATE_PROCESS_ROUTINEW = ::std::option::Option<
|
pub type PDETOUR_CREATE_PROCESS_ROUTINEW = ::std::option::Option<
|
||||||
unsafe extern "C" fn(
|
unsafe extern "stdcall" fn(
|
||||||
lpApplicationName: LPCWSTR,
|
lpApplicationName: LPCWSTR,
|
||||||
lpCommandLine: LPWSTR,
|
lpCommandLine: LPWSTR,
|
||||||
lpProcessAttributes: LPSECURITY_ATTRIBUTES,
|
lpProcessAttributes: LPSECURITY_ATTRIBUTES,
|
||||||
@ -936,7 +936,7 @@ pub type PDETOUR_CREATE_PROCESS_ROUTINEW = ::std::option::Option<
|
|||||||
lpProcessInformation: LPPROCESS_INFORMATION,
|
lpProcessInformation: LPPROCESS_INFORMATION,
|
||||||
) -> BOOL,
|
) -> BOOL,
|
||||||
>;
|
>;
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCreateProcessWithDllA(
|
pub fn DetourCreateProcessWithDllA(
|
||||||
lpApplicationName: LPCSTR,
|
lpApplicationName: LPCSTR,
|
||||||
lpCommandLine: LPSTR,
|
lpCommandLine: LPSTR,
|
||||||
@ -952,7 +952,7 @@ extern "C" {
|
|||||||
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCreateProcessWithDllW(
|
pub fn DetourCreateProcessWithDllW(
|
||||||
lpApplicationName: LPCWSTR,
|
lpApplicationName: LPCWSTR,
|
||||||
lpCommandLine: LPWSTR,
|
lpCommandLine: LPWSTR,
|
||||||
@ -968,7 +968,7 @@ extern "C" {
|
|||||||
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCreateProcessWithDllExA(
|
pub fn DetourCreateProcessWithDllExA(
|
||||||
lpApplicationName: LPCSTR,
|
lpApplicationName: LPCSTR,
|
||||||
lpCommandLine: LPSTR,
|
lpCommandLine: LPSTR,
|
||||||
@ -984,7 +984,7 @@ extern "C" {
|
|||||||
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCreateProcessWithDllExW(
|
pub fn DetourCreateProcessWithDllExW(
|
||||||
lpApplicationName: LPCWSTR,
|
lpApplicationName: LPCWSTR,
|
||||||
lpCommandLine: LPWSTR,
|
lpCommandLine: LPWSTR,
|
||||||
@ -1000,7 +1000,7 @@ extern "C" {
|
|||||||
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCreateProcessWithDllsA(
|
pub fn DetourCreateProcessWithDllsA(
|
||||||
lpApplicationName: LPCSTR,
|
lpApplicationName: LPCSTR,
|
||||||
lpCommandLine: LPSTR,
|
lpCommandLine: LPSTR,
|
||||||
@ -1017,7 +1017,7 @@ extern "C" {
|
|||||||
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCreateProcessWithDllsW(
|
pub fn DetourCreateProcessWithDllsW(
|
||||||
lpApplicationName: LPCWSTR,
|
lpApplicationName: LPCWSTR,
|
||||||
lpCommandLine: LPWSTR,
|
lpCommandLine: LPWSTR,
|
||||||
@ -1034,21 +1034,21 @@ extern "C" {
|
|||||||
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourProcessViaHelperA(
|
pub fn DetourProcessViaHelperA(
|
||||||
dwTargetPid: DWORD,
|
dwTargetPid: DWORD,
|
||||||
lpDllName: LPCSTR,
|
lpDllName: LPCSTR,
|
||||||
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourProcessViaHelperW(
|
pub fn DetourProcessViaHelperW(
|
||||||
dwTargetPid: DWORD,
|
dwTargetPid: DWORD,
|
||||||
lpDllName: LPCSTR,
|
lpDllName: LPCSTR,
|
||||||
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourProcessViaHelperDllsA(
|
pub fn DetourProcessViaHelperDllsA(
|
||||||
dwTargetPid: DWORD,
|
dwTargetPid: DWORD,
|
||||||
nDlls: DWORD,
|
nDlls: DWORD,
|
||||||
@ -1056,7 +1056,7 @@ extern "C" {
|
|||||||
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
pfCreateProcessA: PDETOUR_CREATE_PROCESS_ROUTINEA,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourProcessViaHelperDllsW(
|
pub fn DetourProcessViaHelperDllsW(
|
||||||
dwTargetPid: DWORD,
|
dwTargetPid: DWORD,
|
||||||
nDlls: DWORD,
|
nDlls: DWORD,
|
||||||
@ -1064,11 +1064,11 @@ extern "C" {
|
|||||||
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
pfCreateProcessW: PDETOUR_CREATE_PROCESS_ROUTINEW,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourUpdateProcessWithDll(hProcess: HANDLE, rlpDlls: *mut LPCSTR, nDlls: DWORD)
|
pub fn DetourUpdateProcessWithDll(hProcess: HANDLE, rlpDlls: *mut LPCSTR, nDlls: DWORD)
|
||||||
-> BOOL;
|
-> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourUpdateProcessWithDllEx(
|
pub fn DetourUpdateProcessWithDllEx(
|
||||||
hProcess: HANDLE,
|
hProcess: HANDLE,
|
||||||
hImage: HMODULE,
|
hImage: HMODULE,
|
||||||
@ -1077,7 +1077,7 @@ extern "C" {
|
|||||||
nDlls: DWORD,
|
nDlls: DWORD,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourCopyPayloadToProcess(
|
pub fn DetourCopyPayloadToProcess(
|
||||||
hProcess: HANDLE,
|
hProcess: HANDLE,
|
||||||
rguid: *const GUID,
|
rguid: *const GUID,
|
||||||
@ -1085,15 +1085,15 @@ extern "C" {
|
|||||||
cbData: DWORD,
|
cbData: DWORD,
|
||||||
) -> BOOL;
|
) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourRestoreAfterWith() -> BOOL;
|
pub fn DetourRestoreAfterWith() -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourRestoreAfterWithEx(pvData: PVOID, cbData: DWORD) -> BOOL;
|
pub fn DetourRestoreAfterWithEx(pvData: PVOID, cbData: DWORD) -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourIsHelperProcess() -> BOOL;
|
pub fn DetourIsHelperProcess() -> BOOL;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "stdcall" {
|
||||||
pub fn DetourFinishHelperProcess(arg1: HWND, arg2: HINSTANCE, arg3: LPSTR, arg4: INT);
|
pub fn DetourFinishHelperProcess(arg1: HWND, arg2: HINSTANCE, arg3: LPSTR, arg4: INT);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ pub type cuuint32_t = u32;
|
|||||||
pub type cuuint64_t = u64;
|
pub type cuuint64_t = u64;
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct CUdeviceptr(pub ::std::os::raw::c_ulonglong);
|
pub struct CUdeviceptr(pub usize);
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct CUdevice(pub ::std::os::raw::c_int);
|
pub struct CUdevice(pub ::std::os::raw::c_int);
|
||||||
|
@ -488,7 +488,7 @@ unsafe fn resume_threads(threads: &[*mut c_void]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe extern "C" fn override_nvcuda_export(
|
unsafe extern "stdcall" fn override_nvcuda_export(
|
||||||
context_ptr: *mut c_void,
|
context_ptr: *mut c_void,
|
||||||
_: c_ulong,
|
_: c_ulong,
|
||||||
name: LPCSTR,
|
name: LPCSTR,
|
||||||
|
Reference in New Issue
Block a user