<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: registre</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>MFC lire et ecrire la valeur d'une clé dans le registre</title>
        <link>http://www.posteet.com/view/391</link>
        <description>
        <![CDATA[<pre>// Déclaration du handle
HKEY hKey;
unsigned char KeyValue[MAX_PATH]; 
DWORD size = MAX_PATH;
DWORD regtype = REG_DWORD;


// Test l'ouverture du dossier de la cle qui est dans le HKEY_LOCAL_MACHINE du registre 
// et se trouve dans le dossier &quot;SYSTEM\\Protected\\Volume0&quot;
// KEY_ALL_ACCESS : Acces lecture et ecriture
if( RegOpenKeyEx( HKEY_LOCAL_MACHINE, &quot;SYSTEM\\Protected\\Volume0&quot;,0,KEY_ALL_ACCESS,&amp;hKey ) == ERROR_SUCCESS )
{
	RegQueryValueEx(hKey,&quot;Enabled&quot;,NULL,&amp;regtype, KeyValue,&amp;size );
	// Lecture de la valeur, si elle = 1, par exemple
	if ( KeyValue[0] == 1)
	{		
	}
	else
	{		
	}
	//Ferme la clé
	RegCloseKey( hKey );
}
else
{
         // Dans le cas ou il n'arrive pas a ouvrir la clé un message d'erreur apparait devant toutes les fenetre, MB_TOPMOST
         // avec un bouton OK, MB_OK
	 MessageBox(NULL, &quot;L'opération a échoué&quot;, &quot;Erreur&quot;, MB_OK|MB_TOPMOST);
}</pre> <a href="http://www.posteet.com/tags/C++">[C++]</a>  <a href="http://www.posteet.com/tags/clé">[clé]</a>  <a href="http://www.posteet.com/tags/ecriture">[ecriture]</a>  <a href="http://www.posteet.com/tags/lecture">[lecture]</a>  <a href="http://www.posteet.com/tags/MFC">[MFC]</a>  <a href="http://www.posteet.com/tags/mofifier">[mofifier]</a>  <a href="http://www.posteet.com/tags/registre">[registre]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>moifort</dc:creator>
        <pubDate>Mon, 12 Nov 2007 14:05:32 +0000</pubDate>

            <category>C++</category>
            <category>clé</category>
            <category>ecriture</category>
            <category>lecture</category>
            <category>MFC</category>
            <category>mofifier</category>
            <category>registre</category>
            <category>windows</category>
    
    </item>

  
    <item>
        <title>Autoriser Outlook 2003 à ouvrir des pièces jointes potentiellemetn dangereuses (msi, exe, ...)</title>
        <link>http://www.posteet.com/view/86</link>
        <description>
        <![CDATA[<pre>Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security]
&quot;Level1Remove&quot;=&quot;exe;zip;msi&quot;</pre> <a href="http://www.posteet.com/tags/outlook">[outlook]</a>  <a href="http://www.posteet.com/tags/registre">[registre]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Wed, 17 Oct 2007 08:51:47 +0000</pubDate>

            <category>outlook</category>
            <category>registre</category>
            <category>windows</category>
    
    </item>


</channel>
</rss>
