Hi there,

Isn't it possible to create/open a handle to the graphic
card?
There is a symbolic link named "\\.\Display1" that links
to the named Function Device Object (FDO) of the graphic
card (\Device\Video0), but when I try the following:

HANDLE hHandle = CreateFile(
"\\\\.\\Display1",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
0,
NULL);

"hHandel" is set to "invalid handle" (0xffffffff) and
GetLastError() returns "Access is denied" (5).

All I want is to get a handle to the graphic card so that
I can send some IOCTL's to it.
Isn't it possible?

Thanks and regards,
Kent.

Re: Handel to "\\.\Display1" by Shawlee

Shawlee
Fri Sep 05 19:28:17 CDT 2003

You have to use ExtEscape to send the control information to do that.

Shawlee Xiong

"Kent W." <kew1@tiscali.dk> wrote in message
news:1f4601c373ad$583f0f50$a101280a@phx.gbl...
> Hi there,
>
> Isn't it possible to create/open a handle to the graphic
> card?
> There is a symbolic link named "\\.\Display1" that links
> to the named Function Device Object (FDO) of the graphic
> card (\Device\Video0), but when I try the following:
>
> HANDLE hHandle = CreateFile(
> "\\\\.\\Display1",
> GENERIC_READ | GENERIC_WRITE,
> FILE_SHARE_READ | FILE_SHARE_WRITE,
> NULL,
> OPEN_EXISTING,
> 0,
> NULL);
>
> "hHandel" is set to "invalid handle" (0xffffffff) and
> GetLastError() returns "Access is denied" (5).
>
> All I want is to get a handle to the graphic card so that
> I can send some IOCTL's to it.
> Isn't it possible?
>
> Thanks and regards,
> Kent.
>