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.

90 lines
1.6 KiB

  1. /*--
  2. Copyright (C) Microsoft Corporation, 1999
  3. --*/
  4. // @@BEGIN_DDKSPLIT
  5. /*++
  6. Module Name:
  7. sec.h
  8. Abstract:
  9. Private header file for cdrom.sys. This contains info for
  10. the obscurity features for RPC Phase 0 drives
  11. Author:
  12. Environment:
  13. kernel mode only
  14. Notes:
  15. Revision History:
  16. --*/
  17. // @@END_DDKSPLIT
  18. #include "ntddk.h"
  19. #include "classpnp.h"
  20. #include "cdrom.h"
  21. // @@BEGIN_DDKSPLIT
  22. #ifndef INVALID_HANDLE_VALUE
  23. #define INVALID_HANDLE_VALUE ((HANDLE)-1)
  24. #endif
  25. #define SHIPPING_VERSION 0
  26. #if SHIPPING_VERSION
  27. #define STATIC static // make debugging difficult
  28. #ifdef DebugPrint
  29. #undef DebugPrint
  30. #endif
  31. #define DebugPrint(x) // remove all debug prints
  32. #define HELP_ME() // remove all debug prints
  33. #else // !SHIPPING_VERSION
  34. #define STATIC
  35. #define HELP_ME() DebugPrint((0, "%s %d\n", __FILE__, __LINE__));
  36. #endif // SHIPPING_VERSION / !SHIPPING_VERSION
  37. #define INVALID_HASH ((ULONGLONG)0)
  38. //
  39. // the DVD_RANDOMIZER is an array of ULONGs with which the
  40. // Vendor, ProductId, and Revision are multiplied to generate
  41. // nonobvious names. Technically, these should be primes.
  42. //
  43. // CHANGE THESE TO LARGE PRIME NUMBERS PRIOR TO SHIP
  44. //
  45. #define DVD_RANDOMIZER_SIZE 10
  46. ULONG DVD_RANDOMIZER[ DVD_RANDOMIZER_SIZE ] = {
  47. // 'henry paul and anne marie gabryjelski '
  48. 'rneh', 'ap y',
  49. 'a lu', 'a dn',
  50. ' enn', 'iram',
  51. 'ag e', 'jyrb',
  52. 'ksle', ' i'
  53. };
  54. typedef struct _DVD_REGISTRY_CONTEXT {
  55. ULONGLONG DriveHash;
  56. ULONGLONG DpidHash;
  57. UCHAR RegionMask;
  58. UCHAR ResetCount;
  59. } DVD_REGISTRY_CONTEXT, *PDVD_REGISTRY_CONTEXT;
  60. // @@END_DDKSPLIT