Two things, both nitpicks: 1. I wrap lines to 120 characters. Most other developers wrap to 80 or 100. A line with 181 characters seems excessive. 2. Your prototype in winbase.h uses DWORD * and WCHAR * whereas the surrounding prototypes use LPDWORD and LPWSTR. -Alex