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.

50 lines
1.4 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: rcmd.h
  3. *
  4. * Copyright (c) 1991, Microsoft Corporation
  5. *
  6. * Remote shell common header module
  7. *
  8. * History:
  9. * 05-2-94 DaveTh Created.
  10. \***************************************************************************/
  11. #define MAX_CMD_LENGTH 500
  12. typedef struct {
  13. DWORD Signature; // Identifies Remote Command Service
  14. DWORD RequestedLevel; // Level of functionality desired
  15. ULONG CommandLength; // Length of command.
  16. } COMMAND_FIXED_HEADER, *PCOMMAND_FIXED_HEADER;
  17. typedef struct {
  18. COMMAND_FIXED_HEADER CommandFixedHeader;
  19. UCHAR Command[MAX_CMD_LENGTH+1]; // Present if CommandLength non-zero
  20. // Not zero terminated, but +1 allows
  21. // for local use with string
  22. } COMMAND_HEADER, *PCOMMAND_HEADER;
  23. typedef struct {
  24. DWORD Signature;
  25. DWORD SupportedLevel; // Level or Error Response
  26. } RESPONSE_HEADER, *PRESPONSE_HEADER;
  27. #define RCMD_SIGNATURE 'RC94'
  28. //
  29. // SupportedLevel is Error response if RC_ERROR_RESPONSE
  30. //
  31. #define RC_ERROR_RESPONSE 0x80000000L
  32. //
  33. // SupportedLevel is Level response if RC_LEVEL_RESPONSE
  34. //
  35. #define RC_LEVEL_RESPONSE 0x40000000L
  36. #define RC_LEVEL_REQUEST 0x40000000L
  37. #define RC_LEVEL_BASIC 0x00000001L // Basic functionality - stdin/out only
  38. void print_help();