Have a look at
http://us.generation-nt.com/answer/error-when-using-sdk-header-file-help-41427982.html
and, probably, some other discussions about comsvcs.h(9939) : error C2146: syntax error :...