Table of Contents

Struct PropVariant

Namespace
NAudio.CoreAudioApi.Interfaces
Assembly
NAudio.Wasapi.dll

from Propidl.h. http://msdn.microsoft.com/en-us/library/aa380072(VS.85).aspx contains a union so we have to do an explicit layout

public struct PropVariant
Inherited Members

Fields

bVal

bVal.

public byte bVal

Field Value

byte

blobVal

Binary large object.

public Blob blobVal

Field Value

Blob

boolVal

boolVal.

public short boolVal

Field Value

short

cVal

cVal.

public sbyte cVal

Field Value

sbyte

dblVal

dblVal.

public double dblVal

Field Value

double

filetime

Date time.

public FILETIME filetime

Field Value

FILETIME

fltVal

fltVal.

public float fltVal

Field Value

float

hVal

hVal.

public long hVal

Field Value

long

iVal

iVal.

public short iVal

Field Value

short

intVal

intVal.

public int intVal

Field Value

int

lVal

lVal.

public int lVal

Field Value

int

pointerValue

Pointer value.

public nint pointerValue

Field Value

nint

scode

scode.

public int scode

Field Value

int

uhVal

uhVal.

public long uhVal

Field Value

long

uiVal

uiVal.

public ushort uiVal

Field Value

ushort

uintVal

uintVal.

public uint uintVal

Field Value

uint

ulVal

ulVal.

public uint ulVal

Field Value

uint

vt

Value type tag.

public short vt

Field Value

short

wReserved1

Reserved1.

public short wReserved1

Field Value

short

wReserved2

Reserved2.

public short wReserved2

Field Value

short

wReserved3

Reserved3.

public short wReserved3

Field Value

short

Properties

DataType

Gets the type of data in this PropVariant

public VarType DataType { get; }

Property Value

VarType

Value

Property value

public object Value { get; }

Property Value

object

Methods

Clear(nint)

Calls ole32!PropVariantClear on an unmanaged PROPVARIANT buffer to release any COM-allocated resources (LPWSTR, BLOB, CLSID) and zero out the variant type.

public static void Clear(nint ptr)

Parameters

ptr nint

FromLong(long)

Creates a new PropVariant containing a long value

public static PropVariant FromLong(long value)

Parameters

value long

Returns

PropVariant

GetBlobAsArrayOf<T>()

Interprets a blob as an array of structs

public T[] GetBlobAsArrayOf<T>()

Returns

T[]

Type Parameters

T