2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
7 #include <dos/dosextens.h>
8 #include <proto/exec.h>
9 #include <proto/nvdisk.h>
11 #include LC_LIBDEFS_FILE
13 /*****************************************************************************
16 #include <libraries/nonvolatile.h>
18 AROS_LH3(APTR
, GetCopyNV
,
22 AROS_LHA(STRPTR
, appName
, A0
),
23 AROS_LHA(STRPTR
, itemName
, A1
),
24 AROS_LHA(BOOL
, killRequesters
, D1
),
28 struct Library
*, nvBase
, 5, Nonvolatile
)
32 Search the nonvolatile storage for the object 'itemName' allocated by
33 'appName' and return a copy of the data.
37 appName -- name of the application that allocated the item
38 itemName -- the object to look for
39 killRequesters -- if TRUE no system requesters will be allowed to be
40 displayed during the operation of this function
44 Pointer to the data assocated with 'itemName' as allocated by 'appName'.
54 FreeNVData(), <libraries/nonvolatile.h>
58 ******************************************************************************/
63 struct Process
*me
= (struct Process
*)FindTask(NULL
);
64 APTR oldReq
= me
->pr_WindowPtr
;
67 if(appName
== NULL
|| itemName
== NULL
)
70 if(strpbrk(appName
, ":/") != NULL
||
71 strpbrk(itemName
, ":/") != NULL
)
75 me
->pr_WindowPtr
= (APTR
)-1;
77 result
= ReadNVDData(appName
, itemName
);
80 me
->pr_WindowPtr
= oldReq
;