// wiadevd.h
typedef struct tagDEVICEDIALOGDATA {
DWORD cbSize;
HWND hwndParent;
IWiaItem *pIWiaItemRoot;
DWORD dwFlags;
LONG lIntent;
LONG lItemCount;
IWiaItem **ppWiaItems;
} DEVICEDIALOGDATA, *LPDEVICEDIALOGDATA, *PDEVICEDIALOGDATA;
View the official Windows Driver Kit DDI referenceNo description available.
The DEVICEDIALOGDATA structure contains all the data needed to implement a custom device dialog.
cbSizeSpecifies the size of this structure in bytes.
hwndParentSpecifies the handle to the parent window of the dialog.
pIWiaItemRootPoints to an IWiaItem interface that represents the valid root item in the application item tree. For more information about this interface, see the Windows SDK documentation.
dwFlagsSpecifies the flags passed to IWiaItem::DeviceDlg and IWiaDevMgr::GetImageDlg by the calling program. These methods are described in the Windows SDK documentation. The possible values for this member are WIA_DEVICE_DIALOG_SINGLE_IMAGE and WIA_DEVICE_DIALOG_USE_COMMON_UI (defined in Wiadef.h).
lIntentSpecifies the intents passed to IWiaItem::DeviceDlg and IWiaDevMgr::GetImageDlg by the calling program (see the Windows SDK documentation).
lItemCountSpecifies the number of items in the array to which ppIWiaItems points.
ppWiaItemsArray of IWiaItem interface pointers. Array must
The DEVICEDIALOGDATA structure is used by the IWiaUIExtension::DeviceDialog method.
The array specified in ppIWiaItems must be allocated using CoTaskMemAlloc. All interface pointers indicated in the array must be initialized using the AddRef COM method. See the Windows SDK documentation for descriptions of these functions.
The IWiaPropertyStorage interface is used to access information about the IWiaItem object's properties. Applications must query an item to obtain its IWiaPropertyStorage interface. See the Windows SDK documentation for descriptions of this interface.