MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / PatchNeededImports

Function PatchNeededImports

projects/WinDurango.KernelX/src/Hooks.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116HRESULT PatchNeededImports(_In_opt_ HMODULE Module, _In_ HMODULE ImportModule, _In_ PCSTR Import, _In_ PVOID Function)
117{
118 PIMAGE_THUNK_DATA pThunk;
119 HRESULT hr = XWineGetImport(Module, ImportModule, Import, &pThunk);
120 if (FAILED(hr))
121 return hr;
122
123 return XWinePatchImport(Module, ImportModule, Import, Function);
124}
125
126HMODULE GetRuntimeModule()
127{

Callers 2

EraLoadLibraryExAFunction · 0.85
EraLoadLibraryWFunction · 0.85

Calls 2

XWineGetImportFunction · 0.85
XWinePatchImportFunction · 0.85

Tested by

no test coverage detected