IWiaItem2::GetItemType method
Gets an item's type information.
Syntax
HRESULT GetItemType(
[out] LONG *pItemType
);
Parameters
-
pItemType [out]
-
Type: LONG*
Receives a pointer to a LONG that contains a combination of type flags. See WIA Item Type Flags.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Every IWiaItem2 object in the hierarchical tree of objects associated with a Windows Image Acquisition (WIA) 2.0 hardware device has a specific data type. Item objects represent folders and files. Folders contain file objects. File objects contain data acquired by the device such as images and sounds. This method enables applications to identify the type of any item in a hierarchical tree of item objects in a device.
An item may have more than one type. For example, an item that represents an audio file will have the type attributes WiaItemTypeAudio | WiaItemTypeFile.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
IDL |
|