Delphi & SetupDiXX & Registry routines

Hello,

Is there any opportunity to use Delphi in order to communicate with a
specific device interface using SetupDiEnumDeviceInterfaces(), and other
functions. Also, i would like to retrieve some information from specific
registry key using SetupDiOpenDeviceInterfaceRegKey… and RegOpenKeyEx…

Anybody can confirm that Delphi is ok and no problem for using it. Is
there any small example available on net?

Regards

Christian

Christian:

If you can properly convert the header files to import units there is no
problem, although
I have not used these functions. There are a number of structures that
need to be converted
to records. Things to watch for:

The functions must be defined as stdcall.

The records should be packed records.

Not to confuse var’s with pointers.

Delphi is OK for this application.

George Blat
NT with real time performance
8016 188th SW, Edmonds, WA 98026

phone: 425-775-7475
fax: 781-998-5940
mailto:xxxxx@ntrealtime.com

At 11:32 AM 9/18/2003, you wrote:
Hello,

Is there any opportunity to use Delphi in order to communicate with a
specific device interface using SetupDiEnumDeviceInterfaces(), and other
functions. Also, i would like to retrieve some information from specific
registry key using SetupDiOpenDeviceInterfaceRegKey… and RegOpenKeyEx…

Anybody can confirm that Delphi is ok and no problem for using it. Is
there any small example available on net?

Regards

Christian

Write a C++ ATL COM DLL around these APIs, then call it from Delphi. This is
maybe the best way.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Thursday, September 18, 2003 10:32 PM
Subject: [ntdev] Delphi & SetupDiXX & Registry routines

> Hello,
>
> Is there any opportunity to use Delphi in order to communicate with a
> specific device interface using SetupDiEnumDeviceInterfaces(), and other
> functions. Also, i would like to retrieve some information from specific
> registry key using SetupDiOpenDeviceInterfaceRegKey… and RegOpenKeyEx…
>
> Anybody can confirm that Delphi is ok and no problem for using it. Is
> there any small example available on net?
>
> Regards
>
> Christian
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com