2000-02-18 03:38:33 +08:00
|
|
|
#ifndef _NSPAPI_H
|
|
|
|
#define _NSPAPI_H
|
* include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h,
dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h,
imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h,
ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h,
lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h,
lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h,
lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h,
lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h,
lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h,
mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h,
ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h,
ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h,
oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h,
raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h,
rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h,
rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h,
security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h,
sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h,
tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h,
wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h,
wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h,
winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h,
winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h,
wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header
if __GNUC__ >= 3.
* include/mapi.h: Change header guard name to _MAPI_H for
consistency.
2002-03-09 17:04:10 +08:00
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-08-27 07:33:17 +08:00
|
|
|
|
|
|
|
#define NS_ALL 0
|
|
|
|
|
|
|
|
#define NS_SAP 1
|
|
|
|
#define NS_NDS 2
|
|
|
|
#define NS_PEER_BROWSE 3
|
|
|
|
|
|
|
|
#define NS_TCPIP_LOCAL 10
|
|
|
|
#define NS_TCPIP_HOSTS 11
|
|
|
|
#define NS_DNS 12
|
|
|
|
#define NS_NETBT 13
|
|
|
|
#define NS_WINS 14
|
|
|
|
|
|
|
|
#define NS_NBP 20
|
|
|
|
|
|
|
|
#define NS_MS 30
|
|
|
|
#define NS_STDA 31
|
|
|
|
#define NS_NTDS 32
|
|
|
|
|
|
|
|
#define NS_X500 40
|
|
|
|
#define NS_NIS 41
|
|
|
|
#define NS_NISPLUS 42
|
|
|
|
|
|
|
|
#define NS_WRQ 50
|
|
|
|
|
|
|
|
#define SERVICE_REGISTER 1
|
|
|
|
#define SERVICE_DEREGISTER 2
|
|
|
|
#define SERVICE_FLUSH 3
|
|
|
|
#define SERVICE_FLAG_HARD 0x00000002
|
|
|
|
|
|
|
|
#ifndef RC_INVOKED
|
|
|
|
|
|
|
|
#if defined (_WINSOCK_H) || defined (_WINSOCK2_H) /* needed for LPSOCKADDR */
|
|
|
|
#ifndef __CSADDR_T_DEFINED /* also in winsock2.h, but not in winsock.h */
|
|
|
|
#define __CSADDR_T_DEFINED
|
2000-02-18 03:38:33 +08:00
|
|
|
typedef struct _SOCKET_ADDRESS {
|
|
|
|
LPSOCKADDR lpSockaddr;
|
|
|
|
INT iSockaddrLength;
|
|
|
|
} SOCKET_ADDRESS,*PSOCKET_ADDRESS,*LPSOCKET_ADDRESS;
|
|
|
|
typedef struct _CSADDR_INFO {
|
|
|
|
SOCKET_ADDRESS LocalAddr;
|
|
|
|
SOCKET_ADDRESS RemoteAddr;
|
|
|
|
INT iSocketType;
|
|
|
|
INT iProtocol;
|
|
|
|
} CSADDR_INFO,*PCSADDR_INFO,*LPCSADDR_INFO;
|
2002-08-27 07:33:17 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __BLOB_T_DEFINED /* also in wtypes.h and winsock2.h */
|
|
|
|
#define __BLOB_T_DEFINED
|
|
|
|
typedef struct _BLOB {
|
|
|
|
ULONG cbSize;
|
|
|
|
BYTE *pBlobData;
|
|
|
|
} BLOB,*PBLOB,*LPBLOB;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct _SERVICE_ADDRESS {
|
|
|
|
DWORD dwAddressType;
|
|
|
|
DWORD dwAddressFlags;
|
|
|
|
DWORD dwAddressLength;
|
|
|
|
DWORD dwPrincipalLength;
|
|
|
|
BYTE *lpAddress;
|
|
|
|
BYTE *lpPrincipal;
|
|
|
|
} SERVICE_ADDRESS;
|
|
|
|
typedef struct _SERVICE_ADDRESSES {
|
|
|
|
DWORD dwAddressCount;
|
|
|
|
SERVICE_ADDRESS Addresses[1];
|
|
|
|
} SERVICE_ADDRESSES, *PSERVICE_ADDRESSES, *LPSERVICE_ADDRESSES;
|
|
|
|
typedef struct _SERVICE_INFOA {
|
|
|
|
LPGUID lpServiceType;
|
|
|
|
LPSTR lpServiceName;
|
|
|
|
LPSTR lpComment;
|
|
|
|
LPSTR lpLocale;
|
|
|
|
DWORD dwDisplayHint;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwTime;
|
|
|
|
LPSTR lpMachineName;
|
|
|
|
LPSERVICE_ADDRESSES lpServiceAddress;
|
|
|
|
BLOB ServiceSpecificInfo;
|
|
|
|
} SERVICE_INFOA, *LPSERVICE_INFOA;
|
|
|
|
typedef struct _SERVICE_INFOW {
|
|
|
|
LPGUID lpServiceType;
|
|
|
|
LPWSTR lpServiceName;
|
|
|
|
LPWSTR lpComment;
|
|
|
|
LPWSTR lpLocale;
|
|
|
|
DWORD dwDisplayHint;
|
|
|
|
DWORD dwVersion;
|
|
|
|
DWORD dwTime;
|
|
|
|
LPWSTR lpMachineName;
|
|
|
|
LPSERVICE_ADDRESSES lpServiceAddress;
|
|
|
|
BLOB ServiceSpecificInfo;
|
|
|
|
} SERVICE_INFOW, *LPSERVICE_INFOW;
|
|
|
|
|
|
|
|
typedef void *LPSERVICE_ASYNC_INFO;
|
|
|
|
INT WINAPI SetServiceA(DWORD,DWORD,DWORD,LPSERVICE_INFOA,LPSERVICE_ASYNC_INFO,LPDWORD);
|
|
|
|
INT WINAPI SetServiceW(DWORD,DWORD,DWORD,LPSERVICE_INFOA,LPSERVICE_ASYNC_INFO,LPDWORD);
|
|
|
|
INT WINAPI GetAddressByNameA(DWORD,LPGUID,LPSTR,LPINT,DWORD,LPSERVICE_ASYNC_INFO,LPVOID,LPDWORD,LPTSTR,LPDWORD);
|
|
|
|
INT WINAPI GetAddressByNameW(DWORD,LPGUID,LPWSTR,LPINT,DWORD,LPSERVICE_ASYNC_INFO,LPVOID,LPDWORD,LPTSTR,LPDWORD);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
typedef SERVICE_INFOW SERVICE_INFO, *LPSERVICE_INFO;
|
|
|
|
#define _SERVICE_INFO SERVICE_INFOW
|
|
|
|
#define SetService SetServiceW
|
|
|
|
#define GetAddressByName GetAddressByNameW
|
|
|
|
#else
|
|
|
|
typedef SERVICE_INFOA SERVICE_INFO, *LPSERVICE_INFO;
|
|
|
|
#define _SERVICE_INFO SERVICE_INFOA
|
|
|
|
#define SetService SetServiceA
|
|
|
|
#define GetAddressByName GetAddressByNameA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* RC_INVOKED */
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _NSPAPI_H */
|