{"id":138,"date":"2014-09-05T15:54:48","date_gmt":"2014-09-05T15:54:48","guid":{"rendered":"http:\/\/www.danieledavi.com\/blog\/?p=138"},"modified":"2014-09-05T15:54:48","modified_gmt":"2014-09-05T15:54:48","slug":"how-to-use-windows-registry-in-your-net-c-application","status":"publish","type":"post","link":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/","title":{"rendered":"How to use Windows registry in your .Net C# application"},"content":{"rendered":"<p>In this article I will show how to read and use in your .Net C# application informations stored in\u00a0the Windows registry. First of all let&#8217;s see the easiest way to store some information in the server registry.<\/p>\n<p>You can use the &#8220;regedit&#8221; command to edit the register or you can directly use a register file. Today I&#8217;ll show this option.<\/p>\n<div id=\"attachment_140\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.danieledavi.com\/blog\/wp-content\/uploads\/2014\/09\/csharp-image.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-140\" class=\"size-full wp-image-140\" src=\"http:\/\/www.danieledavi.com\/blog\/wp-content\/uploads\/2014\/09\/csharp-image.png\" alt=\"C Sharp\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.danieledavi.com\/blog\/wp-content\/uploads\/2014\/09\/csharp-image.png 300w, https:\/\/www.danieledavi.com\/blog\/wp-content\/uploads\/2014\/09\/csharp-image-150x150.png 150w, https:\/\/www.danieledavi.com\/blog\/wp-content\/uploads\/2014\/09\/csharp-image-50x50.png 50w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-140\" class=\"wp-caption-text\">C#<\/p><\/div>\n<p>First of all create a file and call it, say, &#8220;myApp1.reg&#8221; where myApp1 it will be the name you want to give to the Registry Key of your app. If you want a different name, change it but be careful and backup you registry before to take any action on the Registry. You&#8217;ll overwrite eventually key with the same name.<\/p>\n<p>Let&#8217;s see now what to write inside our\u00a0&#8220;myApp1.reg&#8221;<\/p>\n<p>Windows Registry Editor Version 5.00<\/p>\n<pre>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\YourBrand\\myApp1]\r\n\"aPath\"=\"E:\\\\myFooFolder\\\\\"\r\n\"aTimer\"=\"30\"\r\n\"aServer\"=\"localhost\"\r\n\"aVariable\"=\"begood\"\r\n\"whateveryouwant\"=\"desired-value-here\"\r\n<\/pre>\n<p>&#8230; and so on.<\/p>\n<p>You can store any key you want and give the relative value. The string\u00a0on the left part will be also the variable you&#8217;ll use in your application. The right part is the value.<br \/>\nNow save the file and double click on it. Confirm (if you are sure of what you are doing) and take a look on how to retrieve these information in your application.<\/p>\n<p>First of all you have to add the line<\/p>\n<pre>using Microsoft.Win32;<\/pre>\n<p>on the top of your file, before the class declaration.<\/p>\n<p>Second you need to get the registry Key you create before<\/p>\n<pre>private RegistryKey yourAppKey = Registry.LocalMachine.OpenSubKey(\"SOFTWARE\\\\Wow6432Node\\\\YourBrand\\\\myApp1\", false);\r\n<\/pre>\n<p>Third you can create and assign the variables of your application with the value take from the registry<\/p>\n<pre> \r\nprivate string use_aPath;\r\nprivate int use_aTimer;\r\nprivate string use_aServer;\r\nprivate string use_aVariable;\r\nprivate string use_whateveryouwant;\r\n\r\nuse_aPath = yourAppKey.GetValue(\"aPath\").ToString();\r\nuse_aTimer = yourAppKey.GetValue(\"aTimer\").ConvertTo&lt;int&gt;(0);\r\nuse_aServer = yourAppKey.GetValue(\"aServer\").ToString();\r\nuse_aVariable = yourAppKey.GetValue(\"aVariable\").ToString();\r\nuse_whateveryouwant = yourAppKey.GetValue(\"whateveryouwant\").ToString();\r\n<\/pre>\n<p>Et voil\u00e0 from now you have all you variables retrieved from the registry and ready to be used.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article I will show how to read and use in your .Net C# application informations stored in\u00a0the Windows registry. First of all let&#8217;s see the easiest way to store some information in the server registry. You can use the &#8220;regedit&#8221; command to edit the register or you can directly use a register file. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[12],"tags":[43,44,46,42,47,45],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-dot-net-c-sharp","tag-c","tag-read","tag-registry","tag-windows-registry","tag-wow6432node","tag-write"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let&#039;s see the easiest way to store some information in the server registry. You can use the &quot;regedit&quot; command to edit the register or you can directly use a register file.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Daniele Dav\u00ec\"\/>\n\t<meta name=\"keywords\" content=\"c#,read,registry,windows registry,wow6432node,write\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Daniele Davi&#039; | Author, Coach, Executive\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to use Windows registry in your .Net C# application | Daniele Davi&#039;\" \/>\n\t\t<meta property=\"og:description\" content=\"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let&#039;s see the easiest way to store some information in the server registry. You can use the &quot;regedit&quot; command to edit the register or you can directly use a register file.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-09-05T15:54:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-09-05T15:54:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@_danieledavi\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to use Windows registry in your .Net C# application | Daniele Davi&#039;\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let&#039;s see the easiest way to store some information in the server registry. You can use the &quot;regedit&quot; command to edit the register or you can directly use a register file.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@_danieledavi\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#article\",\"name\":\"How to use Windows registry in your .Net C# application | Daniele Davi'\",\"headline\":\"How to use Windows registry in your .Net C# application\",\"author\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/csharp-image.png\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#articleImage\",\"width\":300,\"height\":300,\"caption\":\"C#\"},\"datePublished\":\"2014-09-05T15:54:48+01:00\",\"dateModified\":\"2014-09-05T15:54:48+01:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#webpage\"},\"articleSection\":\".Net C#, C#, read, registry, Windows Registry, Wow6432Node, write\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/#listItem\",\"position\":2,\"name\":\"Programming\",\"item\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/dot-net-c-sharp\\\/#listItem\",\"name\":\".Net C#\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/dot-net-c-sharp\\\/#listItem\",\"position\":3,\"name\":\".Net C#\",\"item\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/dot-net-c-sharp\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#listItem\",\"name\":\"How to use Windows registry in your .Net C# application\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/#listItem\",\"name\":\"Programming\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#listItem\",\"position\":4,\"name\":\"How to use Windows registry in your .Net C# application\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/category\\\/programming\\\/dot-net-c-sharp\\\/#listItem\",\"name\":\".Net C#\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/#person\",\"name\":\"Daniele Davi'\",\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/_danieledavi\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/daniele-d-93168411\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Daniele Dav\\u00ec\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a724123f14df7848229a1ebf22e4cafabdb50b8aa9fd5540d96f3bb1d7f3f435?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniele Dav\\u00ec\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#webpage\",\"url\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/\",\"name\":\"How to use Windows registry in your .Net C# application | Daniele Davi'\",\"description\":\"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let's see the easiest way to store some information in the server registry. You can use the \\\"regedit\\\" command to edit the register or you can directly use a register file.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/2014\\\/09\\\/how-to-use-windows-registry-in-your-net-c-application\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2014-09-05T15:54:48+01:00\",\"dateModified\":\"2014-09-05T15:54:48+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/\",\"name\":\"Daniele Davi'\",\"description\":\"Author, Coach, Executive\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.danieledavi.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to use Windows registry in your .Net C# application | Daniele Davi'","description":"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let's see the easiest way to store some information in the server registry. You can use the \"regedit\" command to edit the register or you can directly use a register file.","canonical_url":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/","robots":"max-image-preview:large","keywords":"c#,read,registry,windows registry,wow6432node,write","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#article","name":"How to use Windows registry in your .Net C# application | Daniele Davi'","headline":"How to use Windows registry in your .Net C# application","author":{"@id":"https:\/\/www.danieledavi.com\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.danieledavi.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/www.danieledavi.com\/blog\/wp-content\/uploads\/2014\/09\/csharp-image.png","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#articleImage","width":300,"height":300,"caption":"C#"},"datePublished":"2014-09-05T15:54:48+01:00","dateModified":"2014-09-05T15:54:48+01:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#webpage"},"isPartOf":{"@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#webpage"},"articleSection":".Net C#, C#, read, registry, Windows Registry, Wow6432Node, write"},{"@type":"BreadcrumbList","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.danieledavi.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/#listItem","name":"Programming"}},{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/#listItem","position":2,"name":"Programming","item":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/dot-net-c-sharp\/#listItem","name":".Net C#"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/dot-net-c-sharp\/#listItem","position":3,"name":".Net C#","item":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/dot-net-c-sharp\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#listItem","name":"How to use Windows registry in your .Net C# application"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/#listItem","name":"Programming"}},{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#listItem","position":4,"name":"How to use Windows registry in your .Net C# application","previousItem":{"@type":"ListItem","@id":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/dot-net-c-sharp\/#listItem","name":".Net C#"}}]},{"@type":"Person","@id":"https:\/\/www.danieledavi.com\/blog\/#person","name":"Daniele Davi'","sameAs":["https:\/\/twitter.com\/_danieledavi","https:\/\/www.linkedin.com\/in\/daniele-d-93168411\/"]},{"@type":"Person","@id":"https:\/\/www.danieledavi.com\/blog\/author\/admin\/#author","url":"https:\/\/www.danieledavi.com\/blog\/author\/admin\/","name":"Daniele Dav\u00ec","image":{"@type":"ImageObject","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a724123f14df7848229a1ebf22e4cafabdb50b8aa9fd5540d96f3bb1d7f3f435?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniele Dav\u00ec"}},{"@type":"WebPage","@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#webpage","url":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/","name":"How to use Windows registry in your .Net C# application | Daniele Davi'","description":"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let's see the easiest way to store some information in the server registry. You can use the \"regedit\" command to edit the register or you can directly use a register file.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.danieledavi.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/#breadcrumblist"},"author":{"@id":"https:\/\/www.danieledavi.com\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.danieledavi.com\/blog\/author\/admin\/#author"},"datePublished":"2014-09-05T15:54:48+01:00","dateModified":"2014-09-05T15:54:48+01:00"},{"@type":"WebSite","@id":"https:\/\/www.danieledavi.com\/blog\/#website","url":"https:\/\/www.danieledavi.com\/blog\/","name":"Daniele Davi'","description":"Author, Coach, Executive","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.danieledavi.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Daniele Davi' | Author, Coach, Executive","og:type":"article","og:title":"How to use Windows registry in your .Net C# application | Daniele Davi'","og:description":"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let's see the easiest way to store some information in the server registry. You can use the &quot;regedit&quot; command to edit the register or you can directly use a register file.","og:url":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/","article:published_time":"2014-09-05T15:54:48+00:00","article:modified_time":"2014-09-05T15:54:48+00:00","twitter:card":"summary_large_image","twitter:site":"@_danieledavi","twitter:title":"How to use Windows registry in your .Net C# application | Daniele Davi'","twitter:description":"In this article I will show how to read and use in your .Net C# application informations stored in the Windows registry. First of all let's see the easiest way to store some information in the server registry. You can use the &quot;regedit&quot; command to edit the register or you can directly use a register file.","twitter:creator":"@_danieledavi"},"aioseo_meta_data":{"post_id":"138","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2023-12-01 12:21:06","updated":"2026-08-10 00:21:17","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.danieledavi.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.danieledavi.com\/blog\/category\/programming\/\" title=\"Programming\">Programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.danieledavi.com\/blog\/category\/programming\/dot-net-c-sharp\/\" title=\".Net C#\">.Net C#<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to use Windows registry in your .Net C# application\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.danieledavi.com\/blog"},{"label":"Programming","link":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/"},{"label":".Net C#","link":"https:\/\/www.danieledavi.com\/blog\/category\/programming\/dot-net-c-sharp\/"},{"label":"How to use Windows registry in your .Net C# application","link":"https:\/\/www.danieledavi.com\/blog\/2014\/09\/how-to-use-windows-registry-in-your-net-c-application\/"}],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p90hsv-2e","jetpack-related-posts":[],"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":1,"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.danieledavi.com\/blog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}