tst: winfsp-tests: exec-test

This commit is contained in:
Bill Zissimopoulos
2017-02-12 00:26:20 -08:00
parent cf69d6a08d
commit 495c78eb25
11 changed files with 404 additions and 0 deletions

View File

@ -85,6 +85,17 @@ static inline BOOL RealSetCurrentDirectoryW(
{
return SetCurrentDirectoryW(lpPathName);
}
BOOL WINAPI HookCreateProcessW(
LPCWSTR lpApplicationName,
LPWSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCWSTR lpCurrentDirectory,
LPSTARTUPINFOW lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation);
#if !defined(WINFSP_TESTS_NO_HOOKS)
#define CreateFileW HookCreateFileW
#define CloseHandle HookCloseHandle
@ -99,6 +110,7 @@ static inline BOOL RealSetCurrentDirectoryW(
#define GetVolumeInformationW HookGetVolumeInformationW
#define SetVolumeLabelW HookSetVolumeLabelW
#define SetCurrentDirectoryW HookSetCurrentDirectoryW
#define CreateProcessW HookCreateProcessW
#endif
HANDLE WINAPI ResilientCreateFileW(