BOOL Fake_CreateProcessInternalW(
HANDLE hToken,
LPCWSTR lpApplicationName,
LPWSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCWSTR lpCurrentDirectory,
LPSTARTUPINFOW lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation,
PHANDLE hNewToken)
{
BOOL bRet = FALSE;
STARTUPINFOW MyStartupInfo = {0};
memcpy(&MyStartupInfo,lpStartupInfo,lpStartupInfo->cb);
bRet = DEF_CALL_ORIGINAL_FUNCTION(CreateProcessInternalW)(
hToken,
lpApplicationName,
lpCommandLine,
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
lpEnvironment,
lpCurrentDirectory,
&MyStartupInfo,
lpProcessInformation,
hNewToken);
return
bRet;
}