Beispiel #1
0
            /// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
            public override void Decode(NdrBuffer src)
            {
                src.Align(4);
                Length = src.Dec_ndr_long();
                int rootDirectoryp = src.Dec_ndr_long();
                int objectNamep    = src.Dec_ndr_long();

                Attributes         = src.Dec_ndr_long();
                SecurityDescriptor = src.Dec_ndr_long();
                int securityQualityOfServicep = src.Dec_ndr_long();

                if (rootDirectoryp != 0)
                {
                    src = src.Deferred;
                    RootDirectory.Decode(src);
                }
                if (objectNamep != 0)
                {
                    if (ObjectName == null)
                    {
                        ObjectName = new Rpc.Unicode_string();
                    }
                    src = src.Deferred;
                    ObjectName.Decode(src);
                }
                if (securityQualityOfServicep != 0)
                {
                    if (SecurityQualityOfService == null)
                    {
                        SecurityQualityOfService = new LsarQosInfo();
                    }
                    src = src.Deferred;
                    SecurityQualityOfService.Decode(src);
                }
            }
Beispiel #2
0
			/// <exception cref="SharpCifs.Dcerpc.Ndr.NdrException"></exception>
			public override void Decode(NdrBuffer src)
			{
				src.Align(4);
				Length = src.Dec_ndr_long();
				int rootDirectoryp = src.Dec_ndr_long();
				int objectNamep = src.Dec_ndr_long();
				Attributes = src.Dec_ndr_long();
				SecurityDescriptor = src.Dec_ndr_long();
				int securityQualityOfServicep = src.Dec_ndr_long();
				if (rootDirectoryp != 0)
				{
					src = src.Deferred;
					RootDirectory.Decode(src);
				}
				if (objectNamep != 0)
				{
					if (ObjectName == null)
					{
						ObjectName = new Rpc.Unicode_string();
					}
					src = src.Deferred;
					ObjectName.Decode(src);
				}
				if (securityQualityOfServicep != 0)
				{
					if (SecurityQualityOfService == null)
					{
						SecurityQualityOfService = new LsarQosInfo();
					}
					src = src.Deferred;
					SecurityQualityOfService.Decode(src);
				}
			}