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

Function MyCreateProcessWithLogonW

inject/injectee_iat.cpp:294–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static BOOL WINAPI
295MyCreateProcessWithLogonW(LPCWSTR lpUsername,
296 LPCWSTR lpDomain,
297 LPCWSTR lpPassword,
298 DWORD dwLogonFlags,
299 LPCWSTR lpApplicationName,
300 LPWSTR lpCommandLine,
301 DWORD dwCreationFlags,
302 LPVOID lpEnvironment,
303 LPCWSTR lpCurrentDirectory,
304 LPSTARTUPINFOW lpStartupInfo,
305 LPPROCESS_INFORMATION lpProcessInformation)
306{
307 if (VERBOSITY >= 2) {
308 debugPrintf("inject: intercepting %s(\"%S\", \"%S\", ...)\n",
309 __FUNCTION__,
310 lpApplicationName,
311 lpCommandLine);
312 }
313
314 BOOL bRet;
315 bRet = CreateProcessWithLogonW(lpUsername,
316 lpDomain,
317 lpPassword,
318 dwLogonFlags,
319 lpApplicationName,
320 lpCommandLine,
321 dwCreationFlags | CREATE_SUSPENDED,
322 lpEnvironment,
323 lpCurrentDirectory,
324 lpStartupInfo,
325 lpProcessInformation);
326
327 MyCreateProcessCommon(bRet, dwCreationFlags, lpProcessInformation);
328
329 return bRet;
330}
331
332
333template< class T, class I >

Callers

nothing calls this directly

Calls 2

debugPrintfFunction · 0.70
MyCreateProcessCommonFunction · 0.70

Tested by

no test coverage detected