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.

130 lines
2.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996
  5. //
  6. // File: cjobgi.cxx
  7. //
  8. // Contents:
  9. //
  10. // History: 1-May-96 t-ptam (Patrick Tam) Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #include "NWCOMPAT.hxx"
  14. #pragma hdrstop
  15. //
  16. // Macro-ized implementation.
  17. //
  18. //
  19. // Properties Get & Set.
  20. //
  21. STDMETHODIMP
  22. CNWCOMPATPrintJob::get_HostPrintQueue(THIS_ BSTR FAR* retval)
  23. {
  24. GET_PROPERTY_BSTR((IADsPrintJob *)this, HostPrintQueue);
  25. }
  26. STDMETHODIMP
  27. CNWCOMPATPrintJob::get_User(THIS_ BSTR FAR* retval)
  28. {
  29. GET_PROPERTY_BSTR((IADsPrintJob *)this, User);
  30. }
  31. STDMETHODIMP
  32. CNWCOMPATPrintJob::get_TimeSubmitted(THIS_ DATE FAR* retval)
  33. {
  34. GET_PROPERTY_DATE((IADsPrintJob *)this, TimeSubmitted);
  35. }
  36. STDMETHODIMP
  37. CNWCOMPATPrintJob::get_TotalPages(THIS_ LONG FAR* retval)
  38. {
  39. GET_PROPERTY_LONG((IADsPrintJob *)this, TotalPages);
  40. }
  41. STDMETHODIMP
  42. CNWCOMPATPrintJob::get_Size(THIS_ LONG FAR* retval)
  43. {
  44. GET_PROPERTY_LONG((IADsPrintJob *)this, Size);
  45. }
  46. STDMETHODIMP
  47. CNWCOMPATPrintJob::get_Description(THIS_ BSTR FAR* retval)
  48. {
  49. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  50. }
  51. STDMETHODIMP
  52. CNWCOMPATPrintJob::put_Description(THIS_ BSTR bstrDescription)
  53. {
  54. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  55. }
  56. STDMETHODIMP
  57. CNWCOMPATPrintJob::get_Priority(THIS_ LONG FAR* retval)
  58. {
  59. GET_PROPERTY_LONG((IADsPrintJob *)this, Priority);
  60. }
  61. STDMETHODIMP
  62. CNWCOMPATPrintJob::put_Priority(THIS_ LONG lPriority)
  63. {
  64. PUT_PROPERTY_LONG((IADsPrintJob *)this, Priority);
  65. }
  66. STDMETHODIMP
  67. CNWCOMPATPrintJob::get_StartTime(THIS_ DATE FAR* retval)
  68. {
  69. GET_PROPERTY_DATE((IADsPrintJob *)this, StartTime);
  70. }
  71. STDMETHODIMP
  72. CNWCOMPATPrintJob::put_StartTime(THIS_ DATE daStartTime)
  73. {
  74. PUT_PROPERTY_DATE((IADsPrintJob *)this, StartTime);
  75. }
  76. STDMETHODIMP
  77. CNWCOMPATPrintJob::get_UntilTime(THIS_ DATE FAR* retval)
  78. {
  79. GET_PROPERTY_DATE((IADsPrintJob *)this, UntilTime);
  80. }
  81. STDMETHODIMP
  82. CNWCOMPATPrintJob::put_UntilTime(THIS_ DATE daUntilTime)
  83. {
  84. PUT_PROPERTY_DATE((IADsPrintJob *)this, UntilTime);
  85. }
  86. STDMETHODIMP
  87. CNWCOMPATPrintJob::get_Notify(THIS_ BSTR FAR* retval)
  88. {
  89. GET_PROPERTY_BSTR((IADsPrintJob *)this, Notify);
  90. }
  91. STDMETHODIMP
  92. CNWCOMPATPrintJob::put_Notify(THIS_ BSTR bstrNotify)
  93. {
  94. PUT_PROPERTY_BSTR((IADsPrintJob *)this, Notify);
  95. }
  96. STDMETHODIMP
  97. CNWCOMPATPrintJob::get_NotifyPath(THIS_ BSTR FAR* retval)
  98. {
  99. GET_PROPERTY_BSTR((IADsPrintJob *)this, NotifyPath);
  100. }
  101. STDMETHODIMP
  102. CNWCOMPATPrintJob::put_NotifyPath(THIS_ BSTR bstrNotifyPath)
  103. {
  104. PUT_PROPERTY_BSTR((IADsPrintJob *)this, NotifyPath);
  105. }
  106. STDMETHODIMP
  107. CNWCOMPATPrintJob::get_UserPath(THIS_ BSTR FAR* retval)
  108. {
  109. GET_PROPERTY_BSTR((IADsPrintJob *)this, UserPath);
  110. }