/// <summary> /// Encode this PDU to the PduMarshaler. /// </summary> /// <param name="marshaler">This is used to encode the fields of this PDU.</param> public override void Encode(PduMarshaler marshaler) { base.Encode(marshaler); marshaler.WriteUInt32(cchDeviceDescription); marshaler.WriteUnicodeString(DeviceDescription); marshaler.WriteUInt32(HResult); }
/// <summary> /// Encode this PDU to the PduMarshaler. /// </summary> /// <param name="marshaler">This is used to encode the fields of this PDU.</param> public override void Encode(PduMarshaler marshaler) { base.Encode(marshaler); marshaler.WriteUInt32(NumUsbDevice); marshaler.WriteUInt32(UsbDevice); marshaler.WriteUInt32(cchDeviceInstanceId); marshaler.WriteUnicodeString(DeviceInstanceId); marshaler.WriteUInt32(cchHwIds); if (cchHwIds != 0) { marshaler.WriteUnicodeString(HardwareIds); } marshaler.WriteUInt32(cchCompatIds); if (cchCompatIds != 0) { marshaler.WriteUnicodeString(CompatibilityIds); } marshaler.WriteUInt32(cchContainerId); marshaler.WriteUnicodeString(ContainerId); marshaler.WriteBytes(UsbDeviceCapabilities); }
/// <summary> /// Encode this PDU to the PduMarshaler. /// </summary> /// <param name="marshaler">This is used to encode the fields of this PDU.</param> public override void Encode(PduMarshaler marshaler) { base.Encode(marshaler); marshaler.WriteUnicodeString(bString); }