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.

191 lines
5.0 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: ccgi.cxx
  7. //
  8. // Contents: This file contains the Computer Object's
  9. // GeneralInformation Functional Set.
  10. //
  11. // History: 18-Jan-96 t-tpam (Patrick Tam) Created.
  12. //
  13. //----------------------------------------------------------------------------
  14. #include "NWCOMPAT.hxx"
  15. #pragma hdrstop
  16. //
  17. // Properties Get & Set
  18. //
  19. STDMETHODIMP CNWCOMPATComputer::get_ComputerID(THIS_ BSTR FAR* retval)
  20. {
  21. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  22. }
  23. STDMETHODIMP CNWCOMPATComputer::get_Site(THIS_ BSTR FAR* retval)
  24. {
  25. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  26. }
  27. STDMETHODIMP CNWCOMPATComputer::get_Description(THIS_ BSTR FAR* retval)
  28. {
  29. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  30. }
  31. STDMETHODIMP CNWCOMPATComputer::put_Description(THIS_ BSTR bstrDescription)
  32. {
  33. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  34. }
  35. STDMETHODIMP CNWCOMPATComputer::get_Location(THIS_ BSTR FAR* retval)
  36. {
  37. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  38. }
  39. STDMETHODIMP CNWCOMPATComputer::put_Location(THIS_ BSTR bstrLocation)
  40. {
  41. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  42. }
  43. STDMETHODIMP CNWCOMPATComputer::get_PrimaryUser(THIS_ BSTR FAR* retval)
  44. {
  45. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  46. }
  47. STDMETHODIMP CNWCOMPATComputer::put_PrimaryUser(THIS_ BSTR bstrPrimaryUser)
  48. {
  49. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  50. }
  51. STDMETHODIMP CNWCOMPATComputer::get_Owner(THIS_ BSTR FAR* retval)
  52. {
  53. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  54. }
  55. STDMETHODIMP CNWCOMPATComputer::put_Owner(THIS_ BSTR bstrOwner)
  56. {
  57. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  58. }
  59. STDMETHODIMP CNWCOMPATComputer::get_Division(THIS_ BSTR FAR* retval)
  60. {
  61. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  62. }
  63. STDMETHODIMP CNWCOMPATComputer::put_Division(THIS_ BSTR bstrDivision)
  64. {
  65. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  66. }
  67. STDMETHODIMP CNWCOMPATComputer::get_Department(THIS_ BSTR FAR* retval)
  68. {
  69. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  70. }
  71. STDMETHODIMP CNWCOMPATComputer::put_Department(THIS_ BSTR bstrDepartment)
  72. {
  73. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  74. }
  75. STDMETHODIMP CNWCOMPATComputer::get_Role(THIS_ BSTR FAR* retval)
  76. {
  77. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  78. }
  79. STDMETHODIMP CNWCOMPATComputer::put_Role(THIS_ BSTR bstrRole)
  80. {
  81. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  82. }
  83. STDMETHODIMP CNWCOMPATComputer::get_OperatingSystem(THIS_ BSTR FAR* retval)
  84. {
  85. GET_PROPERTY_BSTR((IADsComputer *)this, OperatingSystem);
  86. }
  87. STDMETHODIMP CNWCOMPATComputer::put_OperatingSystem(THIS_ BSTR bstrOperatingSystem)
  88. {
  89. //
  90. // BUGBUG - this should be changed to E_ADS_PROPERTY_NOT_SUPPORTED once it
  91. // is verified to be a read-only property.
  92. //
  93. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  94. }
  95. STDMETHODIMP CNWCOMPATComputer::get_OperatingSystemVersion(THIS_ BSTR FAR* retval)
  96. {
  97. GET_PROPERTY_BSTR((IADsComputer *)this, OperatingSystemVersion);
  98. }
  99. STDMETHODIMP CNWCOMPATComputer::put_OperatingSystemVersion(THIS_ BSTR bstrOperatingSystemVersion)
  100. {
  101. //
  102. // BUGBUG - this should be changed to E_ADS_PROPERTY_NOT_SUPPORTED once it
  103. // is verified to be a read-only property.
  104. //
  105. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  106. }
  107. STDMETHODIMP CNWCOMPATComputer::get_Model(THIS_ BSTR FAR* retval)
  108. {
  109. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  110. }
  111. STDMETHODIMP CNWCOMPATComputer::put_Model(THIS_ BSTR bstrModel)
  112. {
  113. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  114. }
  115. STDMETHODIMP CNWCOMPATComputer::get_Processor(THIS_ BSTR FAR* retval)
  116. {
  117. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  118. }
  119. STDMETHODIMP CNWCOMPATComputer::put_Processor(THIS_ BSTR bstrProcessor)
  120. {
  121. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  122. }
  123. STDMETHODIMP CNWCOMPATComputer::get_ProcessorCount(THIS_ BSTR FAR* retval)
  124. {
  125. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  126. }
  127. STDMETHODIMP CNWCOMPATComputer::put_ProcessorCount(THIS_ BSTR bstrProcessorCount)
  128. {
  129. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  130. }
  131. STDMETHODIMP CNWCOMPATComputer::get_MemorySize(THIS_ BSTR FAR* retval)
  132. {
  133. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  134. }
  135. STDMETHODIMP CNWCOMPATComputer::put_MemorySize(THIS_ BSTR bstrMemorySize)
  136. {
  137. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  138. }
  139. STDMETHODIMP CNWCOMPATComputer::get_StorageCapacity(THIS_ BSTR FAR* retval)
  140. {
  141. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  142. }
  143. STDMETHODIMP CNWCOMPATComputer::put_StorageCapacity(THIS_ BSTR bstrStorageCapacity)
  144. {
  145. NW_RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
  146. }
  147. STDMETHODIMP CNWCOMPATComputer::get_NetAddresses(THIS_ VARIANT FAR* retval)
  148. {
  149. GET_PROPERTY_VARIANT((IADsComputer *)this, Addresses);
  150. }
  151. STDMETHODIMP CNWCOMPATComputer::put_NetAddresses(THIS_ VARIANT vNetAddresses)
  152. {
  153. NW_RRETURN_EXP_IF_ERR(E_NOTIMPL);
  154. }