def test_hNetrShareAdd_hNetrShareDel(self): dce, rpctransport = self.connect() shareInfo = srvs.SHARE_INFO_2() shareInfo['shi2_netname'] = 'BETUSHARE\x00' shareInfo['shi2_type'] = srvs.STYPE_TEMPORARY 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.hNetrShareDel(dce, 'BETUSHARE\x00')
def test_hNetrShareAdd_hNetrShareDel(self): dce, rpctransport = self.connect() shareInfo = srvs.SHARE_INFO_2() shareInfo['shi2_netname'] = 'BETUSHARE\x00' shareInfo['shi2_type'] = srvs.STYPE_TEMPORARY 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.hNetrShareDel(dce,'BETUSHARE\x00')