No navigation frame on the left?  Click here.

DefineDosDevice/QueryDosDevice

 

This little utility demonstrates querying and setting "DOS" device names, the aliases NT assigns to internal device names. Note that this is one of the few Unicode samples on this site; to compile, please use

cl -GX -W3 -MD devlink.cpp -link advapi32.lib user32.lib -entry:wmainCRTStartup

or something similar.

devlink.cpp, 4 KB, DefineDosDevice() and QueryDosDevice()