It would be nice if this library was usable through COM, I actually have a third party COM object I have been using but it only supports a subset of the api. According to MSDN I will have to wait till the ominous ".NET Server" before I can use ADSI to access the terminal server specific portions of user configuration.
This struct stuff is very low level and nasty but it at least seems workable, probably more so (for me) than futzing with C headers. Thanks everyone, for you efforts. Now I get to go dig through MSDN(blech) and struct conversion stuff(also blech). -Mark On Tue, 2002-08-27 at 12:20, [EMAIL PROTECTED] wrote: > Hi Mark > > I dont know the calldll module, neither, but one way to call the > wtsapi32.dll is from Visual Basic. > There are a couple of articles on the MSDN library how to do that,e.g > Q292631 "HOWTO: Call WTSSetUserConfig() and WTSQueryUserConfig() from > Visual Basic" > Q253140 "HOWTO: Use WTSEnumerateProcesses from Visual Basic" > > So what is the reason to use SWIG? > Maybe it is also possible with Python COM, but when passing structs from > a different language to a DLL you have to take care on memory layout and > data type representations. > > Maybe it is possible to strip down the Header you initially mentionned > so it compiles with SWIG? > From the tests we did with SWIG one year ago I know there are a couple > of things that SWIG does not support > but sometimes it is possible to throw out all unneeded stuff and get it > compilable. > > Peter > > > -----Original Message----- > > From: Roach, Mark R. [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > ] > > Sent: Tuesday, August 27, 2002 5:38 PM > > To: [EMAIL PROTECTED] > > Subject: Re: FW: swig help with wtsapi32 > > > > > > That looks very cool. I actually tried using LoadLibrary and > > GetProcAddress manually with little success. If I can just figure out > > how to get constants and structs out of the dll this will work > > beautifully. (Anyone know how to do that? If not, I'll just > > have to keep > > poking at it) Thanks very much! > > > > -Mark > > > _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython