//wchar_t towlower(wchar_t);
wchar_t towupper(wchar_t);
-int towlower(wint_t);
+wchar_t towlower(wchar_t);
//int towupper(wint_t);
int isleadbyte(int);
NtProductServer
} NT_PRODUCT_TYPE, *PNT_PRODUCT_TYPE;
-typedef ULARGE_INTEGER TIME, *PTIME;
-
#ifndef __USE_W32API
typedef const int CINT;
LONG HighPart;
} TIME, *PTIME;
#endif
+#if 0
+typedef ULARGE_INTEGER TIME, *PTIME;
+#endif
/* W32 XP has 'LARGE_INTEGER' although it could be 'ULARGE_INTEGER' before */
typedef LARGE_INTEGER TIME, *PTIME;
#endif /* ANONYMOUSUNIONS */
} PARTITION_INFORMATION_EX, *PPARTITION_INFORMATION_EX;
-typedef struct _DRIVE_LAYOUT_INFORMATION
-{
- DWORD PartitionCount;
- DWORD Signature;
- PARTITION_INFORMATION PartitionEntry[1];
-} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION;
-
typedef struct _SET_PARTITION_INFORMATION
{
ULONG PartitionType;
} \
}
*/
+#ifdef G_GNUC_UNUSED
+static inline PSINGLE_LIST_ENTRY PopEntryList(PSINGLE_LIST_ENTRY ListHead) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
static inline PSINGLE_LIST_ENTRY
PopEntryList(PSINGLE_LIST_ENTRY ListHead)
{
#define RtlCopyMemory(Destination,Source,Length) \
memcpy((Destination),(Source),(Length))
+#ifdef G_GNUC_UNUSED
+static inline VOID PushEntryList(PSINGLE_LIST_ENTRY ListHead,PSINGLE_LIST_ENTRY Entry) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
static
inline
VOID
);
*/
+#ifdef G_GNUC_UNUSED
+static inline PLIST_ENTRY RemoveHeadList(PLIST_ENTRY ListHead) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
static
inline
PLIST_ENTRY
);
*/
+#ifdef G_GNUC_UNUSED
+static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY ListHead) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
static
inline
PLIST_ENTRY
* length otherwise
*/
+/* Prevent hide of the inappropriate passed type by our
+ * de"const" of the string in the macro below.
+ */
+#ifdef G_GNUC_UNUSED
+static inline const WCHAR *_RtlInitUnicodeStringFromLiteral_typecheck(const WCHAR *s) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
+static inline const WCHAR *_RtlInitUnicodeStringFromLiteral_typecheck(const WCHAR *s) { return s; }
+
#define RtlInitUnicodeStringFromLiteral(__PDEST_STRING__,__SOURCE_STRING__) \
InitializeUnicodeString( \
(__PDEST_STRING__), \
sizeof(__SOURCE_STRING__) - sizeof(WCHAR), \
sizeof(__SOURCE_STRING__), \
- (__SOURCE_STRING__) \
-)
+ (WCHAR * /* de"const" the string here */ )_RtlInitUnicodeStringFromLiteral_typecheck((__SOURCE_STRING__)) \
+ )
/*
/*
* An ReactOS extension
*/
+#ifdef G_GNUC_UNUSED
+static inline PSINGLE_LIST_ENTRY PopEntrySList(PSLIST_HEADER ListHead) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
static
inline
PSINGLE_LIST_ENTRY
/*
* An ReactOS extension
*/
+#ifdef G_GNUC_UNUSED
+static inline VOID PushEntrySList(PSLIST_HEADER ListHead,PSINGLE_LIST_ENTRY Entry) G_GNUC_UNUSED;
+#endif /* G_GNUC_UNUSED */
static
inline
VOID
IN OUT PRTL_GENERIC_TABLE Table,
IN PVOID Element,
IN ULONG ElementSize,
- IN ULONG Unknown4
+ IN PBOOLEAN NewElement OPTIONAL
+ );
+
+PVOID
+STDCALL
+RtlLookupElementGenericTableFull (
+ IN OUT PRTL_GENERIC_TABLE Table,
+ IN PVOID Element,
+ OUT PVOID *NodeOrParent,
+ OUT TABLE_SEARCH_RESULT *SearchResult
);
NTSTATUS
PWCHAR DowncaseTable;
} RTL_NLS_TABLE, *PRTL_NLS_TABLE;
+struct _RTL_GENERIC_TABLE;
+
+typedef enum _RTL_GENERIC_COMPARE_RESULTS
+{
+ GenericLessThan,
+ GenericGreaterThan,
+ GenericEqual
+} RTL_GENERIC_COMPARE_RESULTS;
+
+typedef enum _TABLE_SEARCH_RESULT
+{
+ TableEmptyTree,
+ TableFoundNode,
+ TableInsertAsLeft,
+ TableInsertAsRight
+} TABLE_SEARCH_RESULT;
+
+typedef RTL_GENERIC_COMPARE_RESULTS NTAPI
+(*PRTL_GENERIC_COMPARE_ROUTINE)(struct _RTL_GENERIC_TABLE *GenericTable,
+ PVOID FirstStruct,
+ PVOID SecondStruct);
+
+typedef PVOID NTAPI
+(*PRTL_GENERIC_ALLOCATE_ROUTINE)(struct _RTL_GENERIC_TABLE *GenericTable,
+ ULONG ByteSize
+ );
+
+typedef VOID NTAPI
+(*PRTL_GENERIC_FREE_ROUTINE)(struct _RTL_GENERIC_TABLE *GenericTable,
+ PVOID Element
+ );
typedef struct _RTL_GENERIC_TABLE
{
ULONG Unknown4;
ULONG Unknown5;
ULONG ElementCount;
- PVOID CompareRoutine;
- PVOID AllocateRoutine;
- PVOID FreeRoutine;
+ PRTL_GENERIC_COMPARE_ROUTINE CompareRoutine;
+ PRTL_GENERIC_ALLOCATE_ROUTINE AllocateRoutine;
+ PRTL_GENERIC_FREE_ROUTINE FreeRoutine;
ULONG UserParameter;
} RTL_GENERIC_TABLE, *PRTL_GENERIC_TABLE;
#ifndef __USE_W32API
#ifdef i386
+#ifndef STDCALL
#define STDCALL __attribute__ ((stdcall))
-#define CDECL __attribute__ ((cdecl))
+#endif
+#ifndef CDECL
+#define CDECL __attribute((cdecl))
+#endif
#define CALLBACK WINAPI
#define PASCAL WINAPI
#else
-
-#ifdef __GNUC__
+#ifndef STDCALL
#define STDCALL
+#endif
+#ifndef CDECL
#define CDECL
+#endif
#define CALLBACK
#define PASCAL
-#else
-#define STDCALL __stdcall
-#define CDECL __cdecl
-#define CALLBACK
-#define PASCAL
-#endif /*__GNUC__*/
-
-#endif /*i386*/
+#endif
#ifdef _WIN64
DWORD dwHighDateTime;
} FILETIME, *LPFILETIME, *PFILETIME;
-#ifdef i386
-#ifndef STDCALL
-#define STDCALL __attribute__ ((stdcall))
-#endif
-#ifndef CDECL
-#define CDECL __attribute((cdecl))
-#endif
-#define CALLBACK WINAPI
-#define PASCAL WINAPI
-#else
-#ifndef STDCALL
-#define STDCALL
-#endif
-#ifndef CDECL
-#define CDECL
-#endif
-#define CALLBACK
-#define PASCAL
-#endif
-
typedef struct _LIST_ENTRY
{
struct _LIST_ENTRY *Flink;
#define _SLIST_ENTRY _SINGLE_LIST_ENTRY
#define PSLIST_ENTRY PSINGLE_LIST_ENTRY
-typedef DWORD STDCALL (*PTHREAD_START_ROUTINE) (LPVOID);
-typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE;
-
typedef struct _UNICODE_STRING
{
USHORT Length;
} FILE_BOTH_DIRECTORY_INFORMATION, *PFILE_BOTH_DIRECTORY_INFORMATION,
FILE_BOTH_DIR_INFORMATION, *PFILE_BOTH_DIR_INFORMATION;
+typedef struct _FILE_ID_BOTH_DIR_INFORMATION {
+ ULONG NextEntryOffset;
+ ULONG FileIndex;
+ LARGE_INTEGER CreationTime;
+ LARGE_INTEGER LastAccessTime;
+ LARGE_INTEGER LastWriteTime;
+ LARGE_INTEGER ChangeTime;
+ LARGE_INTEGER EndOfFile;
+ LARGE_INTEGER AllocationSize;
+ ULONG FileAttributes;
+ ULONG FileNameLength;
+ ULONG EaSize;
+ CCHAR ShortNameLength;
+ WCHAR ShortName[12];
+ LARGE_INTEGER FileId;
+ WCHAR FileName[1];
+} FILE_ID_BOTH_DIR_INFORMATION, *PFILE_ID_BOTH_DIR_INFORMATION;
+
/*
NotifyFilter / CompletionFilter:
#ifndef _GNU_H_WINDOWS32_UNICODEFUNCTIONS
#define _GNU_H_WINDOWS32_UNICODEFUNCTIONS
+#include <funcs.h> /* for LPPROGRESS_ROUTINE */
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
BOOLEAN Dirty;
} INTERNAL_BCB, *PINTERNAL_BCB;
-#endif /* LIBCAPTIVE */
-
VOID STDCALL
CcMdlReadCompleteDev (IN PMDL MdlChain,
IN PDEVICE_OBJECT DeviceObject);
PBOOLEAN UptoDate,
CACHE_SEGMENT** CacheSeg);
+#endif /* LIBCAPTIVE */
+
#endif
ZwWriteFile@36
ZwYieldExecution@0
_abnormal_termination
-_alldiv
-_allmul
-_allrem
-_allshl
-_allshr
+_alldiv@16
+_allmul@16
+_allrem@16
_aulldiv
_aullrem
_aullshr