Yes, you are definitively right. (Dumpbin output says QueryDosDeviceA and QueryDosDeviceW are supported in NT 4)
thanks a lot!
Julian
De: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] En nombre de Toby Opferman
Enviado el: quarta-feira, 21 de novembro de 2007 08:51
Para: Windows System Software Devs Interest List
Asunto: RE: [ntdev] Get device name from device letters
I believe it is supported on NT4 even though MSDN has omitted it. Also do not link the kernel with a user mode application which is likely why you were getting access violations. User mode applications should be linking firstly against kernel32/ntdll for user mode interfaces for kernel functionality.
From: Juli?n de Navascu?s Melero [mailto:xxxxx@gmv.com]
Sent: Tuesday, November 20, 2007 11:15 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Get device name from device letters
Yes, but according with MSDN QueryDosDevice is not available en NT4
thanks!
Julian
De: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] En nombre de Peter Wieland
Enviado el: ter?a-feira, 20 de novembro de 2007 22:17
Para: Windows System Software Devs Interest List
Asunto: RE:[ntdev] Get device name from device letters
Have you looked at QueryDosDevice? Given a symbolic link name (say “C:”) it should give you the target of the link.
-p
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Juli?n de Navascu?s Melero
Sent: Tuesday, November 20, 2007 2:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Get device name from device letters
Hello,
I can get device names from symbolic link name opening a symbolic link object and querying with ZwQuerySymbolicLinkObject from kernel-mode.
I would like to use the same idea to do this in a small usermode application to show devices names and assigned device letters. Is this possible?
This app compiles and links ntoskrnl.lib with no warnings or errors but gives a 0xC0000005 “memory access violation” when I try to run it.
I should say its for Nt4 and I cant use newer APIs to get it.
Any ideas or suggested lectures?
Thanks
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informaci?n clasificada por su emisor como confidencial en el marco de su Sistema de Gesti?n de Seguridad de la Informaci?n siendo para uso exclusivo del destinatario, quedando prohibida su divulgaci?n copia o distribuci?n a terceros sin la autorizaci?n expresa del remitente. Si Vd. ha recibido este mensaje err?neamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboraci?n.
This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informaci?n clasificada por su emisor como confidencial en el marco de su Sistema de Gesti?n de Seguridad de la Informaci?n siendo para uso exclusivo del destinatario, quedando prohibida su divulgaci?n copia o distribuci?n a terceros sin la autorizaci?n expresa del remitente. Si Vd. ha recibido este mensaje err?neamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboraci?n.
This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
puede contener informacion clasificada por su emisor como confidencial
en el marco de su Sistema de Gestion de Seguridad de la
Informacion siendo para uso exclusivo del destinatario, quedando
prohibida su divulgacion copia o distribucion a terceros sin la
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboracion.
This message including any attachments may contain confidential
information, according to our Information Security Management System,
and intended solely for a specific individual to whom they are addressed.
Any unauthorised copy, disclosure or distribution of this message
is strictly forbidden. If you have received this transmission in error,
please notify the sender immediately and delete it.