Leaked source code of windows server 2003
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.

49 lines
1.4 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. * 7/19/99 rodtoll Modified for use in directxvoice
  19. * 08/23/2000 rodtoll DllCanUnloadNow always returning TRUE!
  20. ***************************************************************************/
  21. #ifndef __CREATEINS__
  22. #define __CREATEINS__
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. // you must implement this function to create an instance of your COM object
  27. HRESULT DoCreateInstance(LPCLASSFACTORY This, LPUNKNOWN pUnkOuter, REFCLSID rclsid, REFIID riid,
  28. LPVOID *ppvObj);
  29. // you must implement this function. Given a class id, you must respond
  30. // whether or not your DLL implements it
  31. BOOL IsClassImplemented(REFCLSID rclsid);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #ifdef __cplusplus
  36. extern "C" LONG g_lNumObjects;
  37. extern "C" LONG g_lNumLocks;
  38. #else
  39. extern LONG g_lNumObjects;
  40. extern LONG g_lNumLocks;
  41. #endif
  42. #endif