ReactOS 0.4.15-dev-7961-gdcf9eb0
nspapi.h
Go to the documentation of this file.
1#ifndef _NSPAPI_H
2#define _NSPAPI_H
3
4#ifdef __cplusplus
5extern "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__
42typedef struct _SOCKET_ADDRESS {
46typedef struct _CSADDR_INFO {
52#endif
53#endif
54
55#ifndef __BLOB_T_DEFINED /* also in wtypes.h and winsock2.h */
56#define __BLOB_T_DEFINED
57typedef struct _BLOB {
61#endif
62
63typedef struct _SERVICE_ADDRESS {
71typedef struct _SERVICE_ADDRESSES {
75typedef struct _SERVICE_INFOA {
87typedef struct _SERVICE_INFOW {
99
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 */
unsigned long DWORD
Definition: ntddk_ex.h:95
INT WINAPI GetAddressByNameW(DWORD, LPGUID, LPWSTR, LPINT, DWORD, LPSERVICE_ASYNC_INFO, LPVOID, LPDWORD, LPWSTR, LPDWORD)
Definition: stubs.c:82
struct _SERVICE_INFOA SERVICE_INFOA
struct _SERVICE_ADDRESSES SERVICE_ADDRESSES
struct _SERVICE_INFOW SERVICE_INFOW
struct _SERVICE_ADDRESS SERVICE_ADDRESS
struct _BLOB * PBLOB
struct _BLOB BLOB
struct _BLOB * LPBLOB
SERVICE_INFOA * LPSERVICE_INFO
Definition: nspapi.h:112
struct _SERVICE_INFOA * LPSERVICE_INFOA
struct _SERVICE_ADDRESSES * PSERVICE_ADDRESSES
INT WINAPI SetServiceA(DWORD, DWORD, DWORD, LPSERVICE_INFOA, LPSERVICE_ASYNC_INFO, LPDWORD)
Definition: stubs.c:185
void * LPSERVICE_ASYNC_INFO
Definition: nspapi.h:100
INT WINAPI SetServiceW(DWORD, DWORD, DWORD, LPSERVICE_INFOW, LPSERVICE_ASYNC_INFO, LPDWORD)
Definition: stubs.c:203
struct _SERVICE_ADDRESSES * LPSERVICE_ADDRESSES
struct _SERVICE_INFOW * LPSERVICE_INFOW
SERVICE_INFOA SERVICE_INFO
Definition: nspapi.h:112
INT WINAPI GetAddressByNameA(DWORD, LPGUID, LPSTR, LPINT, DWORD, LPSERVICE_ASYNC_INFO, LPVOID, LPDWORD, LPSTR, LPDWORD)
Definition: stubs.c:60
Definition: nspapi.h:57
ULONG cbSize
Definition: nspapi.h:58
BYTE * pBlobData
Definition: nspapi.h:59
INT iProtocol
Definition: ws2def.h:394
SOCKET_ADDRESS RemoteAddr
Definition: ws2def.h:392
INT iSocketType
Definition: ws2def.h:393
SOCKET_ADDRESS LocalAddr
Definition: ws2def.h:391
DWORD dwAddressCount
Definition: nspapi.h:72
SERVICE_ADDRESS Addresses[1]
Definition: nspapi.h:73
DWORD dwAddressFlags
Definition: nspapi.h:65
DWORD dwAddressType
Definition: nspapi.h:64
DWORD dwAddressLength
Definition: nspapi.h:66
BYTE * lpPrincipal
Definition: nspapi.h:69
BYTE * lpAddress
Definition: nspapi.h:68
DWORD dwPrincipalLength
Definition: nspapi.h:67
DWORD dwDisplayHint
Definition: nspapi.h:80
LPSTR lpComment
Definition: nspapi.h:78
DWORD dwVersion
Definition: nspapi.h:81
BLOB ServiceSpecificInfo
Definition: nspapi.h:85
LPSTR lpLocale
Definition: nspapi.h:79
DWORD dwTime
Definition: nspapi.h:82
LPSTR lpServiceName
Definition: nspapi.h:77
LPGUID lpServiceType
Definition: nspapi.h:76
LPSERVICE_ADDRESSES lpServiceAddress
Definition: nspapi.h:84
LPSTR lpMachineName
Definition: nspapi.h:83
LPWSTR lpLocale
Definition: nspapi.h:91
LPGUID lpServiceType
Definition: nspapi.h:88
LPWSTR lpServiceName
Definition: nspapi.h:89
DWORD dwVersion
Definition: nspapi.h:93
DWORD dwTime
Definition: nspapi.h:94
BLOB ServiceSpecificInfo
Definition: nspapi.h:97
LPSERVICE_ADDRESSES lpServiceAddress
Definition: nspapi.h:96
LPWSTR lpMachineName
Definition: nspapi.h:95
DWORD dwDisplayHint
Definition: nspapi.h:92
LPWSTR lpComment
Definition: nspapi.h:90
LPSOCKADDR lpSockaddr
Definition: ws2def.h:375
INT iSockaddrLength
Definition: ws2def.h:376
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
int * LPINT
Definition: windef.h:178
#define WINAPI
Definition: msvc.h:6
struct _CSADDR_INFO * LPCSADDR_INFO
struct _SOCKET_ADDRESS SOCKET_ADDRESS
struct _CSADDR_INFO * PCSADDR_INFO
struct _CSADDR_INFO CSADDR_INFO
struct _SOCKET_ADDRESS * LPSOCKET_ADDRESS
struct _SOCKET_ADDRESS * PSOCKET_ADDRESS
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184
unsigned char BYTE
Definition: xxhash.c:193