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.

232 lines
3.8 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cdomcf.cxx
  7. //
  8. // Contents: Windows NT 3.5 NDS Security Class Factory Code
  9. //
  10. //
  11. // History: 01-30-95 krishnag Created.
  12. //
  13. //----------------------------------------------------------------------------
  14. #include "nds.hxx"
  15. #pragma hdrstop
  16. STDMETHODIMP
  17. CCaseIgnoreListCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  18. {
  19. HRESULT hr = E_FAIL;
  20. if (pUnkOuter)
  21. RRETURN(E_FAIL);
  22. hr = CCaseIgnoreList::CreateCaseIgnoreList(
  23. iid,
  24. ppv
  25. );
  26. RRETURN(hr);
  27. }
  28. STDMETHODIMP
  29. CFaxNumberCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  30. {
  31. HRESULT hr = E_FAIL;
  32. if (pUnkOuter)
  33. RRETURN(E_FAIL);
  34. hr = CFaxNumber::CreateFaxNumber(
  35. iid,
  36. ppv
  37. );
  38. RRETURN(hr);
  39. }
  40. STDMETHODIMP
  41. CNetAddressCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  42. {
  43. HRESULT hr = E_FAIL;
  44. if (pUnkOuter)
  45. RRETURN(E_FAIL);
  46. hr = CNetAddress::CreateNetAddress(
  47. iid,
  48. ppv
  49. );
  50. RRETURN(hr);
  51. }
  52. STDMETHODIMP
  53. COctetListCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  54. {
  55. HRESULT hr = E_FAIL;
  56. if (pUnkOuter)
  57. RRETURN(E_FAIL);
  58. hr = COctetList::CreateOctetList(
  59. iid,
  60. ppv
  61. );
  62. RRETURN(hr);
  63. }
  64. STDMETHODIMP
  65. CEmailCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  66. {
  67. HRESULT hr = E_FAIL;
  68. if (pUnkOuter)
  69. RRETURN(E_FAIL);
  70. hr = CEmail::CreateEmail(
  71. iid,
  72. ppv
  73. );
  74. RRETURN(hr);
  75. }
  76. STDMETHODIMP
  77. CPathCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  78. {
  79. HRESULT hr = E_FAIL;
  80. if (pUnkOuter)
  81. RRETURN(E_FAIL);
  82. hr = CPath::CreatePath(
  83. iid,
  84. ppv
  85. );
  86. RRETURN(hr);
  87. }
  88. STDMETHODIMP
  89. CReplicaPointerCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  90. {
  91. HRESULT hr = E_FAIL;
  92. if (pUnkOuter)
  93. RRETURN(E_FAIL);
  94. hr = CReplicaPointer::CreateReplicaPointer(
  95. iid,
  96. ppv
  97. );
  98. RRETURN(hr);
  99. }
  100. STDMETHODIMP
  101. CTimestampCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  102. {
  103. HRESULT hr = E_FAIL;
  104. if (pUnkOuter)
  105. RRETURN(E_FAIL);
  106. hr = CTimestamp::CreateTimestamp(
  107. iid,
  108. ppv
  109. );
  110. RRETURN(hr);
  111. }
  112. STDMETHODIMP
  113. CPostalAddressCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  114. {
  115. HRESULT hr = E_FAIL;
  116. if (pUnkOuter)
  117. RRETURN(E_FAIL);
  118. hr = CPostalAddress::CreatePostalAddress(
  119. iid,
  120. ppv
  121. );
  122. RRETURN(hr);
  123. }
  124. STDMETHODIMP
  125. CBackLinkCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  126. {
  127. HRESULT hr = E_FAIL;
  128. if (pUnkOuter)
  129. RRETURN(E_FAIL);
  130. hr = CBackLink::CreateBackLink(
  131. iid,
  132. ppv
  133. );
  134. RRETURN(hr);
  135. }
  136. STDMETHODIMP
  137. CTypedNameCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  138. {
  139. HRESULT hr = E_FAIL;
  140. if (pUnkOuter)
  141. RRETURN(E_FAIL);
  142. hr = CTypedName::CreateTypedName(
  143. iid,
  144. ppv
  145. );
  146. RRETURN(hr);
  147. }
  148. STDMETHODIMP
  149. CHoldCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  150. {
  151. HRESULT hr = E_FAIL;
  152. if (pUnkOuter)
  153. RRETURN(E_FAIL);
  154. hr = CHold::CreateHold(
  155. iid,
  156. ppv
  157. );
  158. RRETURN(hr);
  159. }