DosFreeResource
Bindings: C, MASM
This call frees a resource loaded by DosGetResource2.
DosFreeResource (ResAddr)
ResAddr (PBYTE) - input
The address of the resource to free.
rc (USHORT) - return
Return code descriptions are:
0 NO_ERROR
6 ERROR_ACCESS_DENIED
Remarks
DosFreeResource is used to free resources obtained with DosGetResource2.
After the last reference to a resource is freed, the memory becomes
available for reuse by the system. However, the memory is not reused
until the system determines it cannot satisfy a memory allocation
request. This allows the resource to remain in memory in case the process
issues another DosGetResource2 call. The system thus avoids having to
reread the contents of the resource from disk.
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs