MCPcopy Create free account
hub / github.com/InWILL/Locale_Remulator / HookCreateProcessA

Function HookCreateProcessA

LRHook/LRHookFunc.cpp:559–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559BOOL WINAPI HookCreateProcessA(
560 _In_opt_ LPCSTR lpApplicationName,
561 _Inout_opt_ LPSTR lpCommandLine,
562 _In_opt_ LPSECURITY_ATTRIBUTES lpProcessAttributes,
563 _In_opt_ LPSECURITY_ATTRIBUTES lpThreadAttributes,
564 _In_ BOOL bInheritHandles,
565 _In_ DWORD dwCreationFlags,
566 _In_opt_ LPVOID lpEnvironment,
567 _In_opt_ LPCSTR lpCurrentDirectory,
568 _In_ LPSTARTUPINFOA lpStartupInfo,
569 _Out_ LPPROCESS_INFORMATION lpProcessInformation
570)
571{
572 //MessageBoxA(NULL, lpCommandLine, "HookCreateProcessA", NULL);
573 return DetourCreateProcessWithDllExA(
574 lpApplicationName,
575 lpCommandLine,
576 lpProcessAttributes,
577 lpThreadAttributes,
578 bInheritHandles,
579 dwCreationFlags,
580 lpEnvironment,
581 lpCurrentDirectory,
582 lpStartupInfo,
583 lpProcessInformation,
584 Original.DllPath,
585 OriginalCreateProcessA);
586}
587
588BOOL WINAPI HookCreateProcessW(
589 _In_opt_ LPCWSTR lpApplicationName,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected