DEFINE_DEVPROPKEY

In Windows Vista and later versions of Windows, the DEFINE_DEVPROPKEY macro creates a DEVPROPKEY structure that represents a device property key in the unified device property model.

#ifdef INITGUID
#define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }, pid }
#else
#define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY name
#endif // INITGUID

Members

name

The name of a DEVPROPKEY structure that represents a device property key.

l

An unsigned long-typed variable that supplies the value of the data1 member of the fmtid member of the DEVPROPKEY structure.

w1

An unsigned short-type variable that supplies the value of the data2 member of the fmtid member of the DEVPROPKEY structure.

w2

An unsigned short-type variable that supplies the value of the data3 member of the fmtid member of the DEVPROPKEY structure.

b1

A byte-typed variable that supplies the value of the data4[0] member of the fmtid member of the DEVPROPKEY structure.

b2

A byte-typed variable that supplies the value of the data4[1] member of the fmtid member of the DEVPROPKEY structure.

b3

A byte-typed variable that supplies the value of the data4[2] member of the fmtid member of the DEVPROPKEY structure.

b4

A byte-typed variable that supplies the value of the data4[3] member of the fmtid member of the DEVPROPKEY structure.

b5

A byte-typed variable that supplies the value of the data4[4] member of the fmtid member of the DEVPROPKEY structure.

b6

A byte-typed variable that supplies the value of the data4[5] member of the fmtid member of the DEVPROPKEY structure.

b7

A byte-typed variable that supplies the value of the data4[6] member of the fmtid member of the DEVPROPKEY structure.

b8

A byte-typed variable that supplies the value of the data4[7] member of the fmtid member of the DEVPROPKEY structure.

pid

A DEVPROPID-typed variable that supplies the value of the pid (property identifier) member of the DEVPROPKEY structure. The property identifier must be greater than or equal to two.

Remarks

The DEFINE_DEVPROPKEY structure is part of the unified device property model.

The DEFINE_DEVPROPKEY macro can be used to create a DEVPROPKEY structure that represents a custom device property.

Requirements

Header

Devpropdef.h (include Devpropdef.h)

See also

DEVPROPKEY

 

 

Send comments about this topic to Microsoft

Show: