{"id":205,"date":"2010-04-18T00:33:09","date_gmt":"2010-04-18T09:33:09","guid":{"rendered":"\/blog\/?p=205"},"modified":"2023-09-21T09:39:11","modified_gmt":"2023-09-21T00:39:11","slug":"device-driver-%ea%b0%9c%eb%b0%9c-%ec%8b%9c%ec%9e%91","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=205","title":{"rendered":"[Device Driver] \uac1c\ubc1c \uc2dc\uc791"},"content":{"rendered":"\n<div class=\"article_post\">VMWare \uc0c1\uc5d0 Windows XP sp2 \ub97c \uc62c\ub9ac\uace0<br \/><br \/>\uac70\uae30 Visual Studio \n6.0 \uc744 \uc124\uce58\ud55c\ub4a4,<br \/><br \/>\uac70\uae30\ub2e4\uac00 Device \uac1c\ubc1c \ud658\uacbd\uc744 \uad6c\ucd95\ud558\uc600\ub2e4.<br \/><br \/>\uac04\ub2e8\ud55c \uc778\ud06c\ub8e8\ub4dc \ub514\ub809\ud130\ub9ac\uc640 \ub77c\uc774\ube0c\ub7ec\ub9ac \ub514\ub809\ud130\ub9ac\ub97c \n\ubcf4\uc790.<br \/><br \/><\/div>\n<div style=\"text-align: center; clear: both;\" class=\"imageblock center\"><img loading=\"lazy\" decoding=\"async\" style=\"cursor: pointer;\" onclick=\"popview(this, '90000003_000000000000000DFC1EAC2A')\" src=\"http:\/\/cfs7.tistory.com\/image\/11\/tistory\/2008\/05\/10\/20\/41\/482589ce73fa3\" height=\"387\" width=\"547\"><\/div>\n<div style=\"text-align: center; clear: both;\" class=\"imageblock center\"><img loading=\"lazy\" decoding=\"async\" style=\"cursor: pointer;\" onclick=\"popview(this, '90000003_000000000000000DFC1EAC2A')\" src=\"http:\/\/cfs7.tistory.com\/image\/21\/tistory\/2008\/05\/10\/20\/41\/482589d1f23a4\" height=\"384\" width=\"551\"><\/div>\n<div class=\"article_post\"><br \/><br \/>\uc815\ub9d0 \uc0ac\uc18c\ud55c \uc2e4\uc218\ub4e4\uc774 \ub9ce\uc558\ub2e4.<br \/><br \/><font color=\"#0000ff\">NTSTATUS<\/font> <font color=\"#993366\">DriverEntry<\/font>( <font color=\"#ff3399\">IN<\/font> <font color=\"#0000ff\">PDRIVER_OBJECT<\/font> DriverObject, \n<font color=\"#ff3399\">IN<\/font> <font color=\"#0000ff\">PUNICODE_STRING<\/font> \nRegistryPath)<br \/>{<br \/>&nbsp; &nbsp; &nbsp; ...<br \/>&nbsp; &nbsp; &nbsp; <font color=\"#993366\">RtlInitUnicodeString<\/font>( &amp;DeviceName, \nL\"\\\\Device\\\\HELLODRV\" );<br \/><br \/>&nbsp; &nbsp; &nbsp; ...<br \/>&nbsp; &nbsp; &nbsp; <br \/>&nbsp; &nbsp; &nbsp; if( !<font color=\"#ff3399\">NT_SUCCESS<\/font>( status ) )<br \/>&nbsp; &nbsp; &nbsp; {<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font color=\"#0000ff\">return<\/font> status;<br \/>&nbsp; &nbsp; &nbsp; }<br \/><br \/>&nbsp; &nbsp; &nbsp; <font color=\"#ff3399\">DbgPrint<\/font><font color=\"#565656\">(\"Hello \nDriver\\n\");<br \/>}<br \/><br \/>\uac04\ub2e8\ud55c \ub514\ubc14\uc774\uc2a4 \ub4f1\ub85d \uc0d8\ud50c \ucf54\ub4dc\uc774\ub2e4.<br \/><br \/>\ubb50 \ub514\ubc14\uc774\uc2a4 \ub4dc\ub77c\uc774\ubc84\uc5d0 \ub300\ud574\uc11c\ub294 \ucc45\uc73c\ub85c \uacf5\ubd80\ub97c \ub9ce\uc774 \n\ud588\uc73c\ub2c8,<br \/><br \/>\uc774\uc81c \uc2e4\uc804 \ucf54\ub529\uc73c\ub85c \ucd94\uc0c1\ud654 \uc2dc\ucf1c\uc57c\ud55c\ub2e4.<br \/><br \/>\uc790 \ucef4\ud30c\uc77c~~~<br \/><br \/>\ub775~~<br \/><br \/>\ub77c\uc774\ube0c\ub7ec\ub9ac \ub9c1\ud06c \n\uc5d0\ub7ec\ub4e4???<br \/><br \/>\ud5d0,, \ud658\uacbd \uad6c\ucd95\uc774 \uc798\ubabb \ub410\ub098 \uc2f6\uc5b4\uc11c \ud55c 3\uc2dc\uac04 \ub3d9\uc548 \uc0bd\uc9c8\ud558\ub2e4\uac00,,<br \/><br \/>\ubb38\ub4dd \ud30c\uc77c\uc774\ub984\uc774, \nHello_drv.cpp \uac00 \uc544\ub2cc\uac00,,<br \/><br \/>. . . . . . . . .<br \/><br \/>\ub208\ubb3c\uc744 \ud758\ub9ac\uba74\uc11c <\/font><font color=\"#ff0000\">Hello_drv.c<\/font><font color=\"#565656\">\ub85c \ubc14\uafb8\uace0 \ucef4\ud30c\uc77c,<br \/><br \/>\uc131\uacf5, \uc774\uae00\uc744 \n\ubcf4\uc2dc\ub294 \ubd84\uc774 \uc788\uc73c\uc2dc\uba74 cpp \ub85c \ud558\uc9c0\ub9c8\uc2dc\uae38,,<br \/><br \/>\uc9f1\uac1c\ub4e4 \ud648\ud398\uc774\uc9c0\uae4c\uc9c0 \uac00\uc11c \ud574\uacb0 \ubcf8 \uac83\uc784,, \u3160\u3160<br \/><br \/>\uadf8\ub7fc \uc774\uc81c, \ub4dc\ub77c\uc774\ubc84 \n\uac00\uc9c0\uace0 \ub180\uc544\ubcfc\uae4c\ub098 . . . <\/font><\/div>\n<div class=\"article_post\">&nbsp;<\/div>\n<div class=\"article_post\"><font color=\"#565656\">\ucd9c\ucc98 : <a class=\"con_link\" href=\"http:\/\/ssmhz.tistory.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/ssmhz.tistory.com\n<\/a><\/font><\/div>\n","protected":false},"excerpt":{"rendered":"<p>VMWare \uc0c1\uc5d0 Windows XP sp2 \ub97c \uc62c\ub9ac\uace0 \uac70\uae30 Visual Studio 6.0 \uc744 \uc124\uce58\ud55c\ub4a4, \uac70\uae30\ub2e4\uac00 Device \uac1c\ubc1c \ud658\uacbd\uc744 \uad6c\ucd95\ud558\uc600\ub2e4. \uac04\ub2e8\ud55c \uc778\ud06c\ub8e8\ub4dc \ub514\ub809\ud130\ub9ac\uc640 \ub77c\uc774\ube0c\ub7ec\ub9ac \ub514\ub809\ud130\ub9ac\ub97c \ubcf4\uc790. \uc815\ub9d0 \uc0ac\uc18c\ud55c \uc2e4\uc218\ub4e4\uc774 \ub9ce\uc558\ub2e4. NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath){&nbsp; &nbsp; &nbsp; &#8230;&nbsp; &nbsp; &nbsp; RtlInitUnicodeString( &amp;DeviceName, L&#8221;\\\\Device\\\\HELLODRV&#8221; ); &nbsp; &nbsp; &nbsp; &#8230;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[24],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-development_winddk"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}