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.

69 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. dockinfo.h
  5. Abstract:
  6. This file defines a structure that is used to pass docking
  7. station info from NTDETECT to NTLDR. See PNP BIOS Specification
  8. Function 5 - "Get Docking Station Info" for details.
  9. Author:
  10. Doug Fritz [DFritz] 01-Oct-1997
  11. Environment:
  12. Both 16-bit real mode and 32-bit protected mode.
  13. Revision History:
  14. --*/
  15. #ifndef _DOCKINFO_
  16. #define _DOCKINFO_
  17. //
  18. // FW_DOCKINFO_NOT_CALLED is used by NTLDR to detect the case where
  19. // NTDETECT never called BIOS to get docking station info.
  20. // (e.g., BIOS was not PnP). SUCCESS and NOT_DOCKED are from
  21. // the Plug and Play BIOS Specification appendix E.
  22. //
  23. #define FW_DOCKINFO_SUCCESS 0x0000
  24. #define FW_DOCKINFO_FUNCTION_NOT_SUPPORTED 0x0082
  25. #define FW_DOCKINFO_SYSTEM_NOT_DOCKED 0x0087
  26. #define FW_DOCKINFO_DOCK_STATE_UNKNOWN 0x0089
  27. #define FW_DOCKINFO_BIOS_NOT_CALLED 0xffff
  28. //
  29. // Define FAR macro appropriately based on whether we're compiling 16-bit
  30. // or 32-bit.
  31. //
  32. #ifdef X86_REAL_MODE
  33. #ifndef FAR
  34. #define FAR far
  35. #endif
  36. #else // not x86 real mode
  37. #ifndef FAR
  38. #define FAR
  39. #endif
  40. #endif // not x86 real mode
  41. typedef struct {
  42. ULONG DockID;
  43. ULONG SerialNumber;
  44. USHORT Capabilities;
  45. USHORT ReturnCode; // initialize with FW_DOCKINFO_NOT_CALLED
  46. } DOCKING_STATION_INFO, FAR * FPDOCKING_STATION_INFO, * PDOCKING_STATION_INFO;
  47. #endif // _DOCKINFO_