| 292 | } |
| 293 | |
| 294 | static BOOL WINAPI |
| 295 | MyCreateProcessWithLogonW(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 | |
| 333 | template< class T, class I > |
nothing calls this directly
no test coverage detected