google 'win32 api'
i found this : theForger's Win32 API Tutorial