ReactOS  0.4.15-dev-313-g8fde48b
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  */
19 int 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 
errno_t __cdecl _set_errno(_In_ int _Value)
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
char _TCHAR
Definition: tchar.h:1392
#define FILE_ATTRIBUTE_DIRECTORY
Definition: nt_native.h:705
#define sT
Definition: access.c:10
#define TRACE(s)
Definition: solgame.cpp:4
#define access_dirT
Definition: access.c:11
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: arc.h:34
void _dosmaperr(unsigned long oserrcode)
Definition: errno.c:81
#define GetFileAttributes
Definition: winbase.h:3655
_Must_inspect_result_ _In_ USHORT _In_ PHIDP_PREPARSED_DATA _Out_writes_to_ LengthAttributes PHIDP_EXTENDED_ATTRIBUTES Attributes
Definition: hidpi.h:348
#define MK_STR(s)
Definition: access.c:14