char tra_cw[
1024
];
BOOL
WINAPI MyCreateProcessW(
_In_opt_ LPCWSTR lpApplicationName,
_Inout_opt_ LPWSTR lpCommandLine,
_In_opt_ LPSECURITY_ATTRIBUTES lpProcessAttributes,
_In_opt_ LPSECURITY_ATTRIBUTES lpThreadAttributes,
_In_
BOOL
bInheritHandles,
_In_ DWORD dwCreationFlags,
_In_opt_ LPVOID lpEnvironment,
_In_opt_ LPCWSTR lpCurrentDirectory,
_In_ LPSTARTUPINFOW lpStartupInfo,
_Out_ LPPROCESS_INFORMATION lpProcessInformation
) {
time_t now
=
time(nullptr);
printf(
"================\n"
);
printf(
"%s"
, ctime(&now));
wprintf(L
"execute=%s\npara=%s\n\n"
,lpApplicationName,lpCommandLine );
auto ori
=
xx_trampoline_to_func(&CreateProcessW, tra_cw);
return
(
*
ori)(lpApplicationName,
lpCommandLine,
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
lpEnvironment,
lpCurrentDirectory,
lpStartupInfo,
lpProcessInformation);
}