101 Ret = pPrivMoveFileIdentityW(Self,
FileName, 0);
102 ok(Ret ==
FALSE,
"PrivMoveFileIdentityW succeeded unexpectedly\n");
108 Ret = pPrivMoveFileIdentityW(Self,
FileName, 2);
113 ok(
QueryFileInfo(Self, &FileBasicInfo, &FileStandardInfo) ==
TRUE,
"QueryFileInfo returned FALSE\n");
145 pPrivMoveFileIdentityW = (
void *)
GetProcAddress(hKern,
"PrivMoveFileIdentityW");
static const WCHAR FileName2[]
static VOID TestPrivMoveFileIdentityW(VOID)
static BOOL QueryFileInfo(LPCWSTR File, PFILE_BASIC_INFORMATION FileBasicInfo, PFILE_STANDARD_INFORMATION FileStandardInfo)
static const CHAR FileNameA[]
#define NT_SUCCESS(StatCode)
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
HFILE WINAPI OpenFile(LPCSTR lpFileName, LPOFSTRUCT lpReOpenBuff, UINT uStyle)
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
BOOL WINAPI PrivMoveFileIdentityW(IN LPCWSTR lpSource, IN LPCWSTR lpDestination, IN DWORD dwFlags)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
#define FILE_SYNCHRONOUS_IO_NONALERT
static OUT PIO_STATUS_BLOCK IoStatusBlock
#define FILE_READ_ATTRIBUTES
NTSYSAPI NTSTATUS NTAPI NtQueryInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, OUT PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
#define FileStandardInformation
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
DWORD WINAPI GetLastError(void)
#define ERROR_SHARING_VIOLATION