[python-win32] How to wrap VARIANT_BOOL
Mark Hammond
mhammond at skippinet.com.au
Thu Sep 10 01:19:57 CEST 2009
On 10/09/2009 12:55 AM, Arve Knudsen wrote:
>
>
> On Wed, Sep 9, 2009 at 1:36 PM, Mark Hammond <skippy.hammond at gmail.com
> <mailto:skippy.hammond at 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...
Cheers,
Mark
More information about the python-win32
mailing list