Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening Handle to a arbitrary "installed" device on the system,...

2 views
Skip to first unread message

Kerem Gümrükcü

unread,
Oct 4, 2008, 5:47:09 PM10/4/08
to
Hi,

is it possible to open a handle to an arbitrary device
displayed/installed on the system. I know how to use
CreateFile and DeviceIoControl to access installed
hardware, but the point is: Is it possible to open a
device by only knowing its Physical Object Name,
without knowing what kind of device it really is?
Is there any way to do this from user mode with
something like CreateFile or some undocumented
NT API?

I have PDO Names like:

\Device\Ide\IdeDeviceP1T0L0-e
\Device\Scsi\ah4schpa1Port2Path0Target0Lun0
\Device\0000006b

Any way to get some handle in user mode,...

Thanks in advance...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Christian ASTOR

unread,
Oct 5, 2008, 1:37:44 AM10/5/08
to
Kerem Gümrükcü wrote:

> is it possible to open a handle to an arbitrary device
> displayed/installed on the system. I know how to use
> CreateFile and DeviceIoControl to access installed
> hardware, but the point is: Is it possible to open a
> device by only knowing its Physical Object Name,
> without knowing what kind of device it really is?
> Is there any way to do this from user mode with
> something like CreateFile or some undocumented
> NT API?
>
> I have PDO Names like:
>
> \Device\Ide\IdeDeviceP1T0L0-e
> \Device\Scsi\ah4schpa1Port2Path0Target0Lun0
> \Device\0000006b
>
> Any way to get some handle in user mode,...

e.g. with NtOpenFile()

Kerem Gümrükcü

unread,
Oct 5, 2008, 3:42:38 AM10/5/08
to
Thanks a million!

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

"Christian ASTOR" <cast...@club-internet.fr> schrieb im Newsbeitrag
news:48e852a6$0$7932$7a62...@news.club-internet.fr...

0 new messages