I just copied the win32 code there to be on the safe side, 3rdparty opportunity there :-p