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.

39 lines
1.1 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. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. // you must implement this function to create an instance of your COM object
  25. HRESULT DoCreateInstance(LPCLASSFACTORY This, LPUNKNOWN pUnkOuter, REFCLSID rclsid, REFIID riid,
  26. LPVOID *ppvObj);
  27. // you must implement this function. Given a class id, you must respond
  28. // whether or not your DLL implements it
  29. BOOL IsClassImplemented(REFCLSID rclsid);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif