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