Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WMI codes cannot run in Win Vista
Message
From
02/11/2008 00:54:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
WMI codes cannot run in Win Vista
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01358939
Message ID:
01358939
Views:
181
Hi all!
I have codes that run very good in Win XP, However, they cannot run in Win Vista with error:
"The procedure entry point ?BreakOnDbgAndRenterLoop@@YGKXZ could not be located in dynamic link library wbemcomn.dll"
Please help me to solve that problem.
Thanks
And these my codes:
LOCAL lcComputerName, loWMIService, loItems, loItem, lcMACAddress
lcComputerName = "."
loWMIService = GETOBJECT("winmgmts:\\" + lcComputerName + "\root\cimv2")
loItems = loWMIService.ExecQuery("Select * from Win32_NetworkAdapter",,48)
FOR EACH loItem IN loItems
lcMACAddress = loItem.MACAddress
IF !ISNULL(lcMACAddress)
? "MAC Address: " + loItem.MACAddress
ENDIF
ENDFOR
Next
Reply
Map
View

Click here to load this message in the networking platform