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.

124 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. trans.h
  5. Abstract:
  6. Provides constants for interacting with the transport module.
  7. This is primarily used to pass transport messages to the app layer.
  8. Author:
  9. Jim Schmidt (jimschm) 26-Mar-2000
  10. Revision History:
  11. <alias> <date> <comments>
  12. --*/
  13. #pragma once
  14. //
  15. // Includes
  16. //
  17. // None
  18. #define DBG_FOO "Foo"
  19. //
  20. // Strings
  21. //
  22. #define S_RELIABLE_STORAGE_TRANSPORT TEXT("RELIABLE_STORAGE_TRANSPORT")
  23. #define S_COMPRESSED_TRANSPORT TEXT("COMPRESSED_TRANSPORT")
  24. #define S_REMOVABLE_MEDIA_TRANSPORT TEXT("REMOVABLE_MEDIA_TRANSPORT")
  25. #define S_HOME_NETWORK_TRANSPORT TEXT("HOME_NETWORK_TRANSPORT")
  26. #define S_DIRECT_CABLE_TRANSPORT TEXT("DIRECT_CABLE_TRANSPORT")
  27. //
  28. // Constants
  29. //
  30. #define TRANSPORT_ENVVAR_RMEDIA_DISKNR TEXT("RemovableMediaTransport:NextDiskNumber")
  31. #define TRANSPORT_ENVVAR_HOMENET_DESTINATIONS TEXT("HomeNetDestinationNames")
  32. #define TRANSPORT_ENVVAR_HOMENET_TAG TEXT("HomeNetTag")
  33. #define CAPABILITY_COMPRESSED 0x00000001
  34. #define CAPABILITY_ENCRYPTED 0x00000002
  35. #define CAPABILITY_AUTOMATED 0x00000004
  36. #define CAPABILITY_SPACEESTIMATE 0x00000008
  37. //
  38. // Macros
  39. //
  40. // None
  41. //
  42. // Types
  43. //
  44. typedef enum {
  45. RMEDIA_ERR_NOERROR = 0,
  46. RMEDIA_ERR_GENERALERROR,
  47. RMEDIA_ERR_WRONGMEDIA,
  48. RMEDIA_ERR_OLDMEDIA,
  49. RMEDIA_ERR_USEDMEDIA,
  50. RMEDIA_ERR_DISKFULL,
  51. RMEDIA_ERR_NOTREADY,
  52. RMEDIA_ERR_WRITEPROTECT,
  53. RMEDIA_ERR_CRITICAL,
  54. } RMEDIA_ERR, *PRMEDIA_ERR;
  55. typedef struct {
  56. RMEDIA_ERR LastError;
  57. DWORD MediaNumber;
  58. ULONGLONG TotalImageSize;
  59. ULONGLONG TotalImageWritten;
  60. } RMEDIA_EXTRADATA, *PRMEDIA_EXTRADATA;
  61. typedef struct {
  62. PCTSTR ObjectType;
  63. PCTSTR ObjectName;
  64. DWORD Error;
  65. } TRANSCOPY_ERROR, *PTRANSCOPY_ERROR;
  66. //
  67. // Globals
  68. //
  69. // None
  70. //
  71. // Macro expansion list
  72. //
  73. // None
  74. //
  75. // Public function prototypes
  76. //
  77. // None
  78. //
  79. // Macro expansion definition
  80. //
  81. // None
  82. //
  83. // ANSI/UNICODE macros
  84. //
  85. // None