Deletes a resource file in the Resource Management Servie (RMS) data area
#include <nwdp_res.h>
N_EXTERN_LIBRARY (nint) NWDPResDeleteResourceFile (
NWDPAccessorRef accessorRef,
NWDPResRef resRef,
NWDPResourceTypeEnum resType,
nparam deleteInput);
(IN) Specifies the NWDPAccessorData structure whose fields are accessed by using the provided error macros.
(IN) Specifies the reference to the resource manager.
(IN) Specifies the resource type.
(IN) Specifies the type of input needed to delete, based on the resType parameter value.
0x00000000 |
N_SUCCESS |
0xFFFFFFFE |
NWDP_RC_INVALID_ACCESSOR |
0xFFFFFFFF |
N_FAILURE |
For the resRef parameter, the following functions generate a resource reference:
For the resType parameter, the resource types are as follows:
The current implementation of NWDPResDeleteResourceFile does not delete all files referenced by an index file (.inf or .ndx).
If the accessorRef parameter returns NWDP_EC_RESMAN_RESULT, the otherError field in the accessorRef parameter contains an error code from the Resource Manager. This error code correlates to the enumeration values found in the nwdp_err.h file.
The deleteInput parameter value is based on the following resType parameter value:
| resType | deleteInput |
|---|---|
NWDP_RES_PRN_DRV |
Points to the NWDPResDeletePrnDrvFile structure |
NWDP_RES_PRN_DEF |
Points to the NWDPResDeletePrnDefFile structure |
NWDP_RES_BANNER_PAGE |
Points to Unicode string (pnstr16) containing a banner page filename |
NWDP_RES_FONT |
Points to the NWDPResDeleteFontFile structure |
If NWDPResDeleteResourceFile returns N_FAILURE, NWDPLibErrorMac (accessorRef) contains the following: