Buffer Interface
BFTypeNT.h
Go to the documentation of this file.
1 //
2 // Creation: BFTypeNT.h
3 // Created: June 6, 2001
4 // Creator: Bob Sheff
5 //
6 // Copyright (C) 1993-2001 by BitFlow, Inc. All Rights Reserved.
7 //
8 // Description:
9 //
10 // Description:
11 //
12 // BitFlow Driver Public Type Definitions
13 //
14 // History:
15 //
16 // 06/06/01 rbs Created file.
17 //
18 #include "basetsd.h"
19 #include "stddef.h"
20 
21 #if !defined(__BFTYPENT__)
22 #define __BFTYPENT__
23 
24  #if !defined(BITFLOW_TYPEDEFS)
25  #define BITFLOW_TYPEDEFS
26 
27  #if !defined(KernelOS)
28  typedef char *PSTRING;
29  #define PCIBus 5
30  #endif
31 
32  typedef void BFVOID, *PBFVOID;
33  typedef char BFCHAR, *PBFCHAR;
34  typedef int BFBOOL, *PBFBOOL;
35  typedef unsigned int BFUINT, *PBFUINT;
36  typedef int BFSINT, *PBFSINT;
37  typedef unsigned short BFUSHORT, *PBFUSHORT;
38  typedef short BFSSHORT, *PBFSSHORT;
39  typedef unsigned long BFULONG, *PBFULONG;
40  typedef long BFSLONG, *PBFSLONG;
41  typedef double BFDOUBLE, *PBFDOUBLE;
42 
43  #if defined(_MSC_VER)
44  typedef unsigned __int64 BFU64, *PBFU64;
45  typedef __int64 BFS64, *PBFS64;
46  typedef unsigned __int32 BFU32, *PBFU32;
47  typedef __int32 BFS32, *PBFS32;
48  typedef unsigned __int16 BFU16, *PBFU16;
49  typedef __int16 BFS16, *PBFS16;
50  typedef unsigned __int8 BFU8, *PBFU8;
51  typedef __int8 BFS8, *PBFS8;
52  #else
53  typedef unsigned long long BFU64, *PBFU64;
54  typedef long long BFS64, *PBFS64;
55  typedef unsigned long BFU32, *PBFU32;
56  typedef long BFS32, *PBFS32;
57  typedef unsigned short BFU16, *PBFU16;
58  typedef short BFS16, *PBFS16;
59  typedef unsigned char BFU8, *PBFU8;
60  typedef char BFS8, *PBFS8;
61  #endif
62 
63  typedef BFU16 BFWCHAR, *PBFWCHAR;
64 
65 #if defined(_MSC_VER)
66 
67  // this definition needed for WOW64 support
68  // only really needed at the driver level
69  #if !defined(POINTER_32)
70  #define POINTER_32
71  #endif
72 
73  // These are WOW64 types
74  typedef void *POINTER_32 PBFVOIDWOW64;
75  typedef unsigned __int64 *POINTER_32 PBFU64WOW64;
76  typedef __int64 *POINTER_32 PBFS64WOW64;
77  typedef unsigned __int32 *POINTER_32 PBFU32WOW64;
78  typedef __int32 *POINTER_32 PBFS32WOW64;
79  typedef unsigned __int16 *POINTER_32 PBFU16WOW64;
80  typedef __int16 *POINTER_32 PBFS16WOW64;
81  typedef unsigned __int8 *POINTER_32 PBFU8WOW64;
82  typedef __int8 *POINTER_32 PBFS8WOW64;
83 #endif
84 
85  // BFUPTR is used when storing a pointer in an integer
86  // and accounts for the pointer size of the machine.
87 
88  #if (501 < __midl)
89  typedef unsigned __int3264 BFUPTR, *PBFUPTR;
90  #else
91  typedef UINT_PTR BFUPTR, *PBFUPTR;
92  typedef INT_PTR BFSPTR, *PBFSPTR;
93  typedef size_t BFSIZET, *PBFSIZET;
94 
95  // These are WOW64 types
96  typedef UINT_PTR BFUPTRWOW64, *POINTER_32 PBFUPTRWOW64;
97 
98  #endif
99 
100  #endif
101 
102  #if !defined(BFC)
103  #define BFC
104  #endif
105 
106  #if !defined(BFDLL)
107  #if defined(KernelOS)
108  #define BFDLL extern
109  #elif defined(INDLL)|| defined(_WINDLL)
110  #define BFDLL __declspec(dllexport)
111  #else
112  #define BFDLL __declspec(dllimport)
113  #endif
114  #endif
115 
116  #if !defined(BFCDECL)
117  #define BFCDECL __cdecl
118  #endif
119 
120  #if !defined(BFSTDCALL)
121  #define BFSTDCALL __stdcall
122  #endif
123 
124  #if !defined(BFCAPI)
125  #define BFCAPI BFCDECL
126  #endif
127 
128  #if defined(KernelOS) && !defined(_DEBUG) && defined(DBG) && DBG == 1
129  #define _DEBUG
130  #endif
131 
132 // #if !defined(BFstrnicmp)
133 // #define BFstrnicmp _strnicmp
134 // #endif
135 
136  //#if !defined(stricmp)
137  // #define stricmp _stricmp
138  //#endif
139 
140 #endif
141 
BFU16 BFWCHAR
Definition: BFTypeNT.h:63
size_t * PBFSIZET
Definition: BFTypeNT.h:93
UINT_PTR BFUPTRWOW64
Definition: BFTypeNT.h:96
unsigned short * PBFU16
Definition: BFTypeNT.h:57
char * PBFS8
Definition: BFTypeNT.h:60
unsigned long BFULONG
Definition: BFTypeNT.h:39
char BFCHAR
Definition: BFTypeNT.h:33
unsigned long BFU32
Definition: BFTypeNT.h:55
char BFS8
Definition: BFTypeNT.h:60
double * PBFDOUBLE
Definition: BFTypeNT.h:41
INT_PTR * PBFSPTR
Definition: BFTypeNT.h:92
unsigned long long BFU64
Definition: BFTypeNT.h:53
int * PBFBOOL
Definition: BFTypeNT.h:34
UINT_PTR * PBFUPTR
Definition: BFTypeNT.h:91
unsigned long * PBFU32
Definition: BFTypeNT.h:55
short BFSSHORT
Definition: BFTypeNT.h:38
unsigned long long * PBFU64
Definition: BFTypeNT.h:53
long * PBFSLONG
Definition: BFTypeNT.h:40
UINT_PTR *POINTER_32 PBFUPTRWOW64
Definition: BFTypeNT.h:96
unsigned short BFUSHORT
Definition: BFTypeNT.h:37
int * PBFSINT
Definition: BFTypeNT.h:36
short * PBFS16
Definition: BFTypeNT.h:58
unsigned short BFU16
Definition: BFTypeNT.h:57
BFU16 * PBFWCHAR
Definition: BFTypeNT.h:63
unsigned long * PBFULONG
Definition: BFTypeNT.h:39
int BFSINT
Definition: BFTypeNT.h:36
unsigned int BFUINT
Definition: BFTypeNT.h:35
long * PBFS32
Definition: BFTypeNT.h:56
long BFSLONG
Definition: BFTypeNT.h:40
unsigned short * PBFUSHORT
Definition: BFTypeNT.h:37
long long BFS64
Definition: BFTypeNT.h:54
size_t BFSIZET
Definition: BFTypeNT.h:93
unsigned int * PBFUINT
Definition: BFTypeNT.h:35
short * PBFSSHORT
Definition: BFTypeNT.h:38
char * PBFCHAR
Definition: BFTypeNT.h:33
double BFDOUBLE
Definition: BFTypeNT.h:41
INT_PTR BFSPTR
Definition: BFTypeNT.h:92
void BFVOID
Definition: BFTypeNT.h:32
UINT_PTR BFUPTR
Definition: BFTypeNT.h:91
short BFS16
Definition: BFTypeNT.h:58
unsigned char BFU8
Definition: BFTypeNT.h:59
long long * PBFS64
Definition: BFTypeNT.h:54
void * PBFVOID
Definition: BFTypeNT.h:32
char * PSTRING
Definition: BFTypeNT.h:28
long BFS32
Definition: BFTypeNT.h:56
unsigned char * PBFU8
Definition: BFTypeNT.h:59
int BFBOOL
Definition: BFTypeNT.h:34