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.

79 lines
3.6 KiB

  1. /****************************************************************************/
  2. /* nmpdata.c */
  3. /* */
  4. /* RDP Miniport Data */
  5. /* */
  6. /* Copyright(c) Microsoft 1998 */
  7. /****************************************************************************/
  8. #define TRC_FILE "nmpdata"
  9. #define _NTDRIVER_
  10. #ifndef FAR
  11. #define FAR
  12. #endif
  13. #include "ntosp.h"
  14. #include "stdarg.h"
  15. #include "stdio.h"
  16. #undef PAGED_CODE
  17. #include "ntddvdeo.h"
  18. #include "video.h"
  19. #include "nmpapi.h"
  20. #if defined(ALLOC_PRAGMA)
  21. #pragma data_seg("PAGE")
  22. #endif
  23. ULONG mpLoaded = 0;
  24. /****************************************************************************/
  25. /* Data returned on IOCTL_VIDEO_QUERY_CURRENT_MODE */
  26. /****************************************************************************/
  27. VIDEO_MODE_INFORMATION mpModes[] =
  28. {
  29. sizeof(VIDEO_MODE_INFORMATION), /* length */
  30. 0, /* Mode index */
  31. /************************************************************************/
  32. /* VisScreenWidth and VisScreenHeight can be in two forms: */
  33. /* - 0xaaaabbbb - range of values supported (aaaa = max, bbbb = min) */
  34. /* - 0x0000aaaa - single value supported */
  35. /* For example: */
  36. /* - 0x07d0012c = 2000-300 */
  37. /* - 0x0640012c = 1600-300 */
  38. /* - 0x04b000c8 = 1200-200 */
  39. /************************************************************************/
  40. 0x00000500, /* VisScreenWidth */
  41. 0x00000400, /* VisScrenHeight */
  42. 0x00000320, /* ScreenStride (0xffff0000 = any) */
  43. 0x00000001, /* NumberOfPlanes */
  44. 0x00000008, /* BitsPerPlane */
  45. 0, /* Frequency */
  46. 0, /* XMillimeter */
  47. 0, /* YMillimeter */
  48. 0, /* NumberRedBits */
  49. 0, /* NumberGreenBits */
  50. 0, /* NumberBlueBits */
  51. 0x00000000, /* RedMask */
  52. 0x00000000, /* GreenMask */
  53. 0x00000000, /* BlueMask */
  54. VIDEO_MODE_COLOR | VIDEO_MODE_GRAPHICS,
  55. /* AttributeFlags */
  56. 0x00000500, /* VideoMemoryBitmapWidth */
  57. 0x00000400, /* VideoMemoryBitmapHeight */
  58. 0 /* DriverSpecificAttributeFlags */
  59. };
  60. ULONG mpNumModes = sizeof(mpModes) / sizeof(VIDEO_MODE_INFORMATION);
  61. #if defined(ALLOC_PRAGMA)
  62. #pragma data_seg()
  63. #endif