MCPcopy Create free account
hub / github.com/apitrace/apitrace / MyCreateProcessA

Function MyCreateProcessA

inject/injectee_iat.cpp:139–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static BOOL WINAPI
140MyCreateProcessA(LPCSTR lpApplicationName,
141 LPSTR lpCommandLine,
142 LPSECURITY_ATTRIBUTES lpProcessAttributes,
143 LPSECURITY_ATTRIBUTES lpThreadAttributes,
144 BOOL bInheritHandles,
145 DWORD dwCreationFlags,
146 LPVOID lpEnvironment,
147 LPCSTR lpCurrentDirectory,
148 LPSTARTUPINFOA lpStartupInfo,
149 LPPROCESS_INFORMATION lpProcessInformation)
150{
151 if (VERBOSITY >= 2) {
152 debugPrintf("inject: intercepting %s(\"%s\", \"%s\", ...)\n",
153 __FUNCTION__,
154 lpApplicationName,
155 lpCommandLine);
156 }
157
158 BOOL bRet;
159 bRet = CreateProcessA(lpApplicationName,
160 lpCommandLine,
161 lpProcessAttributes,
162 lpThreadAttributes,
163 bInheritHandles,
164 dwCreationFlags | CREATE_SUSPENDED,
165 lpEnvironment,
166 lpCurrentDirectory,
167 lpStartupInfo,
168 lpProcessInformation);
169
170 MyCreateProcessCommon(bRet, dwCreationFlags, lpProcessInformation);
171
172 return bRet;
173}
174
175static BOOL WINAPI
176MyCreateProcessW(LPCWSTR lpApplicationName,

Callers

nothing calls this directly

Calls 2

debugPrintfFunction · 0.70
MyCreateProcessCommonFunction · 0.70

Tested by

no test coverage detected