I was able to get a sample code from the internet about how I can get a list of users of a particular computer. Currently, I am having problem with the NetWkstaGetInfo function. I need to create a customized data type like the one written below. I wonder if we can do this in VFP? If anyone of you was able to use the said function from NetApi32, I will be very grateful to know how you were able to use the function successfully. So far, all the sample codes that I was able to get are written in VB or Pascal (I guess)
Private Type WKSTA_INFO_10
wki100_platform_id As Lon
pwki100_computername As Lon
pwki100_langroup As Lon
wki100_ver_major As Lon
wki100_ver_minor As Lon
pwki102_lanroot As Lon
wki102_logged_on_users As Lon
End Typ
They assign this "data type" to a variable like this way
nVariable = WKSTA_INFO_10
and access the values of each sub items this way
nVariable.pwki100_computername
as if the sub items are properties and the nVariable is an object..
Thanks,
Noy_P