//第一步,初始化Comhres=CoInitializeEx(0,COINIT_MULTITHREADED);//第二部设置COM安全级别hres=CoInitializeSecurity(NULL,-1,//COMauthenticationNULL,//AuthenticationservicesNULL,//ReservedRPC_C_AUTHN_LEVEL_DEFAULT,//DefaultauthenticationRP