Arun Upadhyaya Kishan
2000-08-31 22:12:36 UTC
Hello,
Related to my previous question regarding CD-ROM, I am curious as how to
receive a call back notification when a particular IOService is
terminated. I attempted to use IOServiceAddInterestNotification,
though I did not seem to receive any feedback regarding the service
termination. I believe that I armed the notification by emptying the
returned iterator; is there anything else that I must do to setup
the notification?
I would also like to be able to eject objects marked ejectable in
the IOKit registry. With CD-ROM, I can issue an ioctl command to the
/dev/disk# node to eject the disc. However, this does not unmount
the media from the desktop. Routines available under classic MacOS,
such as PBUnmountVol and PBEject either do not work or are not
supported. What is the suggested methodology for accomplishing
this, without requiring superuser access?
--
AK
Related to my previous question regarding CD-ROM, I am curious as how to
receive a call back notification when a particular IOService is
terminated. I attempted to use IOServiceAddInterestNotification,
though I did not seem to receive any feedback regarding the service
termination. I believe that I armed the notification by emptying the
returned iterator; is there anything else that I must do to setup
the notification?
I would also like to be able to eject objects marked ejectable in
the IOKit registry. With CD-ROM, I can issue an ioctl command to the
/dev/disk# node to eject the disc. However, this does not unmount
the media from the desktop. Routines available under classic MacOS,
such as PBUnmountVol and PBEject either do not work or are not
supported. What is the suggested methodology for accomplishing
this, without requiring superuser access?
--
AK