Article # 75, added by Geoworks, historical record
| first | previous | index | next | last |

How to use PCMCIA change notification.




Q:
Will I receive notification if my application is using a
file that is located on the PCMCIA card and the user closes
out the card?

A:
The PCMCIA library will notify you in this case. It does
this by sending MSG_META_REMOVING_DISK to your process
object, but only if your application is using a file that is
on the card.

We recommend that your application quit (without saving to
state) when it finds out that this has happened.

Warning: Make sure you're not putting your process object on
the GCN list that sends out MSG_META_REMOVING_DISK
(GCNSLT_REMOVABLE_DISK). Because if you do, then your
process object will always receive MSG_META_REMOVING_DISK
when a card is removed, not just when you have a file open
on the card (in fact, you'll get the message twice).