Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3388 connectés 

 


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]


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
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]


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)