Just to throw it out there, one idea I had while trying to prototype win16 tests was to create whole module directories that could be embedded as test resources, giving as much freedom as exists for normal DLLs or executables. I don't have the patch handy, though.