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.

54 lines
1011 B

  1. /*++
  2. Copyright (c) 1997, Microsoft Corporation:
  3. Module Name:
  4. amlreg.h
  5. Abstract:
  6. Constants and typedefs for reading AML files and putting them in the registry.
  7. Author:
  8. Environment:
  9. NT Kernel Mode, Win9x Driver
  10. --*/
  11. #ifndef _AMLREG_H_
  12. #define _AMLREG_H_
  13. //
  14. // Values for "action" registry entry
  15. //
  16. #define ACTION_LOAD_TABLE 0
  17. #define ACTION_LOAD_ROM 1
  18. #define ACTION_LOAD_NOTHING 2
  19. #define ACTION_LOAD_LEGACY 3
  20. #define ACTION_FATAL_ERROR 4
  21. typedef struct {
  22. ULONG Offset;
  23. ULONG Length; // 0 = set image size
  24. } REGISTRY_HEADER, *PREGISTRY_HEADER;
  25. typedef struct {
  26. BOOLEAN Opened;
  27. PUCHAR Desc;
  28. PUCHAR FileName;
  29. HANDLE FileHandle;
  30. HANDLE MapHandle;
  31. ULONG FileSize;
  32. PUCHAR Image;
  33. PUCHAR EndOfImage;
  34. PUCHAR OemID;
  35. PUCHAR OemTableID;
  36. ULONG OemRevision;
  37. } IFILE, *PIFILE;
  38. #endif