<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://schweda.net/blog_rss.php?bid=595" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Registry auslesen/ändern]]></title>
<description><![CDATA[
<p>Folgender Job zeigt, wie man die Registry auslesen/ver&auml;ndern kann.
</p>


<pre class="pre_blog_axcode">
static void readWriteRegistry(Args _args)
{
    int                         regKey;
    container                   cRegValue;
    str                         regKeyValue;
    #WinApi

    // Read
    regKey = WinAPI::regOpenKey(#HKEY_CURRENT_USER, @&quot;Software&#092;Microsoft&#092;Dynamics&#092;6.0&#092;&quot;, #KEY_QUERY_VALUE);

    cRegValue = WinAPI::regGetValue(regKey, @&quot;BuildVersion&quot;);
    if(conLen(cRegValue) &gt; 0)
    {
        regKeyValue = conPeek(cRegValue, 1);
        info(strFmt(&quot;%1&quot;, regKeyValue));
    }

    WinAPI::regCloseKey(regKey);

    // Write
    regKey = WinAPI::regOpenKey(#HKEY_CURRENT_USER, @&quot;Software&#092;Microsoft&#092;Dynamics&#092;6.0&#092;&quot;, #KEY_QUERY_VALUE);
    cRegValue = WinAPI::regGetValue(regKey, @&quot;BuildVersion&quot;);
    if(conLen(cRegValue) &gt; 0)
    {
        regKey = WinAPI::regOpenKey(#HKEY_CURRENT_USER, @&quot;Software&#092;Microsoft&#092;Dynamics&#092;6.0&#092;&quot;, #KEY_WRITE);
        WinAPI::regSetValueEx(regKey, @&quot;BuildVersion&quot;, 1, &quot;Build: 6.3.164.0&quot;);
    }
    WinAPI::regCloseKey(regKey);
}
</pre>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Fri, 25 Mar 2016 15:47:00 +0100</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=595</link>
<comments>https://www.schweda.net/blog_ax.php?bid=595</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=595</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=595</wfw:commentRss>
</item>
<item>
<title>Kommentar von Inkogo</title>
<description><![CDATA[It worked in AX2009 but only with '\' separator in registry path:
@"Software\\Microsoft\\Dynamics\\6.0"
;)]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Sat, 30 Apr 2022 02:04:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=595</link>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=595</guid>
<author>Inkogo</author>
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Heinz Schweda</dc:creator>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=595</wfw:commentRss>
</item>
</channel>
</rss>	
