ReactOS
0.4.16-dev-736-g28b802b
builddep.h
Go to the documentation of this file.
1
/*
2
* PROJECT: .inf file parser
3
* LICENSE: GPL - See COPYING in the top level directory
4
* COPYRIGHT: Copyright 2005 Ge van Geldorp <gvg@reactos.org>
5
*/
6
7
#ifdef INFLIB_HOST
8
9
/* Definitions native to the host on which we're building */
10
11
#include <
typedefs.h
>
12
13
#include <stdarg.h>
14
#include <stdio.h>
15
#include <string.h>
16
#include <errno.h>
17
18
#define FREE(Area) free(Area)
19
#define MALLOC(Size) malloc((size_t)(Size))
20
#define ZEROMEMORY(Area, Size) memset((Area), '\0', (size_t)(Size))
21
#define MEMCPY(Dest, Src, Size) memcpy((Dest), (Src), (size_t)(Size))
22
23
#define STATUS_SUCCESS 0
24
#define INF_STATUS_SUCCESS 0
25
#define INF_STATUS_NO_MEMORY ENOMEM
26
#define INF_STATUS_INVALID_PARAMETER EINVAL
27
#define INF_STATUS_NOT_FOUND ENOENT
28
#define INF_STATUS_BUFFER_OVERFLOW E2BIG
29
#define INF_SUCCESS(x) (0 == (x))
30
31
#define STRFMT "%s"
32
33
NTSTATUS
NTAPI
RtlMultiByteToUnicodeN
(
IN
PWCHAR
UnicodeString
,
34
IN
ULONG
UnicodeSize,
IN
PULONG
ResultSize,
IN
PCSTR
MbString,
IN
ULONG
MbSize);
35
36
BOOLEAN
NTAPI
RtlIsTextUnicode
(
PVOID
buf
,
INT
len
,
INT
*pf );
37
38
39
#define IS_TEXT_UNICODE_ASCII16 1
40
#define IS_TEXT_UNICODE_REVERSE_ASCII16 16
41
#define IS_TEXT_UNICODE_STATISTICS 2
42
#define IS_TEXT_UNICODE_REVERSE_STATISTICS 32
43
#define IS_TEXT_UNICODE_CONTROLS 4
44
#define IS_TEXT_UNICODE_REVERSE_CONTROLS 64
45
#define IS_TEXT_UNICODE_SIGNATURE 8
46
#define IS_TEXT_UNICODE_REVERSE_SIGNATURE 128
47
#define IS_TEXT_UNICODE_ILLEGAL_CHARS 256
48
#define IS_TEXT_UNICODE_ODD_LENGTH 512
49
#define IS_TEXT_UNICODE_NULL_BYTES 4096
50
#define IS_TEXT_UNICODE_UNICODE_MASK 15
51
#define IS_TEXT_UNICODE_REVERSE_MASK 240
52
#define IS_TEXT_UNICODE_NOT_UNICODE_MASK 3840
53
#define IS_TEXT_UNICODE_NOT_ASCII_MASK 61440
54
55
#else
/* ! defined(INFLIB_HOST) */
56
57
/* ReactOS definitions */
58
59
#define UNICODE
60
#define _UNICODE
61
#include <stdarg.h>
62
#define WIN32_NO_STATUS
63
#include <
windef.h
>
64
#include <
winbase.h
>
65
#define NTOS_MODE_USER
66
#include <
ndk/iofuncs.h
>
67
#include <
ndk/obfuncs.h
>
68
#include <
ndk/rtlfuncs.h
>
69
70
extern
PVOID
InfpHeap
;
71
72
#define FREE(Area) RtlFreeHeap(InfpHeap, 0, (Area))
73
#define MALLOC(Size) RtlAllocateHeap(InfpHeap, 0, (Size))
74
#define ZEROMEMORY(Area, Size) RtlZeroMemory((Area), (Size))
75
#define MEMCPY(Dest, Src, Size) RtlCopyMemory((Dest), (Src), (Size))
76
77
#define INF_STATUS_SUCCESS STATUS_SUCCESS
78
#define INF_STATUS_NO_MEMORY STATUS_NO_MEMORY
79
#define INF_STATUS_INVALID_PARAMETER STATUS_INVALID_PARAMETER
80
#define INF_STATUS_NOT_FOUND STATUS_NOT_FOUND
81
#define INF_STATUS_BUFFER_OVERFLOW STATUS_BUFFER_OVERFLOW
82
#define INF_SUCCESS(x) (0 <= (x))
83
84
#define STRFMT "%S"
85
86
#endif
/* INFLIB_HOST */
87
88
#include <wine/unicode.h>
89
90
/* EOF */
BOOLEAN
unsigned char BOOLEAN
Definition:
ProcessorBind.h:185
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
InfpHeap
PVOID InfpHeap
Definition:
infrosgen.c:37
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition:
glext.h:7751
len
GLenum GLsizei len
Definition:
glext.h:6722
void
Definition:
nsiface.idl:2307
iofuncs.h
obfuncs.h
rtlfuncs.h
RtlIsTextUnicode
NTSYSAPI BOOLEAN NTAPI RtlIsTextUnicode(_In_ CONST VOID *Buffer, _In_ INT Size, _Inout_opt_ INT *Flags)
RtlMultiByteToUnicodeN
_Use_decl_annotations_ NTSTATUS NTAPI RtlMultiByteToUnicodeN(_Out_ PWCH UnicodeString, _In_ ULONG UnicodeSize, _Out_opt_ PULONG ResultSize, _In_ PCCH MbString, _In_ ULONG MbSize)
Definition:
nlsboot.c:62
UnicodeString
Definition:
ntobjfs.cpp:135
typedefs.h
PULONG
uint32_t * PULONG
Definition:
typedefs.h:59
NTAPI
#define NTAPI
Definition:
typedefs.h:36
INT
int32_t INT
Definition:
typedefs.h:58
PCSTR
const char * PCSTR
Definition:
typedefs.h:52
IN
#define IN
Definition:
typedefs.h:39
PWCHAR
uint16_t * PWCHAR
Definition:
typedefs.h:56
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
winbase.h
windef.h
sdk
lib
inflib
builddep.h
Generated on Tue Feb 11 2025 06:14:35 for ReactOS by
1.9.6