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

Function MyCreateProcessWithTokenW

inject/injectee_iat.cpp:260–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260static BOOL WINAPI
261MyCreateProcessWithTokenW(HANDLE hToken,
262 DWORD dwLogonFlags,
263 LPCWSTR lpApplicationName,
264 LPWSTR lpCommandLine,
265 DWORD dwCreationFlags,
266 LPVOID lpEnvironment,
267 LPCWSTR lpCurrentDirectory,
268 LPSTARTUPINFOW lpStartupInfo,
269 LPPROCESS_INFORMATION lpProcessInformation)
270{
271 if (VERBOSITY >= 2) {
272 debugPrintf("inject: intercepting %s(\"%S\", \"%S\", ...)\n",
273 __FUNCTION__,
274 lpApplicationName,
275 lpCommandLine);
276 }
277
278 BOOL bRet;
279 bRet = CreateProcessWithTokenW(hToken,
280 dwLogonFlags,
281 lpApplicationName,
282 lpCommandLine,
283 dwCreationFlags | CREATE_SUSPENDED,
284 lpEnvironment,
285 lpCurrentDirectory,
286 lpStartupInfo,
287 lpProcessInformation);
288
289 MyCreateProcessCommon(bRet, dwCreationFlags, lpProcessInformation);
290
291 return bRet;
292}
293
294static BOOL WINAPI
295MyCreateProcessWithLogonW(LPCWSTR lpUsername,

Callers

nothing calls this directly

Calls 2

debugPrintfFunction · 0.70
MyCreateProcessCommonFunction · 0.70

Tested by

no test coverage detected