> But maybe I completely misunderstand you and you want to return special 
> HRESULT
> values from the event method implementations in your client ???

Yes I think so.. It's the event handler I'm implementing... Found the
ReturnHRESULT exception after some digging, and it's probably what I'm
looking for (??)

Again it's the softUSB (DSF) stuff from microsoft. It gives you the
option to either handle all requests manually, or all by the
framework.

If you want some requests to be handled by the framework, the (my)
eventhandler should return E_NOTIMPL. (typed a bit fast there
previously when I said E_FAIL)

would raising ReturnHRESULT pose a problem for comtypes?

ie.
def myhandler(someparam):
  if someparam==i_like_it:
     return my, normal, values
  else:
      raise ReturnHRESULT(E_NOTIMPL, "Framework, do this for me please")


Throwing in another question at the end here:
from comtypes/_comobject.py:
# This code assumes that input args are always first, and output
# args are always last.  Have to check with the IDL docs if this
# is always correct.

are you still assuming that?  I have atleast found one object where
that's not true:
http://msdn.microsoft.com/en-us/library/bb201518.aspx

If you've changed it I'll stop working on my patch right now :)


-- 
Torbjørn Tyridal

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to