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.

85 lines
3.0 KiB

  1. /*++
  2. Copyright (C) 2000 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. lddevcap.cxx
  6. Abstract:
  7. The file contains an array of expected size calculations
  8. for various DeviceCaps returned by DeviceCapabilites
  9. Author:
  10. Khaled Sedky (khaleds) 27 January 2000
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. #pragma hdrstop
  15. #include <nt.h>
  16. #include <ntrtl.h>
  17. #include <nturtl.h>
  18. #include <stddef.h>
  19. #include <windows.h>
  20. #include "winddiui.h"
  21. #include <splwow64.h>
  22. #ifndef __LDFUNCS_HPP__
  23. #include "ldfuncs.hpp"
  24. #endif
  25. #ifndef __LDMGR_HPP__
  26. #include "ldmgr.hpp"
  27. #endif
  28. //
  29. // This array has a length of DC_NUP. If new capabilites
  30. // are introduced , the array has to be appended by these
  31. // values and functions picking up data from this array
  32. // have to be modified. Something important to note, that
  33. // although this array is 0 based , the capabilites are 1
  34. // based and so whenever indexing in this array subtract 1
  35. //
  36. DWORD DeviceCapsReqSize[MAX_CAPVAL] =
  37. {
  38. 0, //DC_FIELDS 1
  39. sizeof(WORD), //DC_PAPERS 2
  40. sizeof(POINT), //DC_PAPERSIZE 3
  41. 0, //DC_MINEXTENT 4
  42. 0, //DC_MAXEXTENT 5
  43. sizeof(WORD), //DC_BINS 6
  44. 0, //DC_DUPLEX 7
  45. 0, //DC_SIZE 8
  46. 0, //DC_EXTRA 9
  47. 0, //DC_VERSION 10
  48. 0, //DC_DRIVER 11
  49. 24*sizeof(WCHAR), //DC_BINNAMES 12
  50. 2*sizeof(LONG), //DC_ENUMRESOLUTIONS 13
  51. 64*sizeof(WCHAR), //DC_FILEDEPENDENCIES 14
  52. 0, //DC_TRUETYPE 15
  53. 64*sizeof(WCHAR), //DC_PAPERNAMES 16
  54. 0, //DC_ORIENTATION 17
  55. 0, //DC_COPIES 18
  56. 0, //DC_BINADJUST 19
  57. 0, //DC_EMF_COMPLIANT 20
  58. 0, //DC_DATATYPE_PRODUCED 21
  59. 0, //DC_COLLATE 22
  60. 0, //DC_MANUFACTURER 23
  61. 0, //DC_MODEL 24
  62. 32*sizeof(WCHAR), //DC_PERSONALITY 25
  63. 0, //DC_PRINTRATE 26
  64. 0, //DC_PRINTRATEUNIT 27
  65. 0, //DC_PRINTERMEM 28
  66. 64*sizeof(WCHAR), //DC_MEDIAREADY 29
  67. 0, //DC_STAPLE 30
  68. 0, //DC_PRINTRATEPPM 31
  69. 0, //DC_COLORDEVICE 32
  70. sizeof(DWORD), //DC_NUP 33
  71. 64*sizeof(WCHAR), //DC_MEDIATYPENAMES 34
  72. sizeof(DWORD), //DC_MEDIATYPES 35
  73. };