DEFINE_DEVPROPKEY

In Windows Vista e versioni successive di Windows, la macro DEFINE_DEVPROPKEY crea una struttura DEVPROPKEY che rappresenta una chiave della proprietà del dispositivo nel modello di proprietà unificata del dispositivo.

#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

Nome
Nome di una struttura DEVPROPKEY che rappresenta una chiave della proprietà del dispositivo.

l
Variabile long typed senza segno che fornisce il valore del membro data1 del membro fmtid della struttura DEVPROPKEY.

w1
Variabile di tipo breve senza segno che fornisce il valore del membro data2 del membro fmtid della struttura DEVPROPKEY.

w2
Variabile di tipo breve senza segno che fornisce il valore del membro data3 del membro fmtid della struttura DEVPROPKEY.

b1
Variabile tipizzata da byte che fornisce il valore del membro data4[0] del membro fmtid della struttura DEVPROPKEY.

b2
Variabile tipizzata da byte che fornisce il valore del membro data4[1] del membro fmtid della struttura DEVPROPKEY.

b3
Variabile tipizzata da byte che fornisce il valore del membro data4[2] del membro fmtid della struttura DEVPROPKEY.

b4
Variabile tipizzata da byte che fornisce il valore del membro data4[3] del membro fmtid della struttura DEVPROPKEY.

b5
Variabile tipizzata da byte che fornisce il valore del membro data4[4] del membro fmtid della struttura DEVPROPKEY.

b6
Variabile tipizzata da byte che fornisce il valore del membro data4[5] del membro fmtid della struttura DEVPROPKEY.

b7
Variabile tipizzata da byte che fornisce il valore del membro data4[6] del membro fmtid della struttura DEVPROPKEY.

b8
Variabile tipizzata da byte che fornisce il valore del membro data4[7] del membro fmtid della struttura DEVPROPKEY.

pid
Variabile tipizzata DEVPROPID che fornisce il valore del membro pid (identificatore di proprietà) della struttura DEVPROPKEY. L'identificatore della proprietà deve essere maggiore o uguale a due.

Remarks

La struttura DEFINE_DEVPROPKEY fa parte del modello di proprietà del dispositivo unificato.

La macro DEFINE_DEVPROPKEY può essere utilizzata per creare una struttura DEVPROPKEY che rappresenta una proprietà personalizzata del dispositivo.

Requirements

Header

Devpropdef.h (include Devpropdef.h)

Vedere anche

DEVPROPKEY