lmserver.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2003 Juan Lang
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef _LMSERVER_
  19. #define _LMSERVER_
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. typedef struct _SERVER_INFO_100 {
  24. DWORD sv100_platform_id;
  25. LMSTR sv100_name;
  26. } SERVER_INFO_100, *PSERVER_INFO_100, *LPSERVER_INFO_100;
  27. typedef struct _SERVER_INFO_101 {
  28. DWORD sv101_platform_id;
  29. LMSTR sv101_name;
  30. DWORD sv101_version_major;
  31. DWORD sv101_version_minor;
  32. DWORD sv101_type;
  33. LMSTR sv101_comment;
  34. } SERVER_INFO_101, *PSERVER_INFO_101, *LPSERVER_INFO_101;
  35. NET_API_STATUS WINAPI NetServerEnum(LMCSTR servername, DWORD level,
  36. LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries,
  37. DWORD servertype, LMCSTR domain, LPDWORD resume_handle);
  38. BOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE,DWORD,BOOL,BOOL);
  39. #define SV_TYPE_WORKSTATION 0x00000001
  40. #define SV_TYPE_SERVER 0x00000002
  41. #define SV_TYPE_SQLSERVER 0x00000004
  42. #define SV_TYPE_DOMAIN_CTRL 0x00000008
  43. #define SV_TYPE_DOMAIN_BAKCTRL 0x00000010
  44. #define SV_TYPE_TIME_SOURCE 0x00000020
  45. #define SV_TYPE_AFP 0x00000040
  46. #define SV_TYPE_NOVELL 0x00000080
  47. #define SV_TYPE_DOMAIN_MEMBER 0x00000100
  48. #define SV_TYPE_PRINTQ_SERVER 0x00000200
  49. #define SV_TYPE_DIALIN_SERVER 0x00000400
  50. #define SV_TYPE_XENIX_SERVER 0x00000800
  51. #define SV_TYPE_SERVER_UNIX SV_TYPE_XENIX_SERVER
  52. #define SV_TYPE_NT 0x00001000
  53. #define SV_TYPE_WFW 0x00002000
  54. #define SV_TYPE_SERVER_MFPN 0x00004000
  55. #define SV_TYPE_SERVER_NT 0x00008000
  56. #define SV_TYPE_POTENTIAL_BROWSER 0x00010000
  57. #define SV_TYPE_BACKUP_BROWSER 0x00020000
  58. #define SV_TYPE_MASTER_BROWSER 0x00040000
  59. #define SV_TYPE_DOMAIN_MASTER 0x00080000
  60. #define SV_TYPE_SERVER_OSF 0x00100000
  61. #define SV_TYPE_SERVER_VMS 0x00200000
  62. #define SV_TYPE_WINDOWS 0x00400000
  63. #define SV_TYPE_DFS 0x00800000
  64. #define SV_TYPE_ALTERNATE_XPORT 0x20000000
  65. #define SV_TYPE_LOCAL_LIST_ONLY 0x40000000
  66. #define SV_TYPE_DOMAIN_ENUM 0x80000000
  67. #define SV_TYPE_ALL 0xFFFFFFFF
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif /* ndef _LMSERVER_ */