Exemplo n.º 1
0
 internal unsafe void MarshalTo(NATIVE *di)
 {
     di->dwSize       = dwSize;
     di->guidInstance = guidInstance;
     di->guidProduct  = guidProduct;
     di->dwDevType    = dwDevType;
     di->tszInstanceName.SetStringUni(tszInstanceName);
     di->tszProductName.SetStringUni(tszProductName);
     di->guidFFDriver = guidFFDriver;
     di->wUsagePage   = wUsagePage;
     di->wUsage       = wUsage;
 }
Exemplo n.º 2
0
 internal unsafe DIDEVICEINSTANCE(NATIVE *di)
 {
     dwSize          = di->dwSize;
     guidInstance    = di->guidInstance;
     guidProduct     = di->guidProduct;
     dwDevType       = di->dwDevType;
     tszInstanceName = di->tszInstanceName.GetStringUni();
     tszProductName  = di->tszProductName.GetStringUni();
     guidFFDriver    = di->guidFFDriver;
     wUsagePage      = di->wUsagePage;
     wUsage          = di->wUsage;
 }
Exemplo n.º 3
0
 internal unsafe void MarshalFrom(NATIVE *ai)
 {
     this.Driver           = ai->Driver.GetStringAnsi();
     this.Description      = ai->Description.GetStringAnsi();
     this.DeviceName       = ai->DeviceName.GetStringAnsi();
     this.DriverVersion    = ai->DriverVersion;
     this.VendorId         = ai->VendorId;
     this.DeviceId         = ai->DeviceId;
     this.SubSysId         = ai->SubSysId;
     this.Revision         = ai->Revision;
     this.DeviceIdentifier = ai->DeviceIdentifier;
     this.WHQLLevel        = ai->WHQLLevel;
 }
Exemplo n.º 4
0
 internal unsafe void MarshalTo(NATIVE *ai)
 {
     ai->Driver.SetStringAnsi(this.Driver);
     ai->Description.SetStringAnsi(this.Description);
     ai->DeviceName.SetStringAnsi(this.DeviceName);
     ai->DriverVersion    = this.DriverVersion;
     ai->VendorId         = this.VendorId;
     ai->DeviceId         = this.DeviceId;
     ai->SubSysId         = this.SubSysId;
     ai->Revision         = this.Revision;
     ai->DeviceIdentifier = this.DeviceIdentifier;
     ai->WHQLLevel        = this.WHQLLevel;
 }
Exemplo n.º 5
0
 internal unsafe D3DADAPTER_IDENTIFIER9(NATIVE *ai)
 {
     MarshalFrom(ai);
 }