On Thu, Sep 10, 2009 at 1:19 AM, Mark Hammond <mhamm...@skippinet.com.au>wrote:
> On 10/09/2009 12:55 AM, Arve Knudsen wrote: > >> >> >> On Wed, Sep 9, 2009 at 1:36 PM, Mark Hammond <skippy.hamm...@gmail.com >> <mailto:skippy.hamm...@gmail.com>> wrote: >> >> On 8/09/2009 9:55 PM, Arve Knudsen wrote: >> >> Hi >> >> I don't know if this will get me much in terms of a response, >> considering my questions about PyWin32 and ADSI up till now, but >> I'll >> give it a shot :p I am trying to extend win32com.adsi.PyIADsUser >> (through PyIADsUser.i) with a couple of methods that use the >> VARIANT_BOOL type, how can I wrap this (VARIANT_BOOL) in >> PyWin32/swig? >> >> >> I'm afraid I don't understand the question... >> >> >> I meant that I want to extend PyIADsUser.i to wrap also methods >> getPasswordRequired(VARIANT_BOOL*) and >> putPasswordRequired(VARIANT_BOOL). How do I go about this? Apparently, >> VARIANT_BOOL is not directly supported, since simply declaring the >> function signatures in PyIADsUser.i does not work (can't test here, but >> I recall it was in relation to the VARIANT_BOOL type). >> > > I'm afraid you still need to be more specific. Note that VARIANT_BOOL is > typedef'd to a 'short' in WTypes.h... > I'm not quite sure how I can be more specific .. I've stated the problem, i.e. modify PyWin32 to also wrap IADsUser methods getPasswordRequired(VARIANT_BOOL*) and putPasswordRequired(VARIANT_BOOL). If VARIANT_BOOL in reality corresponds to short though, I guess I should solve this by declaring this typedef to swig (in PyIADsUser.i). Thanks, Arve
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32