C (111/207)

From:Jesper Svennevid
Date:14 Dec 99 at 21:11:04
Subject:RE: Assigns and Layers

From: Jesper Svennevid <jesper@fxrealm.com>

> How can I find out if an assign exists? I've tried
>
> if(!(flock = Lock(<assign>,ACCESS_READ)))
> {
> // fail
> }
>
> But this results in a requester popping up wanting me to
> insert the "assign"
> into a drive, which if I cancel, results in a crash.
>
> On an unrelated note, how do I make a window in which the
> background shows
> through? I've tried installing a back fill hook, using
> InstallLayerHook(rp->Layer,LAYERS_NOBACKFILL); but that
> doesn't seem to be
> all I have to do.

You could prevent all requesters from appearing, but
you might want to have all other requesters enabled, so
I recommend you have a look at the doslists in
dos.library. They allow you to search for named volumes
and assigns, without popping a requester if the name
is not found.



// Jesper Svennevid : jesper@fxrealm.com