exception propagation for win32 invoke
use ResourceT for window system