BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to detect hardware deviced ID with delphi

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment
View previous topic :: View next topic  
Author Message
Juan Araya
Guest





PostPosted: Mon May 30, 2005 3:05 pm    Post subject: How to detect hardware deviced ID with delphi Reply with quote




Good morning

How can I detect a hardware deviced ID using Delphi 5. I would like to be able to obtain the device ID of a modem or a network card and get an information similar to this one:

DeviceNPF_{BD0F95E8-97C8-413C-92B2-4237FBCB052A}

Thanks a lot in advanced

Juan Araya
Back to top
danny heijl
Guest





PostPosted: Tue May 31, 2005 4:07 pm    Post subject: Re: How to detect hardware deviced ID with delphi Reply with quote



Juan Araya schreef:

Quote:
How can I detect a hardware deviced ID using Delphi 5. I would like to be able to obtain the device ID of a modem or a network card and get an information similar to this one:

DeviceNPF_{BD0F95E8-97C8-413C-92B2-4237FBCB052A}

Use the setup api (pascal header translation available form Jedi):

- Get a device handle using SetupDiGetClassDevs.

- Use this handle to enumerate all devices using SetupDiEnumDeviceInfo.

- get the relevant device properties for each device with
SetupDiGetDeviceRegistryProperty.

The setup api functions are documented in the MS SDK on MSDN.

Danny
---


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.