Warning: Undefined array key 1 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505

Warning: Undefined array key 2 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 557

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930

Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
{"id":45,"date":"2008-03-20T17:15:00","date_gmt":"2008-03-20T17:15:00","guid":{"rendered":"http:\/\/www.yogindar.com\/news\/?p=45"},"modified":"2008-03-20T17:15:00","modified_gmt":"2008-03-20T17:15:00","slug":"understanding-device-names-and-symbolic-links","status":"publish","type":"post","link":"http:\/\/blog.yogindar.org\/?p=45","title":{"rendered":"Understanding Device Names and Symbolic Links"},"content":{"rendered":"

Introduction<\/span>
\u00a0\u00a0\u00a0 Today while having Lunch with my colleagues we had a discussion over symbolic file names in windows. My argument was it was a persistent file and so it should be a physical file system. But my friends argument was it cannot be a physical file since it cannot be opened, closed like a normal file in the file system. So this encouraged me to go into a little depth to understand what a symbolic link in windows.<\/p>\n

\u00a0\u00a0\u00a0 In windows there are two types of device names,\u00a0 Windows NT device names and MS-DOS device name. These names are located in the Windows NT Object Manager’s namespace. The Windows NT kernel and the kernel mode drivers use the NT device name and the Win32 programs use the MS-DOS device names and is a symbolic link to NT device name.<\/p>\n

NT Device names<\/span>
\u00a0\u00a0\u00a0 When a kernel mode driver is loaded, its initialization outine registers a device name with Windows NT Object Manager. (Use WinObj.exe from sysinternals to view all NT Device names in your system). These names have the format \\Device\\CDRom0, etc and can be found in the \\device drirectory of Object Manager’s namespace. <\/p>\n

\u00a0\u00a0\u00a0 Win32 programs access these device names using the MS-DOS device names such as A:, C:.<\/p>\n

MS DOS Device names<\/span>
\u00a0\u00a0\u00a0 These device name exists in Object Managers \\?? directory. Multiple MS-DOS Device names can point to a single NT device name.<\/p>\n

Symbolic Links<\/span>
\u00a0\u00a0\u00a0 Symbolic links created by system persist across computer restarts because they are stored in registry. These are the links created between MS-DOS device name and an NT device name.
Wait and watch for Vista…you will find these symbolic links are physical files.<\/p>\n

API<\/span>
QueryDosDevice – used to know the NT device name associated with MS-DOS device name.
DefineDosDevice – used to manipulate a symbolic link. Create a new or remove.<\/p>\n

Articles
<\/span><\/p>\n

INFO: Understanding Device Names and Symbolic Links<\/a><\/h1>\n
Blogged with the Flock Browser<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"

Introduction\u00a0\u00a0\u00a0 Today while having Lunch with my colleagues we had a discussion over symbolic file names in windows. My argument was it was a persistent file and so it should be a physical file system. But my friends argument was it cannot be a physical file since it cannot be opened, closed like a normal […]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,17,16],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-devicenames","category-symbolic-link","category-windows-internals"],"_links":{"self":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}