Monthly Archives: July 2005

This VFP class will return a populated VFP object reflecting an instance of the specified WMI class: if you're using VFP9 you benefit from the correct capitalisation when using intellisense, as it creates _memberdata for all the class properties, which is handy. Not so good for previous versions, but I don't know enough about intellisense scripting know whether it can be done via that route. Or about how to use the resulting object in a method window, which would make it much more useful.

define class WMIWrapper as relation

	cClass = "WIN32_OperatingSystem"
	oClass = .null.
	cMemberData = ""

	procedure generate… Continue reading