From: Kerem Gümrükcü on
Hi,

just to make sure: What exactly is the size of a single element in
the lpImageBase array that is returned by the EnumDeviceDrivers?
Is it a DWORD? I guess so. I have to kno this because of translating
the function to a .NET PInvoke call,...

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."

From: Don Burn on
Well if you look at the sample in the SDK it is an LPVOID array. Using a
DWORD will get you in serious trouble on 64-bit.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply




"Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
news:OZleB1H$IHA.984(a)TK2MSFTNGP06.phx.gbl...
> Hi,
>
> just to make sure: What exactly is the size of a single element in
> the lpImageBase array that is returned by the EnumDeviceDrivers?
> Is it a DWORD? I guess so. I have to kno this because of translating
> the function to a .NET PInvoke call,...
>
> 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."


From: Kerem G�mr�kc� on
Hi Don,

>Well if you look at the sample in the SDK it is an LPVOID array. Using a
>DWORD will get you in serious trouble on 64-bit.

yes, you are right, thats why i wrote a wrapper arround the function, some
call that first checks the size of the DWORD representation on the platform
and then uses the right mannaged type to return the values,...

BTW, the application is not written for the 64 bit systems, not yet but
i am about to wrap all platform dependent stuff with wrappers. Thats
a lot of work, so i will do it step-by-step. At this moment its for 32bit
only,...

Thanks for your reply!


Regards

Kerem


--
--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

"Don Burn" <burn(a)stopspam.windrvr.com> schrieb im Newsbeitrag
news:uXEZI4H$IHA.2216(a)TK2MSFTNGP06.phx.gbl...
> Well if you look at the sample in the SDK it is an LPVOID array. Using a
> DWORD will get you in serious trouble on 64-bit.
>
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
>
>
>
> "Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
> news:OZleB1H$IHA.984(a)TK2MSFTNGP06.phx.gbl...
> > Hi,
> >
> > just to make sure: What exactly is the size of a single element in
> > the lpImageBase array that is returned by the EnumDeviceDrivers?
> > Is it a DWORD? I guess so. I have to kno this because of translating
> > the function to a .NET PInvoke call,...
> >
> > 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."
>
>


From: Kerem G�mr�kc� on
BTW, Don, do you know a way, how i can get all
the drivers(filesystem locations) and the inf-files for the
drivers with SetupDI* or CM_* PNP functions? Or
is there any other way to get them, to get them completely
and reliable?


TIA,...

Regards

Kerem

--
--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."


From: Don Burn on
I do not know how to do it (never spent the time to figure it out) but it
can be done, since the driverquery command does exactly that.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
news:%23OayBHI$IHA.2216(a)TK2MSFTNGP06.phx.gbl...
> BTW, Don, do you know a way, how i can get all
> the drivers(filesystem locations) and the inf-files for the
> drivers with SetupDI* or CM_* PNP functions? Or
> is there any other way to get them, to get them completely
> and reliable?
>
>
> TIA,...
>
> Regards
>
> Kerem
>
> --
> --
> -----------------------
> Beste Gr�sse / Best regards / Votre bien devoue
> Kerem G�mr�kc�
> Microsoft Live Space: http://kerem-g.spaces.live.com/
> Latest Open-Source Projects: http://entwicklung.junetz.de
> -----------------------
> "This reply is provided as is, without warranty express or implied."
>
>