Under Painting the Window, you have an argument typed as LPPAINTSTRUCT. This is not defined in your guide, and causes an error. I believe it should instead be *const PAINTSTRUCT.
- pub fn BeginPaint(hWnd: HWND, lpPaint: LPPAINTSTRUCT) -> HDC;
+ pub fn BeginPaint(hWnd: HWND, lpPaint: *const PAINTSTRUCT) -> HDC;