The sample program is the same for Windows as for Linux, with #ifdef blocks for Win32.