Added ID and Win32 handle support