def test_hNetrShareDelStart_hNetrShareDelCommit(self): dce, rpctransport = self.connect() shareInfo = srvs.SHARE_INFO_2() shareInfo['shi2_netname'] = 'BETUSHARE\x00' shareInfo['shi2_type'] = 0 shareInfo['shi2_remark'] = 'My Remark\x00' shareInfo['shi2_max_uses'] = 0xFFFFFFFF shareInfo['shi2_path'] = 'c:\\\x00' shareInfo['shi2_passwd'] = NULL resp = srvs.hNetrShareAdd(dce, 2, shareInfo) #resp.dump() resp = srvs.hNetrShareDelStart(dce, 'BETUSHARE\x00') #resp.dump() resp = srvs.hNetrShareDelCommit(dce, resp['ContextHandle'])