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.

123 lines
2.0 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. //
  37. // Macros
  38. //
  39. // None
  40. //
  41. // Types
  42. //
  43. typedef enum {
  44. RMEDIA_ERR_NOERROR = 0,
  45. RMEDIA_ERR_GENERALERROR,
  46. RMEDIA_ERR_WRONGMEDIA,
  47. RMEDIA_ERR_OLDMEDIA,
  48. RMEDIA_ERR_USEDMEDIA,
  49. RMEDIA_ERR_DISKFULL,
  50. RMEDIA_ERR_NOTREADY,
  51. RMEDIA_ERR_WRITEPROTECT,
  52. RMEDIA_ERR_CRITICAL,
  53. } RMEDIA_ERR, *PRMEDIA_ERR;
  54. typedef struct {
  55. RMEDIA_ERR LastError;
  56. DWORD MediaNumber;
  57. ULONGLONG TotalImageSize;
  58. ULONGLONG TotalImageWritten;
  59. } RMEDIA_EXTRADATA, *PRMEDIA_EXTRADATA;
  60. typedef struct {
  61. PCTSTR ObjectType;
  62. PCTSTR ObjectName;
  63. DWORD Error;
  64. } TRANSCOPY_ERROR, *PTRANSCOPY_ERROR;
  65. //
  66. // Globals
  67. //
  68. // None
  69. //
  70. // Macro expansion list
  71. //
  72. // None
  73. //
  74. // Public function prototypes
  75. //
  76. // None
  77. //
  78. // Macro expansion definition
  79. //
  80. // None
  81. //
  82. // ANSI/UNICODE macros
  83. //
  84. // None