#pragma once

#include <ConditionalMacros.h>
#include <Processes.h>

#if PRAGMA_IMPORT
#pragma import on
#endif

enum {
	kShlibDriverOffendingProcessGestalt	= FOUR_CHAR_CODE ('hl¿Ä')
};

#define kShlibDriverFragmentName "\pMIT Support¥ShlibDriverLib"

#ifdef __cplusplus
extern "C" {
#endif

OSErr LoadSharedLibraryDriver (
	Str31					inDriverName,
	Str255					inDispatchLibraryName);
	
OSErr UnloadSharedLibraryDriver (
	Str31					inDriverName,
	ProcessSerialNumber*	outOffendingProcess);
	
OSErr RegisterFileWithCodeFragmentManager (
	const FSSpec*			inFile);

#ifdef __cplusplus
}
#endif

#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif
