MCPcopy Create free account
hub / github.com/Apache553/SubtitleFontHelper / DelayedAttach

Function DelayedAttach

FontLoadInterceptor/dllmain.cpp:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76DWORD WINAPI DelayedAttach(LPVOID lpThreadParameter)
77{
78 // check required dll
79 sfh::Detour::LoadFunctionPointers();
80 // create thread to acquire loader lock
81 wil::unique_handle hThread(CreateThread(
82 nullptr,
83 0,
84 DummyThread,
85 nullptr,
86 CREATE_SUSPENDED,
87 &attachThreadId));
88 if (!hThread.is_valid())
89 return 1;
90 ResumeThread(hThread.get());
91 return 0;
92}
93
94
95wil::unique_hlocal_string GetDllSelfPath()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected