in the maya install directory there is the devkit, a plugin wizard for Visual Studio, and in the help docs "F1" the misc. api docs are under Developer Resources Section and api classes and methods are listed in the api (very bottom of the help contents). The devkit has all the example plugins for you to compile.