[comp.sys.mac.programmer] How do you make an INIT/CDEV?

qureshi@cat51.CS.WISC.EDU (Mohammad Qureshi) (07/16/89)

I have been programming on the mac for the past year now
and there is one thing that has eluded me the entire time.

How do you make an INIT/CDEV?

What I'm interested in doing is some kind of INIT alarm
clock with parameters set via the Control Panel. I know
that IM-V tells how to write a CDEV, but I have not
had any luck with the INIT part.  IM-IV, which supposedly
covers this topic, merely says something like "INIT's are
loaded into the System Heap during startup."  It gives
no information about how to make one, or how to do
anything with it once it's loaded into the System Heap.

Any code in Pascal or C would be appreciated.  I use
Lighspeed for both languages.  No assembly please.

Thanks for your cooperation.