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.

182 lines
4.6 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. // GeneralInfo Functional Set.
  10. //
  11. // History: 11-1-95 krishnag Created.
  12. //
  13. //----------------------------------------------------------------------------
  14. #include "winnt.hxx"
  15. #pragma hdrstop
  16. // Class CWinNTComputer
  17. STDMETHODIMP CWinNTComputer::get_ComputerID(THIS_ BSTR FAR* retval)
  18. {
  19. GET_PROPERTY_BSTR((IADsComputer *)this, ComputerID);
  20. }
  21. STDMETHODIMP CWinNTComputer::get_Site(THIS_ BSTR FAR* retval)
  22. {
  23. GET_PROPERTY_BSTR((IADsComputer *)this, Site);
  24. }
  25. STDMETHODIMP CWinNTComputer::get_Description(THIS_ BSTR FAR* retval)
  26. {
  27. GET_PROPERTY_BSTR((IADsComputer *)this, Description);
  28. }
  29. STDMETHODIMP CWinNTComputer::put_Description(THIS_ BSTR bstrDescription)
  30. {
  31. PUT_PROPERTY_BSTR((IADsComputer *)this, Description);
  32. }
  33. STDMETHODIMP CWinNTComputer::get_Location(THIS_ BSTR FAR* retval)
  34. {
  35. GET_PROPERTY_BSTR((IADsComputer *)this, Location);
  36. }
  37. STDMETHODIMP CWinNTComputer::put_Location(THIS_ BSTR bstrLocation)
  38. {
  39. PUT_PROPERTY_BSTR((IADsComputer *)this, Location);
  40. }
  41. STDMETHODIMP CWinNTComputer::get_PrimaryUser(THIS_ BSTR FAR* retval)
  42. {
  43. GET_PROPERTY_BSTR((IADsComputer *)this, PrimaryUser);
  44. }
  45. STDMETHODIMP CWinNTComputer::put_PrimaryUser(THIS_ BSTR bstrPrimaryUser)
  46. {
  47. PUT_PROPERTY_BSTR((IADsComputer *)this, PrimaryUser);
  48. }
  49. STDMETHODIMP CWinNTComputer::get_Owner(THIS_ BSTR FAR* retval)
  50. {
  51. GET_PROPERTY_BSTR((IADsComputer *)this, Owner);
  52. }
  53. STDMETHODIMP CWinNTComputer::put_Owner(THIS_ BSTR bstrOwner)
  54. {
  55. PUT_PROPERTY_BSTR((IADsComputer *)this, Owner);
  56. }
  57. STDMETHODIMP CWinNTComputer::get_Division(THIS_ BSTR FAR* retval)
  58. {
  59. GET_PROPERTY_BSTR((IADsComputer *)this, Division);
  60. }
  61. STDMETHODIMP CWinNTComputer::put_Division(THIS_ BSTR bstrDivision)
  62. {
  63. PUT_PROPERTY_BSTR((IADsComputer *)this, Division);
  64. }
  65. STDMETHODIMP CWinNTComputer::get_Department(THIS_ BSTR FAR* retval)
  66. {
  67. GET_PROPERTY_BSTR((IADsComputer *)this, Department);
  68. }
  69. STDMETHODIMP CWinNTComputer::put_Department(THIS_ BSTR bstrDepartment)
  70. {
  71. PUT_PROPERTY_BSTR((IADsComputer *)this, Department);
  72. }
  73. STDMETHODIMP CWinNTComputer::get_Role(THIS_ BSTR FAR* retval)
  74. {
  75. GET_PROPERTY_BSTR((IADsComputer *)this, Role);
  76. }
  77. STDMETHODIMP CWinNTComputer::put_Role(THIS_ BSTR bstrRole)
  78. {
  79. PUT_PROPERTY_BSTR((IADsComputer *)this, Role);
  80. }
  81. STDMETHODIMP CWinNTComputer::get_OperatingSystem(THIS_ BSTR FAR* retval)
  82. {
  83. GET_PROPERTY_BSTR((IADsComputer *)this, OperatingSystem);
  84. }
  85. STDMETHODIMP CWinNTComputer::put_OperatingSystem(THIS_ BSTR bstrOperatingSystem)
  86. {
  87. PUT_PROPERTY_BSTR((IADsComputer *)this, OperatingSystem);
  88. }
  89. STDMETHODIMP CWinNTComputer::get_OperatingSystemVersion(THIS_ BSTR FAR* retval)
  90. {
  91. GET_PROPERTY_BSTR((IADsComputer *)this, OperatingSystemVersion);
  92. }
  93. STDMETHODIMP CWinNTComputer::put_OperatingSystemVersion(THIS_ BSTR bstrOperatingSystemVersion)
  94. {
  95. PUT_PROPERTY_BSTR((IADsComputer *)this, OperatingSystemVersion);
  96. }
  97. STDMETHODIMP CWinNTComputer::get_Model(THIS_ BSTR FAR* retval)
  98. {
  99. GET_PROPERTY_BSTR((IADsComputer *)this, Model);
  100. }
  101. STDMETHODIMP CWinNTComputer::put_Model(THIS_ BSTR bstrModel)
  102. {
  103. PUT_PROPERTY_BSTR((IADsComputer *)this, Model);
  104. }
  105. STDMETHODIMP CWinNTComputer::get_Processor(THIS_ BSTR FAR* retval)
  106. {
  107. GET_PROPERTY_BSTR((IADsComputer *)this, Processor);
  108. }
  109. STDMETHODIMP CWinNTComputer::put_Processor(THIS_ BSTR bstrProcessor)
  110. {
  111. PUT_PROPERTY_BSTR((IADsComputer *)this, Processor);
  112. }
  113. STDMETHODIMP CWinNTComputer::get_ProcessorCount(THIS_ BSTR FAR* retval)
  114. {
  115. GET_PROPERTY_BSTR((IADsComputer *)this, ProcessorCount);
  116. }
  117. STDMETHODIMP CWinNTComputer::put_ProcessorCount(THIS_ BSTR bstrProcessorCount)
  118. {
  119. PUT_PROPERTY_BSTR((IADsComputer *)this, ProcessorCount);
  120. }
  121. STDMETHODIMP CWinNTComputer::get_MemorySize(THIS_ BSTR FAR* retval)
  122. {
  123. GET_PROPERTY_BSTR((IADsComputer *)this, MemorySize);
  124. }
  125. STDMETHODIMP CWinNTComputer::put_MemorySize(THIS_ BSTR bstrMemorySize)
  126. {
  127. PUT_PROPERTY_BSTR((IADsComputer *)this, MemorySize);
  128. }
  129. STDMETHODIMP CWinNTComputer::get_StorageCapacity(THIS_ BSTR FAR* retval)
  130. {
  131. GET_PROPERTY_BSTR((IADsComputer *)this, StorageCapacity);
  132. }
  133. STDMETHODIMP CWinNTComputer::put_StorageCapacity(THIS_ BSTR bstrStorageCapacity)
  134. {
  135. PUT_PROPERTY_BSTR((IADsComputer *)this, StorageCapacity);
  136. }
  137. STDMETHODIMP CWinNTComputer::get_NetAddresses(THIS_ VARIANT FAR* retval)
  138. {
  139. GET_PROPERTY_VARIANT((IADsComputer *)this, NetAddresses);
  140. }
  141. STDMETHODIMP CWinNTComputer::put_NetAddresses(THIS_ VARIANT vNetAddresses)
  142. {
  143. PUT_PROPERTY_VARIANT((IADsComputer *)this, NetAddresses);
  144. }