ReactOS 0.4.16-dev-91-g764881a
access.c
Go to the documentation of this file.
1#include <precomp.h>
2#include <tchar.h>
3
4#ifdef _UNICODE
5 #define _TS S
6 #define sT "S"
7 #define access_dirT access_dirW
8#else
9 #define _TS s
10 #define sT "s"
11 #define access_dirT access_dirA
12#endif
13
14#define MK_STR(s) #s
15
16/*
17 * INTERNAL
18 */
19int access_dirT(const _TCHAR *_path)
20{
22 TRACE(MK_STR(is_dirT)"('%"sT"')\n", _path);
23
24 if (Attributes == (DWORD)-1) {
26 return -1;
27 }
28
30 {
32 return -1;
33 }
34
35 return 0;
36}
37
38
#define EACCES
Definition: acclib.h:85
unsigned long DWORD
Definition: ntddk_ex.h:95
char _TCHAR
Definition: tchar.h:1392
#define FILE_ATTRIBUTE_DIRECTORY
Definition: nt_native.h:705
void _dosmaperr(unsigned long oserrcode)
Definition: errno.c:79
errno_t __cdecl _set_errno(_In_ int _Value)
#define access_dirT
Definition: access.c:11
#define sT
Definition: access.c:10
#define MK_STR(s)
Definition: access.c:14
#define TRACE(s)
Definition: solgame.cpp:4
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define GetFileAttributes
Definition: winbase.h:3815