appletfileeject.c

Go to the documentation of this file.
00001 
00002 /*  $Id: appletfileeject.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #include "applet.h"
00008 #include "appletfilesinternal.h"
00009 #include "appletfileeject.h"
00010 
00011 
00012 boolean fileejectdisk (ptrfilespec pfs) {
00013     
00014     short vnum = (*pfs).vRefNum;
00015     OSErr ec;
00016     
00017     ec = Eject (nil, vnum);
00018 
00019     if (fileerror (pfs, ec))
00020         return (false);
00021         
00022     ec = UnmountVol (nil, vnum);
00023     
00024     return (!fileerror (pfs, ec));
00025     } /*fileejectdisk*/

Generated on Wed May 31 18:19:41 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6