home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
languages
/
c
/
oslib
/
Examples
/
p2-491
< prev
next >
Wrap
Text File
|
1994-03-24
|
465b
|
22 lines
#include <kernel.h>
#include "filer.h"
#include "wimp.h"
extern wimp_t Task_Handle;
extern char My_Command [];
/*This is a CMHG-style service entry point.*/
void main_service (int service, _kernel_swi_regs *regs, void *workspace)
{ switch (service)
{ case Service_StartFiler:
if (Task_Handle == 0)
{ Task_Handle = (wimp_t) -1;
regs->r [0] = (int) My_Command;
regs->r [1] = FALSE;
}
break;
} }