import win32com.server.policy
class DesignatedWrapPolicy(MappedWrapPolicy) def _invoke_(self, dispid, lcid, wFlags, args) def _wrap_(self, ob) # Methods inherited by DesignatedWrapPolicy from MappedWrapPolicy def _getidsofnames_(self, names, lcid) # Methods inherited by DesignatedWrapPolicy from BasicWrapPolicy def _CreateInstance_(self, clsid, reqIID) def _GetIDsOfNames_(self, names, lcid) def _Invoke_(self, dispid, lcid, wFlags, args) def _QueryInterface_(self, iid) def __init__(self, object) def _query_interface_(self, iid)
alias DefaultPolicy = DesignatedWrapPolicy
A MappedWrappedPolicy which allows the wrapped object to specify, via certain special named attributes, exactly which methods and properties are exposed.
All a wrapped object need do is provide the special attributes, and the policy will handle everything else.
Attributes:
Creates a new instance of a wrapped object
This method looks up a "win32com.server.policy.regSpec" % clsid entry in the registry (using DefaultPolicy)
The main COM entry-point for GetIDsOfNames.
This checks the validity of the arguments, and calls the _getidsofnames_ helper.
The main COM entry-point for Invoke.
This calls the _invoke_ helper.
The main COM entry-point for QueryInterface.
This checks the _com_interfaces_ attribute and if the interface is not specified there, it calls the derived helper _query_interface_
Initialise the policy object
Params:
Called if the object does not provide the requested interface in _com_interfaces, and does not provide a _query_interface_ handler.
Returns a result to the COM framework indicating the interface is not supported.
Copyright © Greg Stein and Mark Hammond
All Rights Reserved
Comments to author: dev@null
Generated: Sun Apr 20 1997