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.

177 lines
3.9 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. RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  32. }
  33. STDMETHODIMP
  34. CNWCOMPATPrintQueue::put_Datatype(THIS_ BSTR bstrDatatype)
  35. {
  36. 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. PUT_PROPERTY_DATE((IADsPrintQueue *)this, StartTime);
  77. }
  78. STDMETHODIMP
  79. CNWCOMPATPrintQueue::get_UntilTime(THIS_ DATE FAR* retval)
  80. {
  81. GET_PROPERTY_DATE((IADsPrintQueue *)this, UntilTime);
  82. }
  83. STDMETHODIMP
  84. CNWCOMPATPrintQueue::put_UntilTime(THIS_ DATE daUntilTime)
  85. {
  86. PUT_PROPERTY_DATE((IADsPrintQueue *)this, UntilTime);
  87. }
  88. STDMETHODIMP
  89. CNWCOMPATPrintQueue::get_DefaultJobPriority(THIS_ LONG FAR* retval)
  90. {
  91. GET_PROPERTY_LONG((IADsPrintQueue *)this, DefaultJobPriority);
  92. }
  93. STDMETHODIMP
  94. CNWCOMPATPrintQueue::put_DefaultJobPriority(THIS_ LONG lDefaultJobPriority)
  95. {
  96. PUT_PROPERTY_LONG((IADsPrintQueue *)this, DefaultJobPriority);
  97. }
  98. STDMETHODIMP
  99. CNWCOMPATPrintQueue::get_BannerPage(THIS_ BSTR FAR* retval)
  100. {
  101. GET_PROPERTY_BSTR((IADsPrintQueue *)this, BannerPage);
  102. }
  103. STDMETHODIMP
  104. CNWCOMPATPrintQueue::put_BannerPage(THIS_ BSTR bstrBannerPage)
  105. {
  106. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, BannerPage);
  107. }
  108. STDMETHODIMP
  109. CNWCOMPATPrintQueue::get_PrinterPath(THIS_ BSTR FAR* retval)
  110. {
  111. GET_PROPERTY_BSTR((IADsPrintQueue *)this, PrinterPath);
  112. }
  113. STDMETHODIMP
  114. CNWCOMPATPrintQueue::put_PrinterPath(THIS_ BSTR bstrPrinterPath)
  115. {
  116. PUT_PROPERTY_BSTR((IADsPrintQueue *)this, PrinterPath);
  117. }
  118. STDMETHODIMP
  119. CNWCOMPATPrintQueue::get_PrintProcessor(THIS_ BSTR FAR* retval)
  120. {
  121. GET_PROPERTY_BSTR((IADsPrintQueue *)this, PrintProcessor);
  122. }
  123. STDMETHODIMP
  124. CNWCOMPATPrintQueue::put_PrintProcessor(THIS_ BSTR bstrPrintProcessor)
  125. {
  126. RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  127. }
  128. STDMETHODIMP
  129. CNWCOMPATPrintQueue::get_PrintDevices(THIS_ VARIANT FAR* retval)
  130. {
  131. RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  132. }
  133. STDMETHODIMP
  134. CNWCOMPATPrintQueue::put_PrintDevices(THIS_ VARIANT vPorts)
  135. {
  136. PUT_PROPERTY_VARIANT((IADsPrintQueue *)this, Ports);
  137. }
  138. STDMETHODIMP
  139. CNWCOMPATPrintQueue::get_NetAddresses(THIS_ VARIANT FAR* retval)
  140. {
  141. GET_PROPERTY_VARIANT((IADsPrintQueue *)this, NetAddresses );
  142. }
  143. STDMETHODIMP
  144. CNWCOMPATPrintQueue::put_NetAddresses(THIS_ VARIANT vNetAddresses )
  145. {
  146. PUT_PROPERTY_VARIANT((IADsPrintQueue *)this, NetAddresses );
  147. }