Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.1 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*++
  3. Module Name:
  4. defines.h
  5. Abstract:
  6. This Module includes the definitions.
  7. Author:
  8. Arathi Kundapur (v-akunda) 11-Feb-1998
  9. Revision History:
  10. --*/
  11. #ifndef _DEFINES_H_
  12. #define _DEFINES_H_
  13. #include <rpc.h>
  14. #include "lsclient.h"
  15. #include "license.h"
  16. #include "tlsapip.h"
  17. #include <rpcnsi.h>
  18. #define WM_ADD_SERVER WM_USER + 1
  19. #define WM_SEL_CHANGE WM_USER + 2
  20. #define WM_ADD_ALL_SERVERS WM_USER + 3
  21. #define WM_ADD_KEYPACKS WM_USER + 4
  22. #define WM_ADD_KEYPACK WM_USER + 5
  23. #define WM_DELETE_SERVER WM_USER + 6
  24. #define WM_UPDATE_SERVER WM_USER + 7
  25. #define WM_ENUMERATESERVER (WM_USER + 8)
  26. #define TERMSERVICE_PARAMETER_KEY _T("system\\CurrentcontrolSet\\Services\\TermService\\enum")
  27. #define USE_LICSENSE_SERVER _T("UseLicenseServer")
  28. #define LICSENSE_SERVER _T("DefaultLicenseServer")
  29. enum NODETYPE {
  30. NODE_ALL_SERVERS,
  31. NODE_SERVER,
  32. NODE_KEYPACK,
  33. NODE_NONE
  34. };
  35. #define LG_BITMAP_WIDTH 32
  36. #define LG_BITMAP_HEIGHT 32
  37. #define SM_BITMAP_WIDTH 16
  38. #define SM_BITMAP_HEIGHT 16
  39. #define MAX_COLUMNS 6
  40. #define NUM_SERVER_COLUMNS 2
  41. #define NUM_KEYPACK_COLUMNS 5
  42. #define NUM_LICENSE_COLUMNS 3
  43. #define MAX_LICENSES 9999
  44. #define NUM_PLATFORM_TYPES 1
  45. #define NUM_KEYPACK_STATUS 7
  46. #define NUM_PURCHASE_CHANNEL 3
  47. #define NUM_LICENSE_STATUS 5
  48. #define NUM_KEYPACK_TYPE 8
  49. #define KEYPACK_DISPNAME_WIDTH 250
  50. #define KEYPACK_OTHERS_WIDTH 100
  51. //Return values. Bound to change
  52. #define ALREADY_EXPANDED 0
  53. #define CONNECTION_FAILED 1
  54. #define ENUM_FAILED 2
  55. #define ADD_KEYPACK_FAILED 4
  56. #define E_DUPLICATE 5
  57. #define ERROR_UNLIMITED_KEYPACK 6
  58. enum SERVER_TYPE
  59. {
  60. SERVER_TS4,
  61. SERVER_TS5_ENFORCED,
  62. SERVER_TS5_NONENFORCED
  63. };
  64. enum VIEW
  65. {
  66. TREEVIEW,
  67. LISTVIEW,
  68. NOVIEW
  69. };
  70. typedef enum
  71. {
  72. TLSERVER_UNKNOWN,
  73. TLSERVER_TS4,
  74. TLSERVER_UNREGISTER,
  75. TLSERVER_CH_REGISTERED,
  76. TLSERVER_PHONE_REGISTERED,
  77. TLSERVER_TS5_NONENFORCED
  78. } SERVER_REGISTRATION_STATUS;
  79. #define E_NO_SERVER ((HRESULT)0x80050001L)
  80. #endif //_DEFINES_H_