win32 sample working