|
Dernière réponse | |
---|---|
Sujet : [VC++] et MFC : Comment accéder au Default Managers ??? | |
Flying | pour changer à la volée la configuration des options de sécurité de internet (activeX, java, etc ...).
J'ai trouvé ce qui suit sur MSDN mais je pige rien et je ne sais pas la suite à coder !!! Des idées ??? Accessing the Default Managers To access the default Internet Security Manager and Internet Zone Manager objects, the client application should use theCoCreateInstance function to create an instance of these objects. The following sample creates an instance of both the Internet Security Manager and the Internet Zone Manager. HRESULT hr; IInternetSecurityManager *pSecurityMgr; IInternetZoneManager *pZoneMgr; hr = CoCreateInstance(CLSID_InternetSecurityManager, NULL, CLSCTX_INPROC_SERVER, IID_IInternetSecurityManager, (void**)&pSecurityMgr); hr = CoCreateInstance(CLSID_InternetZoneManager, NULL, CLSCTX_INPROC_SERVER, IID_IInternetZoneManager, (void**)&pZoneMgr); Jusque là ca fonctionne mais que faire après ??? Merci Flying [edit]--Message édité par Flying--[/edit] |
Vue Rapide de la discussion |
---|