ReactOS  0.4.14-dev-583-g2a1ba2c
nspapi.h
Go to the documentation of this file.
1 #ifndef _NSPAPI_H
2 #define _NSPAPI_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #define NS_ALL 0
9 
10 #define NS_SAP 1
11 #define NS_NDS 2
12 #define NS_PEER_BROWSE 3
13 
14 #define NS_TCPIP_LOCAL 10
15 #define NS_TCPIP_HOSTS 11
16 #define NS_DNS 12
17 #define NS_NETBT 13
18 #define NS_WINS 14
19 
20 #define NS_NBP 20
21 
22 #define NS_MS 30
23 #define NS_STDA 31
24 #define NS_NTDS 32
25 
26 #define NS_X500 40
27 #define NS_NIS 41
28 #define NS_NISPLUS 42
29 
30 #define NS_WRQ 50
31 
32 #define SERVICE_REGISTER 1
33 #define SERVICE_DEREGISTER 2
34 #define SERVICE_FLUSH 3
35 #define SERVICE_FLAG_HARD 0x00000002
36 
37 #ifndef RC_INVOKED
38 
39 #if defined (_WINSOCKAPI_) || defined (_WINSOCK2API_) /* needed for LPSOCKADDR */
40 #ifndef __CSADDR_DEFINED__ /* also in winsock2.h, but not in winsock.h */
41 #define __CSADDR_DEFINED__
42 typedef struct _SOCKET_ADDRESS {
46 typedef struct _CSADDR_INFO {
50  INT iProtocol;
52 #endif
53 #endif
54 
55 #ifndef __BLOB_T_DEFINED /* also in wtypes.h and winsock2.h */
56 #define __BLOB_T_DEFINED
57 typedef struct _BLOB {
60 } BLOB,*PBLOB,*LPBLOB;
61 #endif
62 
63 typedef struct _SERVICE_ADDRESS {
71 typedef struct _SERVICE_ADDRESSES {
75 typedef struct _SERVICE_INFOA {
87 typedef struct _SERVICE_INFOW {
99 
100 typedef void *LPSERVICE_ASYNC_INFO;
105 
106 #ifdef UNICODE
108 #define _SERVICE_INFO SERVICE_INFOW
109 #define SetService SetServiceW
110 #define GetAddressByName GetAddressByNameW
111 #else
113 #define _SERVICE_INFO SERVICE_INFOA
114 #define SetService SetServiceA
115 #define GetAddressByName GetAddressByNameA
116 #endif
117 
118 #endif /* RC_INVOKED */
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 #endif /* _NSPAPI_H */
struct _SERVICE_ADDRESS SERVICE_ADDRESS
LPSTR lpLocale
Definition: nspapi.h:79
LPWSTR lpLocale
Definition: nspapi.h:91
INT iSocketType
Definition: ws2def.h:393
BYTE * lpPrincipal
Definition: nspapi.h:69
LPSTR lpMachineName
Definition: nspapi.h:83
DWORD dwDisplayHint
Definition: nspapi.h:92
struct _SOCKET_ADDRESS * PSOCKET_ADDRESS
DWORD dwAddressFlags
Definition: nspapi.h:65
DWORD dwTime
Definition: nspapi.h:82
INT iProtocol
Definition: ws2def.h:394
LPSERVICE_ADDRESSES lpServiceAddress
Definition: nspapi.h:96
DWORD dwAddressLength
Definition: nspapi.h:66
BLOB ServiceSpecificInfo
Definition: nspapi.h:85
LPSOCKADDR lpSockaddr
Definition: ws2def.h:375
DWORD dwVersion
Definition: nspapi.h:93
Definition: nspapi.h:57
char * LPSTR
Definition: xmlstorage.h:182
DWORD dwAddressCount
Definition: nspapi.h:72
struct _BLOB * LPBLOB
int32_t INT
Definition: typedefs.h:56
struct _CSADDR_INFO CSADDR_INFO
LPWSTR lpMachineName
Definition: nspapi.h:95
INT WINAPI GetAddressByNameW(DWORD, LPGUID, LPWSTR, LPINT, DWORD, LPSERVICE_ASYNC_INFO, LPVOID, LPDWORD, LPWSTR, LPDWORD)
Definition: stubs.c:82
BYTE * pBlobData
Definition: nspapi.h:59
struct _SERVICE_INFOW * LPSERVICE_INFOW
SERVICE_INFOA * LPSERVICE_INFO
Definition: nspapi.h:112
LPSERVICE_ADDRESSES lpServiceAddress
Definition: nspapi.h:84
struct _CSADDR_INFO * PCSADDR_INFO
struct _SERVICE_INFOA * LPSERVICE_INFOA
struct _SERVICE_INFOA SERVICE_INFOA
INT WINAPI SetServiceW(DWORD, DWORD, DWORD, LPSERVICE_INFOW, LPSERVICE_ASYNC_INFO, LPDWORD)
Definition: stubs.c:203
struct _SERVICE_INFOW SERVICE_INFOW
SERVICE_ADDRESS Addresses[1]
Definition: nspapi.h:73
struct _BLOB BLOB
SERVICE_INFOA SERVICE_INFO
Definition: nspapi.h:112
void * LPSERVICE_ASYNC_INFO
Definition: nspapi.h:100
DWORD dwTime
Definition: nspapi.h:94
struct _SOCKET_ADDRESS SOCKET_ADDRESS
LPSTR lpServiceName
Definition: nspapi.h:77
ULONG cbSize
Definition: nspapi.h:58
#define WINAPI
Definition: msvc.h:6
SOCKET_ADDRESS RemoteAddr
Definition: ws2def.h:392
struct _SERVICE_ADDRESSES * LPSERVICE_ADDRESSES
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD dwPrincipalLength
Definition: nspapi.h:67
BYTE * lpAddress
Definition: nspapi.h:68
unsigned char BYTE
Definition: mem.h:68
struct _SOCKET_ADDRESS * LPSOCKET_ADDRESS
LPGUID lpServiceType
Definition: nspapi.h:76
struct _CSADDR_INFO * LPCSADDR_INFO
LPSTR lpComment
Definition: nspapi.h:78
struct _BLOB * PBLOB
DWORD dwAddressType
Definition: nspapi.h:64
INT WINAPI SetServiceA(DWORD, DWORD, DWORD, LPSERVICE_INFOA, LPSERVICE_ASYNC_INFO, LPDWORD)
Definition: stubs.c:185
SOCKET_ADDRESS LocalAddr
Definition: ws2def.h:391
DWORD dwDisplayHint
Definition: nspapi.h:80
INT WINAPI GetAddressByNameA(DWORD, LPGUID, LPSTR, LPINT, DWORD, LPSERVICE_ASYNC_INFO, LPVOID, LPDWORD, LPSTR, LPDWORD)
Definition: stubs.c:60
struct _SERVICE_ADDRESSES * PSERVICE_ADDRESSES
LPWSTR lpServiceName
Definition: nspapi.h:89
uint32_t * LPDWORD
Definition: typedefs.h:57
unsigned int ULONG
Definition: retypes.h:1
struct _SERVICE_ADDRESSES SERVICE_ADDRESSES
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LPGUID lpServiceType
Definition: nspapi.h:88
INT iSockaddrLength
Definition: ws2def.h:376
DWORD dwVersion
Definition: nspapi.h:81
BLOB ServiceSpecificInfo
Definition: nspapi.h:97
LPWSTR lpComment
Definition: nspapi.h:90
int * LPINT
Definition: windef.h:178