AllocMiscResource() | FreeMiscResource() |
char * AllocMiscResource( ULONG unitNum, char * name );
Allocates one of the miscellaneous resources.
unitNum -- The resource to allocate name -- An identifying name for you, must NOT be NULL.
NULL if the allocation was successful. If the resource couln't be allocated, the name of the holder of the resource is returned.
VOID FreeMiscResource();
Frees one of the miscellaneous resources.
unitNum -- The resource to free.
You must have allocated the resource to free it!