[python-win32] How to wrap VARIANT_BOOL
arve.knudsen at gmail.com
Thu Sep 10 07:47:02 CEST 2009
On Thu, Sep 10, 2009 at 1:19 AM, Mark Hammond <mhammond at 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.hammond at gmail.com
>> <mailto:skippy.hammond at gmail.com>> wrote:
>> On 8/09/2009 9:55 PM, Arve Knudsen wrote:
>> 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
>> 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
>> 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).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-win32