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.

45 lines
1.2 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1998 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: createin.h
  6. * Content: defines functions required by the generic class factory
  7. *
  8. *
  9. * The generic class factory (classfac.c) requires these functions to be
  10. * implemented by the COM object(s) its supposed to be generating
  11. *
  12. * GP_ stands for "General Purpose"
  13. *
  14. * History:
  15. * Date By Reason
  16. * ==== == ======
  17. * 10/13/98 jwo Created it.
  18. ***************************************************************************/
  19. #ifndef __CREATEINS__
  20. #define __CREATEINS__
  21. #ifndef DPNBUILD_LIBINTERFACE
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif // __cplusplus
  25. // you must implement this function to create an instance of your COM object
  26. HRESULT DoCreateInstance(LPCLASSFACTORY This, LPUNKNOWN pUnkOuter, REFCLSID rclsid, REFIID riid,
  27. LPVOID *ppvObj);
  28. // you must implement this function. Given a class id, you must respond
  29. // whether or not your DLL implements it
  30. BOOL IsClassImplemented(REFCLSID rclsid);
  31. #ifdef __cplusplus
  32. }
  33. #endif // __cplusplus
  34. #endif // ! DPNBUILD_LIBINTERFACE
  35. #endif // __CREATEINS__