Welcome to mirror list, hosted at ThFree Co, Russian Federation.

svcguid.h « include « w32api « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 65072808cf16cc39f4df7525ab63423925254f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _SVCGUID_H
#define _SVCGUID_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif

#ifdef __cplusplus
extern "C" {
#endif

#define SVCID_NETWARE(_SapId) \
	{ (0x000B << 16) | (_SapId), 0, 0, { 0xC0,0,0,0,0,0,0,0x46 } }

#define SAPID_FROM_SVCID_NETWARE(_g) \
	((WORD)(_g->Data1 & 0xFFFF))

#define SET_NETWARE_SVCID(_g,_SapId) { \
	(_g)->Data1 = (0x000B << 16 ) | (_SapId); \
	(_g)->Data2 = 0; \
	(_g)->Data3 = 0; \
	(_g)->Data4[0] = 0xC0; \
	(_g)->Data4[1] = 0x0; \
	(_g)->Data4[2] = 0x0; \
	(_g)->Data4[3] = 0x0; \
	(_g)->Data4[4] = 0x0; \
	(_g)->Data4[5] = 0x0; \
	(_g)->Data4[6] = 0x0; \
	(_g)->Data4[7] = 0x46; }

#ifdef __cplusplus
}
#endif
#endif