Leaked source code of windows server 2003
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.

71 lines
2.4 KiB

  1. #define UNICODE
  2. #define RPCNSH_VERSION 1
  3. const GUID g_RPCNSHGuid = {0x592852f7, 0x5f6f, 0x470b, {0x90, 0x97, 0xc5, 0xd3, 0x3b, 0x61, 0x29, 0x75}};
  4. DWORD WINAPI
  5. StartHelpers(
  6. IN CONST GUID * pguidParent,
  7. IN DWORD dwVersion
  8. );
  9. NS_OSVERSIONCHECK CheckServerOrGreater;
  10. //
  11. // These are context names.
  12. //
  13. #define TOKEN_RPC L"rpc"
  14. //
  15. // These are all command names, group or otherwise.
  16. //
  17. #define TOKEN_ADD L"add"
  18. #define TOKEN_DELETE L"delete"
  19. #define TOKEN_DUMP L"dump"
  20. #define TOKEN_RESET L"reset"
  21. #define TOKEN_SHOW L"show"
  22. #define HLP_BASE 10000
  23. #define ADD_BASE 0
  24. #define DELETE_BASE 100
  25. #define DUMP_BASE 200
  26. #define RESET_BASE 300
  27. #define SHOW_BASE 400
  28. #define MISC_BASE 500
  29. #define CMD_ADD TOKEN_ADD
  30. #define HLP_ADD HLP_BASE + ADD_BASE + 10
  31. #define HLP_ADD_EX HLP_BASE + ADD_BASE + 11
  32. #define CMD_DELETE TOKEN_DELETE
  33. #define HLP_DELETE HLP_BASE + DELETE_BASE + 10
  34. #define HLP_DELETE_EX HLP_BASE + DELETE_BASE + 11
  35. #define CMD_DUMP TOKEN_DUMP
  36. #define HLP_DUMP HLP_BASE + DUMP_BASE + 10
  37. #define HLP_DUMP_EX HLP_BASE + DUMP_BASE + 11
  38. #define CMD_RESET TOKEN_RESET
  39. #define HLP_RESET HLP_BASE + RESET_BASE + 10
  40. #define HLP_RESET_EX HLP_BASE + RESET_BASE + 11
  41. #define CMD_SHOW TOKEN_SHOW
  42. #define HLP_SHOW HLP_BASE + SHOW_BASE + 10
  43. #define HLP_SHOW_EX HLP_BASE + SHOW_BASE + 11
  44. #define ERRORMSG_BASE 20000
  45. #define ERRORMSG_ADD_1 ERRORMSG_BASE + ADD_BASE + 1
  46. #define ERRORMSG_ADD_2 ERRORMSG_BASE + ADD_BASE + 2
  47. #define ERRORMSG_UNKNOWN ERRORMSG_BASE + MISC_BASE + 1
  48. #define ERRORMSG_OOM ERRORMSG_BASE + MISC_BASE + 2
  49. #define ERRORMSG_ACCESSDENIED ERRORMSG_BASE + MISC_BASE + 3
  50. #define ERRORMSG_INVALIDDATA ERRORMSG_BASE + MISC_BASE + 4