public void Write(NDRWriter writer) { if (Info != null && Level != Info.Level) { throw new ArgumentException("Invalid SHARE_ENUM_STRUCT Level"); } writer.BeginStructure(); // SHARE_ENUM_STRUCT writer.WriteUInt32(Level); writer.BeginStructure(); // SHARE_ENUM_UNION writer.WriteUInt32(Info.Level); writer.WriteEmbeddedStructureFullPointer(Info); writer.EndStructure(); // SHARE_ENUM_UNION writer.EndStructure(); // SHARE_ENUM_STRUCT }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32(Entries); writer.WriteEmbeddedStructureFullPointer(SIDInfos); writer.EndStructure(); }
public override void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32((uint)PlatformID); writer.WriteEmbeddedStructureFullPointer(ServerName); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32((uint)this.Count); writer.WriteEmbeddedStructureFullPointer(Entries); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); // SHARE_INFO Union writer.WriteUInt32(Level); writer.WriteEmbeddedStructureFullPointer(Info); writer.EndStructure(); // SHARE_INFO Union }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32((uint)(Items == null ? 0 : Items.Count)); writer.WriteEmbeddedStructureFullPointer(Items); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt16((ushort)Use); writer.WriteUInt32(RelativeId); writer.WriteUInt32(DomainIndex); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteEmbeddedStructureFullPointer(NetName); ShareType.Write(writer); writer.WriteEmbeddedStructureFullPointer(Remark); writer.EndStructure(); }
public byte[] GetBytes() { NDRWriter writer = new NDRWriter(); writer.BeginStructure(); writer.WriteTopLevelUnicodeStringPointer(ServerName.StartsWith("\\\\") ? ServerName : "\\\\" + ServerName); writer.EndStructure(); return(writer.GetBytes()); }
public void Write(NDRWriter writer) { throw new NotImplementedException(); writer.BeginStructure(); writer.WriteUInt32(Entries); writer.WriteEmbeddedStructureFullPointer(Names); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt16((ushort)Use); //TODO verifty writer.WriteStructure(unicode_string); writer.WriteUInt32(DomainIndex); writer.EndStructure(); }
public override void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32(PlatformID); writer.WriteEmbeddedStructureFullPointer(ComputerName); writer.WriteEmbeddedStructureFullPointer(LanGroup); writer.WriteUInt32(VerMajor); writer.WriteUInt32(VerMinor); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32(Length); writer.WriteUInt32(0); writer.WriteUInt32(0); writer.WriteUInt32(Attributes); writer.WriteUInt32(0); writer.WriteUInt32(0); writer.EndStructure(); }
public void Write(NDRWriter writer) { if (Info != null && Level != Info.Level) { throw new ArgumentException("Invalid WKSTA_INFO Level"); } writer.BeginStructure(); writer.WriteUInt32(Level); writer.WriteEmbeddedStructureFullPointer(Info); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteEmbeddedStructureFullPointer(NetName); ShareType.Write(writer); writer.WriteEmbeddedStructureFullPointer(Remark); writer.WriteUInt32((uint)Permissions); writer.WriteUInt32(MaxUses); writer.WriteUInt32(CurrentUses); writer.WriteEmbeddedStructureFullPointer(Path); writer.WriteEmbeddedStructureFullPointer(Password); writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteUInt32((uint)SIDs.Count); if (SIDs != null) { foreach (SID sid in SIDs) { NDRSID ndrSid = new NDRSID(sid); writer.WriteEmbeddedStructureFullPointer(ndrSid); } } writer.EndStructure(); }
public void Write(NDRWriter writer) { writer.BeginStructure(); writer.WriteEmbeddedStructureFullPointer(NetName); writer.EndStructure(); }