func (id *ADAPTER_IDENTIFIER) GetDescription() string {
	if id == nil {
		return ""
	}
	return zeroTerminatedString(id.Description[:])
}
GetDescription returns the Description member as a Go string with trailing 0s
removed.
package d3d9
import "unsafe"
const MAX_DEVICE_IDENTIFIER_STRING = 512
type ADAPTER_IDENTIFIER struct {
	Driver           [MAX_DEVICE_IDENTIFIER_STRING]byte
	Description      [MAX_DEVICE_IDENTIFIER_STRING]byte
	DeviceName       [32]byte
	DriverVersion    int64
	VendorId         uint32
	DeviceId         uint32
	SubSysId         uint32
	Revision         uint32
	DeviceIdentifier GUID
	WHQLLevel        uint32
}
func zeroTerminatedString(b []byte) string {
	for i := range b {
		if b[i] == 0 {
			return string(b[:i])
		}
	}
	return string(b)
}
func (id *ADAPTER_IDENTIFIER) GetDriver() string {
	if id == nil {
		return ""
	}
	return zeroTerminatedString(id.Driver[:])
}