Team Fortress 2 Source Code as on 22/4/2020
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.

46 lines
1.4 KiB

  1. /*
  2. File: QTLoadLibraryUtils.h
  3. Copyright: 2002-2006 by Apple Computer, Inc., all rights reserved.
  4. Set of utility functions for loading of QuickTime libraries, and finding of
  5. the QuickTime directories.
  6. */
  7. #ifndef __QTLOADLIBRARYUTILS__
  8. #define __QTLOADLIBRARYUTILS__
  9. #include <windows.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. // QuickTime version of LoadLibrary() which searches QT directories for DLLs.
  14. extern HINSTANCE QTLoadLibrary(const char *szDLL);
  15. // Simple routines to mimic GetSystemDirectory() as much as possible.
  16. extern UINT GetQTSystemDirectoryA(LPSTR lpBuffer, UINT uSize);
  17. extern UINT GetQTExtensionDirectoryA(LPSTR lpBuffer, UINT uSize);
  18. extern UINT GetQTApplicationDirectoryA(LPSTR lpBuffer, UINT uSize);
  19. extern UINT GetQTComponentDirectoryA(LPSTR lpBuffer, UINT uSize);
  20. // be Unicode compatible in the next release of QuickTime
  21. #define GetQTSystemDirectory GetQTSystemDirectoryA
  22. #define GetQTExtensionDirectory GetQTExtensionDirectoryA
  23. #define GetQTApplicationDirectory GetQTApplicationDirectoryA
  24. #define GetQTComponentDirectory GetQTComponentDirectoryA
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #define kQuickTimeKeyName "Software\\Apple Computer, Inc.\\QuickTime"
  29. #define kQTAppsDirKeyName "InstallDir"
  30. #define kQTSysDirKeyName "QTSysDir"
  31. #define kQTExtDirKeyName "QTExtDir"
  32. #define kQTComponentDirKeyName "QTComponentsDir"
  33. #endif // !__QTLOADLIBRARYUTILS__