Dec_ndr_string() public method

public Dec_ndr_string ( ) : string
return string
Ejemplo n.º 1
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				int netnamep = src.Dec_ndr_long();
				if (netnamep != 0)
				{
					src = src.Deferred;
					Netname = src.Dec_ndr_string();
				}
			}
Ejemplo n.º 2
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				int entryPathp = src.Dec_ndr_long();
				if (entryPathp != 0)
				{
					src = src.Deferred;
					EntryPath = src.Dec_ndr_string();
				}
			}
Ejemplo n.º 3
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				int netnamep = src.Dec_ndr_long();
				Type = src.Dec_ndr_long();
				int remarkp = src.Dec_ndr_long();
				Permissions = src.Dec_ndr_long();
				MaxUses = src.Dec_ndr_long();
				CurrentUses = src.Dec_ndr_long();
				int pathp = src.Dec_ndr_long();
				int passwordp = src.Dec_ndr_long();
				SdSize = src.Dec_ndr_long();
				int securityDescriptorp = src.Dec_ndr_long();
				if (netnamep != 0)
				{
					src = src.Deferred;
					Netname = src.Dec_ndr_string();
				}
				if (remarkp != 0)
				{
					src = src.Deferred;
					Remark = src.Dec_ndr_string();
				}
				if (pathp != 0)
				{
					src = src.Deferred;
					Path = src.Dec_ndr_string();
				}
				if (passwordp != 0)
				{
					src = src.Deferred;
					Password = src.Dec_ndr_string();
				}
				if (securityDescriptorp != 0)
				{
					src = src.Deferred;
					int securityDescriptors = src.Dec_ndr_long();
					int securityDescriptori = src.Index;
					src.Advance(1 * securityDescriptors);
					if (SecurityDescriptor == null)
					{
						if (securityDescriptors < 0 || securityDescriptors > unchecked(0xFFFF))
						{
							throw new NdrException(NdrException.InvalidConformance);
						}
						SecurityDescriptor = new byte[securityDescriptors];
					}
					src = src.Derive(securityDescriptori);
					for (int i = 0; i < securityDescriptors; i++)
					{
						SecurityDescriptor[i] = unchecked((byte)src.Dec_ndr_small());
					}
				}
			}
Ejemplo n.º 4
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				Flags = src.Dec_ndr_long();
				int dfsNamep = src.Dec_ndr_long();
				if (dfsNamep != 0)
				{
					src = src.Deferred;
					DfsName = src.Dec_ndr_string();
				}
			}
Ejemplo n.º 5
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				int pathp = src.Dec_ndr_long();
				int commentp = src.Dec_ndr_long();
				State = src.Dec_ndr_long();
				NumStores = src.Dec_ndr_long();
				int storesp = src.Dec_ndr_long();
				if (pathp != 0)
				{
					src = src.Deferred;
					Path = src.Dec_ndr_string();
				}
				if (commentp != 0)
				{
					src = src.Deferred;
					Comment = src.Dec_ndr_string();
				}
				if (storesp != 0)
				{
					src = src.Deferred;
					int storess = src.Dec_ndr_long();
					int storesi = src.Index;
					src.Advance(12 * storess);
					if (Stores == null)
					{
						if (storess < 0 || storess > unchecked(0xFFFF))
						{
							throw new NdrException(NdrException.InvalidConformance);
						}
						Stores = new DfsStorageInfo[storess];
					}
					src = src.Derive(storesi);
					for (int i = 0; i < storess; i++)
					{
						if (Stores[i] == null)
						{
							Stores[i] = new DfsStorageInfo();
						}
						Stores[i].Decode(src);
					}
				}
			}
Ejemplo n.º 6
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				State = src.Dec_ndr_long();
				int serverNamep = src.Dec_ndr_long();
				int shareNamep = src.Dec_ndr_long();
				if (serverNamep != 0)
				{
					src = src.Deferred;
					ServerName = src.Dec_ndr_string();
				}
				if (shareNamep != 0)
				{
					src = src.Deferred;
					ShareName = src.Dec_ndr_string();
				}
			}