ReactOS 0.4.15-dev-7958-gcd0bb1a
PathIsUNCServerShare.c File Reference
#include <apitest.h>
#include <shlwapi.h>
Include dependency graph for PathIsUNCServerShare.c:

Go to the source code of this file.

Macros

#define DO_TEST(exp, str)
 

Functions

 START_TEST (isuncpathservershare)
 

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 PathIsUNCServerShareW(LPCWSTR lpszPath)
Definition: path.c:2378
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
int ret

Definition at line 24 of file PathIsUNCServerShare.c.

Function Documentation

◆ START_TEST()

START_TEST ( isuncpathservershare  )

Definition at line 30 of file PathIsUNCServerShare.c.

31{
32 DO_TEST(TRUE, L"\\\\server\\share");
33 DO_TEST(TRUE, L"\\\\reactos\\folder9");
34 DO_TEST(FALSE, L"\\\\");
35 DO_TEST(FALSE, L"reactos\\some\\folder");
36 DO_TEST(FALSE, L"////server//share");
37 DO_TEST(FALSE, L"c:\\path1");
38 DO_TEST(FALSE, (wchar_t*)NULL);
39 DO_TEST(FALSE, L"");
40 DO_TEST(FALSE, L" ");
41 DO_TEST(FALSE, L"\\\\?");
42}
#define DO_TEST(exp, str)
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define L(x)
Definition: ntvdm.h:50