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.

47 lines
1.9 KiB

  1. ;/*
  2. ;----------------------------------------------------------------------------
  3. ; VALMODE.INC
  4. ; Copyright (c) 1993-94 Microsoft Corporation
  5. ;
  6. ; Definitions for ValidateMode.
  7. ;
  8. ; UINT WINAPI ValidateMode(DISPVALMODE FAR *);
  9. ; NOTE: Display drivers must use the name "ValidateMode" in the .def file
  10. ; since windows dyna-links to this function by name, not by ordinal. Ordinal
  11. ; 700 is the recommended value for this function.
  12. ;----------------------------------------------------------------------------
  13. ;----------------------------------------------------------------------------
  14. ; E Q U A T E S
  15. ;
  16. ; the possible return values from DisplayValidateMode
  17. ;----------------------------------------------------------------------------
  18. VALMODE_YES equ 0 ;definitely valid
  19. VALMODE_NO_WRONGDRV equ 1 ;driver doesn't work on adapter
  20. VALMODE_NO_NOMEM equ 2 ;not enough memory for settings
  21. VALMODE_NO_NODAC equ 3 ;DAC can't handle colors
  22. VALMODE_NO_UNKNOWN equ 4 ;unknown problem
  23. comment ~
  24. */
  25. #define VALMODE_YES 0
  26. #define VALMODE_NO_WRONGDRV 1
  27. #define VALMODE_NO_NOMEM 2
  28. #define VALMODE_NO_NODAC 3
  29. #define VALMODE_NO_UNKNOWN 4
  30. /*
  31. end comment ~
  32. ;----------------------------------------------------------------------------
  33. ; S T R U C T U R E S
  34. ;----------------------------------------------------------------------------
  35. ;----------------------------------------------------------------------------
  36. ; DISPVALMODE - basic structure for mode information
  37. ;----------------------------------------------------------------------------
  38. DISPVALMODE struc ;*/ typedef struct { /*
  39. dvmSize dw ? ; size of this structure ;*/ UINT dvmSize; /*
  40. dvmBpp dw ? ; color resolution ;*/ UINT dvmBpp; /*
  41. dvmXRes dw ? ; X resolution ;*/ int dvmXRes; /*
  42. dvmYRes dw ? ; Y resolution ;*/ int dvmYRes; /*
  43. DISPVALMODE ends ;*/ } DISPVALMODE; /*
  44. ;*/