summaryrefslogtreecommitdiff
path: root/common/quicktime_win32/QTLoadLibraryUtils.h
blob: 8e8486db206bec648672975b8f7c20036e1c5ee0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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__