enumerazione ACX_OBJECTBAG_CONFIG_FLAGS (acxmisc.h)
L'enumerazione ACX_OBJECTBAG_CONFIG_FLAGS definisce la configurazione per acxObjectBag.
Sintassi
typedef enum _ACX_OBJECTBAG_CONFIG_FLAGS {
AcxObjectBagConfigNoFlags,
AcxObjectBagConfigEnableReads,
AcxObjectBagConfigEnableWrites,
AcxObjectBagConfigFailIfExist,
AcxObjectBagConfigOpenWithHandle,
AcxObjectBagConfigValidFlags
} ACX_OBJECTBAG_CONFIG_FLAGS;
Costanti
AcxObjectBagConfigNoFlags Indica che non sono impostati flag di configurazione. |
AcxObjectBagConfigEnableReads Indica che le letture sono abilitate. |
AcxObjectBagConfigEnableWrites Indica che le scritture sono abilitate. |
AcxObjectBagConfigFailIfExist Indica che se è già presente un OGGETTO ACXOBJECTBAG con la stessa identità, la creazione non riesce anziché aprire quella esistente. |
AcxObjectBagConfigOpenWithHandle Indica di aprire ACXOBJECTBAG il cui handle è specificato nella struttura di configurazione. |
AcxObjectBagConfigValidFlags Per la convalida interna, non usare . |
Osservazioni
Esempio
In questo esempio viene illustrato l'uso di ACX_OBJECTBAG_CONFIG_FLAGS.
GUID uniqueId = { 0 };
UNICODE_STRING uniqueIdStr = { 0 };
UNICODE_STRING pnpDeviceId = { 0 };
ACX_OBJECTBAG_CONFIG objBagCfg;
DECLARE_CONST_ACXOBJECTBAG_SYSTEM_PROPERTY_NAME(UniqueID);
ACX_OBJECTBAG_CONFIG_INIT(&objBagCfg);
objBagCfg.Handle = CircuitConfig->CompositeProperties;
objBagCfg.Flags |= AcxObjectBagConfigOpenWithHandle;
WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
ACXOBJECTBAG objBag = NULL;
RETURN_NTSTATUS_IF_FAILED(AcxObjectBagOpen(&attributes, &objBagCfg, &objBag));
Requisiti ACX
versione minima di ACX: 1.0
Per altre informazioni sulle versioni di ACX, vedere panoramica della versione ACX.
Fabbisogno
Requisito | Valore |
---|---|
intestazione | acxmisc.h |