10#define ok_bool_file(value, expected, file) do { \
12 ok(value == TRUE, "File '%ls' should exist, but does not\n", file); \
14 ok(value == FALSE, "File '%ls' should not exist, but does\n", file);\
17#define ok_eq_ustr(str1, str2) do { \
18 ok((str1)->Buffer == (str2)->Buffer, "Buffer modified\n"); \
19 ok((str1)->Length == (str2)->Length, "Length modified\n"); \
20 ok((str1)->MaximumLength == (str2)->MaximumLength, "MaximumLength modified\n"); \
114 {
L"\\\\.\\GLOBAL??",
FALSE },
115 {
L"\\\\.\\GLOBAL??\\",
FALSE },
119 {
L"\\\\??\\C:\\",
FALSE },
126 {
L"C:\\/\\",
TRUE },
130 {
L"C:\\%ls",
TRUE },
132 {
L"C://%ls",
TRUE },
133 {
L"C:\\/%ls",
TRUE },
134 {
L"C:/\\%ls",
TRUE },
135 {
L"C:\\/\\%ls",
TRUE },
136 {
L"C:\\%ls\\",
TRUE },
137 {
L"C:\\%ls\\ThisFolderExists",
TRUE },
138 {
L"C:\\%ls\\ThisFolderExists\\",
TRUE },
139 {
L"C:\\%ls\\ThisFolderExists ",
TRUE },
140 {
L"C:\\%ls\\ThisFolderExists ",
TRUE },
141 {
L"C:\\%ls\\ThisFolderExists ",
TRUE },
142 {
L"C:\\%ls\\ThisFolderExists:",
FALSE },
143 {
L"C:\\%ls\\ThisFolderExists\t",
FALSE },
144 {
L"C:\\%ls\\ThisFolderExists\n",
FALSE },
145 {
L"C:\\%ls\\ThisFolderExists\r",
FALSE },
146 {
L" C:\\%ls\\ThisFolderExists",
FALSE },
147 {
L"C:\\%ls\\ ThisFolderExists",
FALSE },
148 {
L"C:\\%ls \\ThisFolderExists",
FALSE },
149 {
L"C:\\%ls\\ThisDoesntExist",
FALSE },
150 {
L"C:\\\\%ls\\\\ThisFolderExists",
TRUE },
151 {
L"C:\\%ls\\ThisFolderExists\\ThisFileExists",
TRUE },
152 {
L"c:\\%ls\\thisfolderexists\\thisfileexists",
TRUE },
153 {
L"C:\\%ls\\THISFOLDEREXISTS\\THISFILEEXISTS",
TRUE },
154 {
L"C:\\%ls\\ThisFolderExists\\SomeProgram.exe",
TRUE },
155 {
L"C:\\%ls\\ThisFolderExists\\SomeProgram",
FALSE },
156 {
L"C:\\%ls\\ThisFolderExists\\With",
FALSE },
157 {
L"C:\\%ls\\ThisFolderExists\\With Space",
TRUE },
158 {
L"C:\\%ls\\ThisFolderExists\\Without",
TRUE },
159 {
L"C:\\%ls\\ThisFolderExists\\Without Space",
FALSE },
160 {
L"C:\\%ls abc",
FALSE },
161 {
L"\"C:\\%ls\" abc",
FALSE },
163 {
L"C:\\%ls;C:\\",
FALSE },
164 {
L"%%SystemRoot%%",
FALSE },
165 {
L"%%SystemRoot%%\\",
FALSE },
166 {
L"%%SystemRoot%%\\system32",
FALSE },
176 {
L"\\??\\C:\\%ls\\ThisFolderExists",
FALSE },
188 skip(
"RtlDoesFileExists_UEx unavailable\n");
195 skip(
"RtlDoesFileExists_UStr unavailable\n");
202 skip(
"RtlDoesFileExists_UstrEx unavailable\n");
207 ok(Ret ==
FALSE,
"NULL file exists?!\n");
214 ok(Ret ==
FALSE,
"NULL file exists?!\n");
216 ok(Ret ==
FALSE,
"NULL file exists?!\n");
239 ok(
Success,
"CreateDirectory failed, results might not be accurate\n");
242 ok(
Success,
"CreateDirectory failed, results might not be accurate\n");
262 TempString = FileNameString;
313 TempString = FileNameString;
325 TempString = FileNameString;
static IN BOOLEAN SucceedIfBusy
#define ok_eq_ustr(str1, str2)
#define ok_bool_file(value, expected, file)
#define EndSeh(ExpectedStatus)
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
struct _FileName FileName
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
NTSYSAPI BOOLEAN NTAPI RtlDoesFileExists_U(_In_ PCWSTR FileName)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
BOOLEAN NTAPI RtlDoesFileExists_UStr(IN PUNICODE_STRING FileName)
#define STATUS_ACCESS_VIOLATION
BOOLEAN NTAPI RtlDoesFileExists_UstrEx(IN PCUNICODE_STRING FileName, IN BOOLEAN SucceedIfBusy)
BOOLEAN NTAPI RtlDoesFileExists_UEx(IN PCWSTR FileName, IN BOOLEAN SucceedIfBusy)
#define INVALID_FILE_ATTRIBUTES
DWORD WINAPI GetLastError(void)