def get_share_info(self): level = self.get_info_level() if level == 2: return ndrutils.NDRPointer(self.get_bytes()[4:-4].tostring(), ShareInfoLevel2Entry) else: raise exceptions.Exception, "Share Info level not supported"
def __init__(self, aBuffer=None): ImpactPacket.Header.__init__(self, SAMRConnectHeader.__SIZE) self.__sptr = ndrutils.NDRPointer() self.set_server('') self.set_access_mask(0x2000000) if aBuffer: self.load_header(aBuffer)
def get_server(self): return ndrutils.NDRPointer(self.get_bytes()[:-4].tostring(), ndrutils.NDRString)