If I've got a resource in an EXE and I want to extract it, it's pretty simple. Something like:
stream := TResourceStream.Create(HInstance, ResourceName, RT_RCDATA);
This works because the global variable HInstance is a handle to the EXE. Is there any similar way for code within a BPL to get a handle to the package it's a part of so I can extract a resource from it?