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.

43 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2000.
  5. //
  6. // File: cquerycf.hxx
  7. //
  8. // Contents: Class factory for the LDAP Query Object.
  9. //
  10. // CLDAPQueryCF::CreateInstance.
  11. //
  12. // History: 03-29-00 AjayR Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "ldap.hxx"
  16. #pragma hdrstop
  17. //+---------------------------------------------------------------------------
  18. // Function: CUmiLDAPQueryCF::CreateInstance
  19. //
  20. // Synopsis: Standard CreateInstance implementation.
  21. //
  22. // Arguments: pUnkOuter ---- standard outer IUnknown ptr.
  23. // iid ---- interface requested.
  24. // ppv ---- output ptr for created object.
  25. //
  26. // Returns: HRESULT - S_OK or any failure error code.
  27. //
  28. //----------------------------------------------------------------------------
  29. STDMETHODIMP
  30. CUmiLDAPQueryCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  31. {
  32. HRESULT hr;
  33. if (pUnkOuter)
  34. RRETURN(E_FAIL);
  35. hr = CUmiLDAPQuery::CreateUmiLDAPQuery(iid, ppv);
  36. RRETURN(hr);
  37. }