diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/quicktime_win32/QTLoadLibraryUtils.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/quicktime_win32/QTLoadLibraryUtils.h')
| -rw-r--r-- | common/quicktime_win32/QTLoadLibraryUtils.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/common/quicktime_win32/QTLoadLibraryUtils.h b/common/quicktime_win32/QTLoadLibraryUtils.h new file mode 100644 index 0000000..8e8486d --- /dev/null +++ b/common/quicktime_win32/QTLoadLibraryUtils.h @@ -0,0 +1,46 @@ +/* + File: QTLoadLibraryUtils.h + + Copyright: � 2002-2006 by Apple Computer, Inc., all rights reserved. + + Set of utility functions for loading of QuickTime libraries, and finding of + the QuickTime directories. + +*/ + + +#ifndef __QTLOADLIBRARYUTILS__ +#define __QTLOADLIBRARYUTILS__ + +#include <windows.h> + +#ifdef __cplusplus +extern "C" { +#endif + +// QuickTime version of LoadLibrary() which searches QT directories for DLLs. +extern HINSTANCE QTLoadLibrary(const char *szDLL); + +// Simple routines to mimic GetSystemDirectory() as much as possible. +extern UINT GetQTSystemDirectoryA(LPSTR lpBuffer, UINT uSize); +extern UINT GetQTExtensionDirectoryA(LPSTR lpBuffer, UINT uSize); +extern UINT GetQTApplicationDirectoryA(LPSTR lpBuffer, UINT uSize); +extern UINT GetQTComponentDirectoryA(LPSTR lpBuffer, UINT uSize); + +// be Unicode compatible in the next release of QuickTime +#define GetQTSystemDirectory GetQTSystemDirectoryA +#define GetQTExtensionDirectory GetQTExtensionDirectoryA +#define GetQTApplicationDirectory GetQTApplicationDirectoryA +#define GetQTComponentDirectory GetQTComponentDirectoryA + +#ifdef __cplusplus +} +#endif + +#define kQuickTimeKeyName "Software\\Apple Computer, Inc.\\QuickTime" +#define kQTAppsDirKeyName "InstallDir" +#define kQTSysDirKeyName "QTSysDir" +#define kQTExtDirKeyName "QTExtDir" +#define kQTComponentDirKeyName "QTComponentsDir" + +#endif // !__QTLOADLIBRARYUTILS__ |