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.

187 lines
4.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996
  5. //
  6. // File: cpgi.cxx
  7. //
  8. // Contents:
  9. //
  10. // History: 30-Apr-96 t-ptam (Patrick Tam) Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #include "NWCOMPAT.hxx"
  14. #pragma hdrstop
  15. //
  16. // Properties Get & Set.
  17. //
  18. STDMETHODIMP
  19. CNWCOMPATPrintQueue::get_Model(THIS_ BSTR FAR* retval)
  20. {
  21. GET_PROPERTY_BSTR((IADsPrintQueue *)this, Model);
  22. }
  23. STDMETHODIMP
  24. CNWCOMPATPrintQueue::put_Model(THIS_ BSTR bstrModel)
  25. {
  26. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, Model);
  27. }
  28. STDMETHODIMP
  29. CNWCOMPATPrintQueue::get_Datatype(THIS_ BSTR *retval)
  30. {
  31. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  32. }
  33. STDMETHODIMP
  34. CNWCOMPATPrintQueue::put_Datatype(THIS_ BSTR bstrDatatype)
  35. {
  36. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  37. }
  38. STDMETHODIMP
  39. CNWCOMPATPrintQueue::get_Description(THIS_ BSTR FAR* retval)
  40. {
  41. GET_PROPERTY_BSTR((IADsPrintQueue *)this, Description);
  42. }
  43. STDMETHODIMP
  44. CNWCOMPATPrintQueue::put_Description(THIS_ BSTR bstrDescription)
  45. {
  46. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, Description);
  47. }
  48. STDMETHODIMP
  49. CNWCOMPATPrintQueue::get_Location(THIS_ BSTR FAR* retval)
  50. {
  51. GET_PROPERTY_BSTR((IADsPrintQueue *)this, Location);
  52. }
  53. STDMETHODIMP
  54. CNWCOMPATPrintQueue::put_Location(THIS_ BSTR bstrLocation)
  55. {
  56. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, Location);
  57. }
  58. STDMETHODIMP
  59. CNWCOMPATPrintQueue::get_Priority(THIS_ LONG FAR* retval)
  60. {
  61. GET_PROPERTY_LONG((IADsPrintQueue *)this, Priority);
  62. }
  63. STDMETHODIMP
  64. CNWCOMPATPrintQueue::put_Priority(THIS_ LONG lPriority)
  65. {
  66. PUT_PROPERTY_LONG((IADsPrintQueue *)this, Priority);
  67. }
  68. STDMETHODIMP
  69. CNWCOMPATPrintQueue::get_StartTime(THIS_ DATE FAR* retval)
  70. {
  71. GET_PROPERTY_DATE((IADsPrintQueue *)this, StartTime);
  72. }
  73. STDMETHODIMP
  74. CNWCOMPATPrintQueue::put_StartTime(THIS_ DATE daStartTime)
  75. {
  76. //
  77. // BUGBUG: long assigned a date(double) value. NT INFO structures
  78. // handle long only. ADS specs say double.
  79. //
  80. PUT_PROPERTY_DATE((IADsPrintQueue *)this, StartTime);
  81. }
  82. STDMETHODIMP
  83. CNWCOMPATPrintQueue::get_UntilTime(THIS_ DATE FAR* retval)
  84. {
  85. GET_PROPERTY_DATE((IADsPrintQueue *)this, UntilTime);
  86. }
  87. STDMETHODIMP
  88. CNWCOMPATPrintQueue::put_UntilTime(THIS_ DATE daUntilTime)
  89. {
  90. //
  91. // BUGBUG: long assigned a date(double) value. NT INFO structures
  92. // handle long only. ADS specs say double.
  93. //
  94. PUT_PROPERTY_DATE((IADsPrintQueue *)this, UntilTime);
  95. }
  96. STDMETHODIMP
  97. CNWCOMPATPrintQueue::get_DefaultJobPriority(THIS_ LONG FAR* retval)
  98. {
  99. GET_PROPERTY_LONG((IADsPrintQueue *)this, DefaultJobPriority);
  100. }
  101. STDMETHODIMP
  102. CNWCOMPATPrintQueue::put_DefaultJobPriority(THIS_ LONG lDefaultJobPriority)
  103. {
  104. PUT_PROPERTY_LONG((IADsPrintQueue *)this, DefaultJobPriority);
  105. }
  106. STDMETHODIMP
  107. CNWCOMPATPrintQueue::get_BannerPage(THIS_ BSTR FAR* retval)
  108. {
  109. GET_PROPERTY_BSTR((IADsPrintQueue *)this, BannerPage);
  110. }
  111. STDMETHODIMP
  112. CNWCOMPATPrintQueue::put_BannerPage(THIS_ BSTR bstrBannerPage)
  113. {
  114. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, BannerPage);
  115. }
  116. STDMETHODIMP
  117. CNWCOMPATPrintQueue::get_PrinterPath(THIS_ BSTR FAR* retval)
  118. {
  119. GET_PROPERTY_BSTR((IADsPrintQueue *)this, PrinterPath);
  120. }
  121. STDMETHODIMP
  122. CNWCOMPATPrintQueue::put_PrinterPath(THIS_ BSTR bstrPrinterPath)
  123. {
  124. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, PrinterPath);
  125. }
  126. STDMETHODIMP
  127. CNWCOMPATPrintQueue::get_PrintProcessor(THIS_ BSTR FAR* retval)
  128. {
  129. GET_PROPERTY_BSTR((IADsPrintQueue *)this, PrintProcessor);
  130. }
  131. STDMETHODIMP
  132. CNWCOMPATPrintQueue::put_PrintProcessor(THIS_ BSTR bstrPrintProcessor)
  133. {
  134. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  135. }
  136. STDMETHODIMP
  137. CNWCOMPATPrintQueue::get_PrintDevices(THIS_ VARIANT FAR* retval)
  138. {
  139. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  140. }
  141. STDMETHODIMP
  142. CNWCOMPATPrintQueue::put_PrintDevices(THIS_ VARIANT vPorts)
  143. {
  144. PUT_PROPERTY_VARIANT((IADsPrintQueue *)this, Ports);
  145. }
  146. STDMETHODIMP
  147. CNWCOMPATPrintQueue::get_NetAddresses(THIS_ VARIANT FAR* retval)
  148. {
  149. GET_PROPERTY_VARIANT((IADsPrintQueue *)this, NetAddresses );
  150. }
  151. STDMETHODIMP
  152. CNWCOMPATPrintQueue::put_NetAddresses(THIS_ VARIANT vNetAddresses )
  153. {
  154. PUT_PROPERTY_VARIANT((IADsPrintQueue *)this, NetAddresses );
  155. }