Hi,
I am trying to retrieve basic data from video driver via ExtEscape.
But the problem is I am getting blue screen of death.
I have a data structure
typedef struct _DispCmdQueue {
RECTL queue[2000];
INT queueHeadIndex, queueTailIndex;
INT queueSize;
} RectQueue, *PRectQueue;
In the main function I am creating a
RectQueue rectQueue;
Then I am calling the driver
ExtEscape(hdc,0,0,NULL, sizeof(rectQueue), (char *)&rectQueue);
And in the driver I am trying to set one field of the structure like that
ULONG
DrvEscape(
IN SURFOBJ *pso,
IN ULONG iEsc,
IN ULONG cjIn,
IN PVOID pvIn,
IN ULONG cjOut,
OUT PVOID pvOut)
{
PRectQueue userPRectQueue = (PRectQueue) pvOut;
userPRectQueue->queueTailIndex = 1;
}
But I am getting blue screen and machine needs reboot.
Any suggestion.
Sincerely,
Omer