mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
tst: winfsp-tests: exec-test
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user