{"id":2179,"date":"2015-05-14T00:55:08","date_gmt":"2015-05-13T15:55:08","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=2179"},"modified":"2017-01-31T19:41:22","modified_gmt":"2017-01-31T10:41:22","slug":"c-%eb%a0%88%ec%a7%80%ec%8a%a4%ed%8a%b8%eb%a6%acregistry-%ec%9d%bd%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=2179","title":{"rendered":"[C#] \ub808\uc9c0\uc2a4\ud2b8\ub9ac(Registry) \uc77d\uae30"},"content":{"rendered":"<p><P>C# \uc5b8\uc5b4\ub97c \uc774\uc6a9\ud558\uc5ec \uc708\ub3c4\uc6b0\uc988(Windows)\uc758 \ub808\uc9c0\uc2a4\ud2b8\ub9ac(Registry)\ub97c \uc77d\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uba3c\uc800 \uc77d\uace0\uc790 \ud558\ub294 \ub808\uc9c0\uc2a4\ud2b8\ub9ac\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1341037063.png\" width=\"491\" height=\"167\"\/><\/p>\n<p><P>\uc989, \uc704\uc758 INSTALL_PATH\uc758 Data \uac12\uc744 \uc5bb\uace0\uc790 \ud558\ub294 \uac83\uc778\ub370\uc694. \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre>\r\nRegistryKey reg = Registry.LocalMachine;\r\nreg = reg.OpenSubKey(\"Software\\\\GeoService\\\\GeoService-Xr\", true);\r\n\r\nif (reg != null)\r\n{\r\n    Object val = reg.GetValue(\"INSTALL_PATH\");\r\n    if (null != val)\r\n    {\r\n        MessageBox.Show(Convert.ToString(val));\r\n    }\r\n}\r\n<\/pre>\n<p><P>\uc704\uc758 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574\uc11c\ub294 using \uc808\uc5d0 Microsoft.Win32\uc5d0 \ub300\ud55c \ucd94\uac00\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc989, \uc544\ub798\uc640 \uac19\uc774 \ub9d0\uc785\ub2c8\ub2e4.<\/P><\/p>\n<pre>\r\nusing Microsoft.Win32;\r\n<\/pre>\n<p><P>\ub610 \ucd94\ud6c4\uc5d0 \uc708\ub3c4\uc6b0\uc988\uc5d0\uc11c \ub808\uc9c0\uc2a4\ud2b8\ub9ac \uac12\uc744 \uc77d\uc5b4\uc62c \ub54c\ub97c \uc704\ud574 \uc815\ub9ac\ud574 \ub461\ub2c8\ub2e4.<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C# \uc5b8\uc5b4\ub97c \uc774\uc6a9\ud558\uc5ec \uc708\ub3c4\uc6b0\uc988(Windows)\uc758 \ub808\uc9c0\uc2a4\ud2b8\ub9ac(Registry)\ub97c \uc77d\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uba3c\uc800 \uc77d\uace0\uc790 \ud558\ub294 \ub808\uc9c0\uc2a4\ud2b8\ub9ac\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc989, \uc704\uc758 INSTALL_PATH\uc758 Data \uac12\uc744 \uc5bb\uace0\uc790 \ud558\ub294 \uac83\uc778\ub370\uc694. \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4. RegistryKey reg = Registry.LocalMachine; reg = reg.OpenSubKey(&#8220;Software\\\\GeoService\\\\GeoService-Xr&#8221;, true); if (reg != null) { Object val = reg.GetValue(&#8220;INSTALL_PATH&#8221;); if (null != val) { MessageBox.Show(Convert.ToString(val)); } } \uc704\uc758 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574\uc11c\ub294 using \uc808\uc5d0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=2179\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[C#] \ub808\uc9c0\uc2a4\ud2b8\ub9ac(Registry) \uc77d\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,8],"tags":[],"class_list":["post-2179","post","type-post","status-publish","format-standard","hentry","category-csharp","category-programming"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2179"}],"version-history":[{"count":2,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2179\/revisions"}],"predecessor-version":[{"id":4853,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2179\/revisions\/4853"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2179"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}