ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MinGW/include/svcguid.h
Revision: 1046
Committed: Mon Aug 29 13:19:38 2016 UTC (9 years, 1 month ago) by alloc
Content type: text/x-chdr
File size: 660 byte(s)
Log Message:
Daodan: Added Windows MinGW and build batch file

File Contents

# Content
1 #ifndef _SVCGUID_H
2 #define _SVCGUID_H
3 #if __GNUC__ >=3
4 #pragma GCC system_header
5 #endif
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #define SVCID_NETWARE(_SapId) \
12 { (0x000B << 16) | (_SapId), 0, 0, { 0xC0,0,0,0,0,0,0,0x46 } }
13
14 #define SAPID_FROM_SVCID_NETWARE(_g) \
15 ((WORD)(_g->Data1 & 0xFFFF))
16
17 #define SET_NETWARE_SVCID(_g,_SapId) { \
18 (_g)->Data1 = (0x000B << 16 ) | (_SapId); \
19 (_g)->Data2 = 0; \
20 (_g)->Data3 = 0; \
21 (_g)->Data4[0] = 0xC0; \
22 (_g)->Data4[1] = 0x0; \
23 (_g)->Data4[2] = 0x0; \
24 (_g)->Data4[3] = 0x0; \
25 (_g)->Data4[4] = 0x0; \
26 (_g)->Data4[5] = 0x0; \
27 (_g)->Data4[6] = 0x0; \
28 (_g)->Data4[7] = 0x46; }
29
30 #ifdef __cplusplus
31 }
32 #endif
33 #endif