コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }