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.

54 lines
1.5 KiB

  1. //
  2. // Copyright 2001 - Microsoft Corporation
  3. //
  4. // Created By:
  5. // Geoff Pease (GPease) 23-JAN-2001
  6. //
  7. // Maintained By:
  8. // Geoff Pease (GPease) 23-JAN-2001
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. #pragma once
  12. //
  13. // DLL Globals
  14. //
  15. extern HINSTANCE g_hInstance;
  16. extern LONG g_cObjects;
  17. extern LONG g_cLock;
  18. extern TCHAR g_szDllFilename[ MAX_PATH ];
  19. extern LPVOID g_GlobalMemoryList; // Global memory tracking list
  20. //
  21. // Class Table Macros
  22. //
  23. #define BEGIN_CLASSTABLE const CLASSTABLE g_DllClasses = {
  24. #define DEFINE_CLASS( _pfn, _riid, _name, _model ) { _pfn, &_riid, TEXT(_name), TEXT(_model), NULL, &IID_NULL, NULL },
  25. #define DEFINE_CLASS_CATIDREG( _pfn, _riid, _name, _model, _pfnCat ) { _pfn, &_riid, TEXT(_name), TEXT(_model), _pfnCat, &IID_NULL, NULL },
  26. #define DEFINE_CLASS_WITH_APPID( _pfn, _riid, _name, _model, _appid, _surrogate ) { _pfn, &_riid, TEXT(_name), TEXT(_model), NULL, &_appid, TEXT(_surrogate) },
  27. #define END_CLASSTABLE { NULL } };
  28. extern const CLASSTABLE g_DllClasses;
  29. //
  30. // Category ID (CATID) Macros
  31. //
  32. #define BEGIN_CATIDTABLE const CATIDTABLE g_DllCatIds = {
  33. #define DEFINE_CATID( _rcatid, _name ) { &_rcatid, TEXT(_name) },
  34. #define END_CATIDTABLE { NULL } };
  35. extern const CATIDTABLE g_DllCatIds;
  36. //
  37. // DLL Global Function Prototypes
  38. //
  39. HRESULT
  40. HrCoCreateInternalInstance(
  41. REFCLSID rclsidIn,
  42. LPUNKNOWN pUnkOuterIn,
  43. DWORD dwClsContextIn,
  44. REFIID riidIn,
  45. LPVOID * ppvOut
  46. );