lmcons.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 1999 Rein Klazes
  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 __WINE_LMCONS_H
  19. #define __WINE_LMCONS_H
  20. /* Types */
  21. #define NET_API_STATUS DWORD
  22. #define API_RET_TYPE NET_API_STATUS
  23. #define NET_API_FUNCTION WINAPI
  24. #define MAX_PREFERRED_LENGTH ((DWORD) -1)
  25. /* Lan manager API defines */
  26. #define UNLEN 256 /* Maximum user name length */
  27. #define LM20_UNLEN 20
  28. #define GNLEN UNLEN /* Maximum group name length */
  29. #define LM20_GNLEN LM20_UNLEN
  30. #define PWLEN 256 /* Maximum password length */
  31. #define LM20_PWLEN 14
  32. #define CNLEN 15 /* Computer name length */
  33. #define LM20_CNLEN CNLEN
  34. #define DNLEN CNLEN /* Maximum domain name length */
  35. #define LM20_DNLEN DNLEN
  36. #define UNCLEN (CNLEN+2) /* UNC computer name length */
  37. #define LM20_UNCLEN (LM20_CNLEN+2)
  38. #define NNLEN 80 /* max share name length */
  39. #define LM20_NNLEN 12 /* max LM 2.0 share name length */
  40. #define RMLEN (UNCLEN+1+NNLEN)
  41. #define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
  42. #define SNLEN 80 /* max service name length */
  43. #define LM20_SNLEN 15
  44. #define STXTLEN 256 /* service text length */
  45. #define LM20_STXTLEN 63
  46. #define PATHLEN 256
  47. #define LM20_PATHLEN 256
  48. #define DEVLEN 80 /* max device name length */
  49. #define LM20_DEVLEN 8
  50. #define EVLEN 16 /* max event name length */
  51. #define CLTYPE_LEN 12 /* max client type length */
  52. /* platform IDs */
  53. #define PLATFORM_ID_DOS 300
  54. #define PLATFORM_ID_OS2 400
  55. #define PLATFORM_ID_NT 500
  56. #define PLATFORM_ID_OSF 600
  57. #define PLATFORM_ID_VMS 700
  58. #define LMSTR LPWSTR
  59. #define LMCSTR LPCWSTR
  60. #endif