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.

44 lines
1.1 KiB

  1. //*************************************************************
  2. // File name: dllload.h
  3. //
  4. // Description: DLL loading function proto-types
  5. //
  6. //
  7. // Microsoft Confidential
  8. // Copyright (c) Microsoft Corporation 1999 - 2000
  9. // All rights reserved
  10. //
  11. //*************************************************************
  12. #if !defined (_DLLLOAD_H_)
  13. #define _DLLLOAD_H_
  14. void InitializeAPIs( void );
  15. void InitializeApiDLLsCritSec( void );
  16. void CloseApiDLLsCritSec( void );
  17. //
  18. // Ole32 functions
  19. //
  20. typedef HRESULT (*PFNCOCREATEINSTANCE)(REFCLSID rclsid, LPUNKNOWN pUnkOuter,
  21. DWORD dwClsContext, REFIID riid, LPVOID FAR* ppv);
  22. typedef HRESULT (*PFNCOINITIALIZE)(LPVOID pvReserved);
  23. typedef HRESULT (*PFNCOINITIALIZEEX)(LPVOID pvReserved, DWORD dwCoInit);
  24. typedef VOID (*PFNCOUNINITIALIZE)(VOID);
  25. typedef struct _OLE32_API {
  26. HINSTANCE hInstance;
  27. PFNCOCREATEINSTANCE pfnCoCreateInstance;
  28. PFNCOINITIALIZEEX pfnCoInitializeEx;
  29. PFNCOUNINITIALIZE pfnCoUnInitialize;
  30. } OLE32_API, *POLE32_API;
  31. POLE32_API LoadOle32Api();
  32. #endif // _DLLLOAD_H_