From: Don Burn on
Which is why in various include files Microsoft created ULONG_PTR which is
32 or 64 bit depending on the OS.


--
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:%236vucGJ$IHA.4380(a)TK2MSFTNGP02.phx.gbl...
>H i Stefan,
>
>
>>There is no need to check for the size of a DWORD, it is 4 Bytes on both
>>x86 Windows and x64 Windows
>
> ok thanks, but i will remain on the wrapper, who knows what
> the future brings,...
>
>
> 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."
> "Stefan Kuhr" <kustt110(a)gmx.li> schrieb im Newsbeitrag
> news:%23qXV0aI$IHA.1016(a)TK2MSFTNGP03.phx.gbl...
>> Kerem,
>>
>> Kerem G�mr�kc� wrote:
>>> 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,...
>>>
>>
>> There is no need to check for the size of a DWORD, it is 4 Bytes on both
>> x86 Windows and x64 Windows.
>>
>> --
>> S
>>
>>
>


From: Don Burn on
Try driverquery /si


--
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:utJpdGJ$IHA.4380(a)TK2MSFTNGP02.phx.gbl...
> Hi Don,
>
>>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.
>
> i run driverquery and it display the drivers name, its display name, its
> type
> and some time stamp information, but nothing for a INI, the drivers
> path,etc,...
>
> EnumDeviceDrivers returns all Drivers on the System, but how will i get
> the
> INI for that,...
>
> 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."
> "Don Burn" <burn(a)stopspam.windrvr.com> schrieb im Newsbeitrag
> news:ePKlGLI$IHA.4816(a)TK2MSFTNGP06.phx.gbl...
>>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."
>>>
>>>
>>
>>
>


From: Pavel A. on
Command driverquery /SI lists drivers installed as _packages_
(using INFs).

--PA

Kerem Gümrükcü wrote:
> Hi Don,
>
>> 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.
>
> i run driverquery and it display the drivers name, its display name, its
> type
> and some time stamp information, but nothing for a INI, the drivers
> path,etc,...
>
> EnumDeviceDrivers returns all Drivers on the System, but how will i get the
> INI for that,...
>
> Regards
>
> Kerem
>

From: Pavel A. on
Don Burn wrote:
> Which is why in various include files Microsoft created ULONG_PTR which is
> 32 or 64 bit depending on the OS.

Why they invented yet another name for size_t or ptrdiff_t ?
It is also misleading, people (especially those raised on linux) tend to
think that ULONG_PTR is pointer to ulong.

--PA
From: Kerem Gümrükcü on
Yeah, nice, but how does it do that?
I am pretty sure, that it will work with
SetupDiGetDriverInfoDetail but for whatever
reason te call fails over .NET Layer...

--
-----------------------
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."
"Don Burn" <burn(a)stopspam.windrvr.com> schrieb im Newsbeitrag
news:OH6B5JJ$IHA.4816(a)TK2MSFTNGP06.phx.gbl...
> Try driverquery /si
>
>
> --
> 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:utJpdGJ$IHA.4380(a)TK2MSFTNGP02.phx.gbl...
>> Hi Don,
>>
>>>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.
>>
>> i run driverquery and it display the drivers name, its display name, its
>> type
>> and some time stamp information, but nothing for a INI, the drivers
>> path,etc,...
>>
>> EnumDeviceDrivers returns all Drivers on the System, but how will i get
>> the
>> INI for that,...
>>
>> 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."
>> "Don Burn" <burn(a)stopspam.windrvr.com> schrieb im Newsbeitrag
>> news:ePKlGLI$IHA.4816(a)TK2MSFTNGP06.phx.gbl...
>>>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."
>>>>
>>>>
>>>
>>>
>>
>
>