2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
7 #include <dos/dosextens.h>
9 /*****************************************************************************
13 #include <libraries/nonvolatile.h>
14 #include <proto/exec.h>
15 #include <proto/nvdisk.h>
17 AROS_LH3(APTR
, GetCopyNV
,
21 AROS_LHA(STRPTR
, appName
, A0
),
22 AROS_LHA(STRPTR
, itemName
, A1
),
23 AROS_LHA(BOOL
, killRequesters
, D1
),
27 struct Library
*, nvBase
, 5, Nonvolatile
)
31 Search the nonvolatile storage for the object 'itemName' allocated by
32 'appName' and return a copy of the data.
36 appName -- name of the application that allocated the item
37 itemName -- the object to look for
38 killRequesters -- if TRUE no system requesters will be allowed to be
39 displayed during the operation of this function
43 Pointer to the data assocated with 'itemName' as allocated by 'appName'.
53 FreeNVData(), <libraries/nonvolatile.h>
57 ******************************************************************************/
62 struct Process
*me
= (struct Process
*)FindTask(NULL
);
63 APTR oldReq
= me
->pr_WindowPtr
;
66 if(appName
== NULL
|| itemName
== NULL
)
69 if(strpbrk(appName
, ":/") != NULL
||
70 strpbrk(itemName
, ":/") != NULL
)
74 me
->pr_WindowPtr
= (APTR
)-1;
76 result
= ReadData(appName
, itemName
);
79 me
->pr_WindowPtr
= oldReq
;