Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wmi and LogicalDevice List
Message
From
15/11/2007 10:35:03
 
 
To
15/11/2007 10:29:33
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01269129
Message ID:
01269170
Views:
12
Hmmm...
Strange.. No idea why..
But I had download this file from download section. Looks cool!
Now I must to try is this list return device which not listed in WMI..

Thank you
Denis

>I tried both addresses. They both return the same error:
>
>
>Your message did not reach some or all of the intended recipients.
>
>      Subject:	Get System Devices in Foxpro
>      Sent:	11/15/2007 10:28 AM
>
>The following recipient(s) cannot be reached:
>
>      'denis.gavrikov@mks-ag.de' on 11/15/2007 10:28 AM
>            552 5.7.0 Illegal Attachment h7sm2814440wxd
>
>
>
>I tried sending the files separately as well as inside of a .zip to both addresses. I think it may be a newer (or perhaps the same as) version of the in the one I put in UT downloads. Try the link I gave you.
>
>
>>Hi Tracy,
>>Thank you. please send it to denis.gavrikov@mks-ag.de or denis.gavrikov@mail.ru
>>
>>Denis
>>
>>>I tried to send you a project which does this. It consists of one prg and one form with the code in the form methods but your mail server keeps rejecting it with 'illegal attachment' messages returned.
>>>
>>>>Hi,
>>>>I need to return device list with DeviceId from the windows system devices. For this reason I try to use WMI
>>>>
>>>>
>>>>objService = Getobject("winmgmts:{impersonationLevel=impersonate}!\\.\root\CIMV2")
>>>>loPnPCollection = objService.ExecQuery("SELECT * FROM CIM_LogicalDevice")
>>>> For Each objPnP  In loPnPCollection
>>>>    lcDeviceName = objPnp.name
>>>>    lcDeviceId = objPnP.DeviceID
>>>> Next
>>>>
>>>>
>>>>All works perfect BUT....
>>>>The some devices which listed in the category "Other Devices" - and has "Question mark" icon - not listed by WMI.
>>>>I can't find a solution to get thouse devices and deviceId string.
>>>>
>>>>Any help!
>>>>Thanks
>>>>Denis
Previous
Reply
Map
View

Click here to load this message in the networking platform