Go to a local bookstore.
Buy a book.
Study the book.
Use internet as a reference incase something isn't clear enough.
Once competent as a programmer get an sdk.
If you want to make hacks like chams, no-recoil, etc, learn D3D.
If you want to make stuff like games, or other programs, i suggest OpenGL or Allegro.