ReactOS 0.4.16-dev-1946-g52006dd
PathIsUNC.c File Reference
#include <apitest.h>
#include <shlwapi.h>
Include dependency graph for PathIsUNC.c:

Go to the source code of this file.

Macros

#define DO_TEST(exp, str)
 

Functions

 START_TEST (isuncpath)
 

Macro Definition Documentation

◆ DO_TEST

#define DO_TEST (   exp,
  str 
)
Value:
do { \
ok(ret == (exp), "Expected %s to be %d, was %d\n", wine_dbgstr_w((str)), (exp), ret); \
} while (0)
BOOL WINAPI PathIsUNCW(const WCHAR *path)
Definition: path.c:1013
return ret
Definition: mutex.c:146
unsigned int BOOL
Definition: ntddk_ex.h:94
#define wine_dbgstr_w
Definition: kernel32.h:34
DWORD exp
Definition: msg.c:16058
const WCHAR * str

Definition at line 24 of file PathIsUNC.c.

Function Documentation

◆ START_TEST()

START_TEST ( isuncpath  )

Definition at line 30 of file PathIsUNC.c.

31{
32 DO_TEST(TRUE, L"\\\\path1\\path2");
33 DO_TEST(TRUE, L"\\\\path1");
34 DO_TEST(FALSE, L"reactos\\path4\\path5");
35 DO_TEST(TRUE, L"\\\\");
36 DO_TEST(TRUE, L"\\\\?\\UNC\\path1\\path2");
37 DO_TEST(TRUE, L"\\\\?\\UNC\\path1");
38 DO_TEST(TRUE, L"\\\\?\\UNC\\");
39 DO_TEST(FALSE, L"\\path1");
40 DO_TEST(FALSE, L"path1");
41 DO_TEST(FALSE, L"c:\\path1");
42
44 DO_TEST(FALSE, L"\\\\?\\c:\\path1");
45 else
46 DO_TEST(TRUE, L"\\\\?\\c:\\path1");
47
48 DO_TEST(TRUE, L"\\\\path1\\");
49 DO_TEST(FALSE, L"//");
50 DO_TEST(FALSE, L"////path1");
51 DO_TEST(FALSE, L"////path1//path2");
52 DO_TEST(FALSE, L"reactos//path3//path4");
53 DO_TEST(TRUE, L"\\\\reactos\\?");
54 DO_TEST(TRUE, L"\\\\reactos\\\\");
55 DO_TEST(FALSE, (wchar_t*)NULL);
56 DO_TEST(FALSE, L" ");
57
59 DO_TEST(FALSE, L"\\\\?\\");
60 else
61 DO_TEST(TRUE, L"\\\\?\\");
62}
#define DO_TEST(exp, str)
Definition: PathIsUNC.c:24
#define GetNTVersion()
Definition: apitest.h:17
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define L(x)
Definition: resources.c:13
#define _WIN32_WINNT_VISTA
Definition: sdkddkver.h:25