connect.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:pupy 作者: ru-faraon 项目源码 文件源码
def Advise(self, pUnk):
        # Creates a connection to the client.  Simply allocate a new cookie,
        # find the clients interface, and store it in a dictionary.
        try:
            interface = pUnk.QueryInterface(self._connect_interfaces_[0],pythoncom.IID_IDispatch)
        except pythoncom.com_error:
            raise Exception(scode=olectl.CONNECT_E_NOCONNECTION)
        self.cookieNo = self.cookieNo + 1
        self.connections[self.cookieNo] = interface
        return self.cookieNo
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号