home *** CD-ROM | disk | FTP | other *** search
- #include <exec/types.h>
- #include <dos/dos.h>
- #include <dos/dosextens.h>
- #include <datatypes/datatypes.h>
-
- #include <clib/exec_protos.h>
- #include <clib/dos_protos.h>
- #include <clib/utility_protos.h>
-
- #include <pragmas/exec_pragmas.h>
- #include <pragmas/dos_pragmas.h>
- #include <pragmas/utility_pragmas.h>
-
- /*****************************************************************************/
-
- #define SysBase dthc->dthc_SysBase
- #define DOSBase dthc->dthc_DOSBase
- #define UtilityBase dthc->dthc_UtilityBase
-
- /*****************************************************************************/
-
- BOOL __asm DTHook (register __a0 struct DTHookContext * dthc)
- {
- BOOL retval = FALSE;
-
- ULONG ch;
-
- /* Make sure we have a buffer */
- if (dthc->dthc_Buffer)
- {
- ch = *((ULONG *)dthc->dthc_Buffer);
- if(ch==0x4d4d002a || ch==0x49492a00)
- return TRUE;
- }
- return retval;
- }
-
-