Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

IWiaItem (Interfaces)
 
.
Summary
The IWiaItem interface provides applications with the ability to query WIA devices to discover their capabilities. Each WIA device is represented as a hierarchical tree of IWiaItem objects.

C# Definition:

    [ComImport, Guid("4db1ad10-3391-11d2-9a33-00c04fa36145")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IWiaItem
    {
    void GetItemType(
        [Out] out int itemType);

    void AnalyzeItem(
        [In] int lFlags);

    void EnumChildItems(
        [Out, MarshalAs(UnmanagedType.Interface)] out object iEnumWiaItem);

    void DeleteItem(
        [In] int lFlags);

    void CreateChildItem(
        [In] int lFlags,
        [In, MarshalAs(UnmanagedType.BStr)] string strItemName,
        [In, MarshalAs(UnmanagedType.BStr)] string strFullItemName,
        [Out, MarshalAs(UnmanagedType.Interface)] out object iWiaItem);

    void EnumRegisterEventInfo(
        [In] int lFlags,
        [In] ref Guid eventGuid,
        [Out, MarshalAs(UnmanagedType.Interface)] out object iEnum);

    void FindItemByName(
        [In] int lFlags,
        [In, MarshalAs(UnmanagedType.BStr)] string strFullItemName,
        [Out, MarshalAs(UnmanagedType.Interface)] out object iWiaItem);

    void DeviceDlg(
        [In] IntPtr hwndParent,
        [In] int lFlags,
        [In] int lIntent,
        [Out] out int iItemCount,
        [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 128)] IWiaItem[] iWiaItem);

    void DeviceCommand(
        [In] int lFlags,
        [In] ref Guid cmdGuid,
        [In, Out, MarshalAs(UnmanagedType.Interface)] ref object iWiaItem);

    void GetRootItem(
        [Out, MarshalAs(UnmanagedType.Interface)] out object iWiaItem);

    void EnumDeviceCapabilities(
        [In] int lFlags,
        [Out, MarshalAs(UnmanagedType.Interface)] out object iEnumWIA_DEV_CAPS);

    void DumpItemData(
        [Out, MarshalAs(UnmanagedType.BStr)] out string strData);

    void DumpDrvItemData(
        [Out, MarshalAs(UnmanagedType.BStr)] out string strData);

    void DumpTreeItemData(
        [Out, MarshalAs(UnmanagedType.BStr)] out string strData);

    void Diagnostic(
        [In] int nSize,
        [In] byte[] buffer);
    }

VB Definition:

<ComImport> _
<Guid("TODO")> _
'TODO: Insert <InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _ if this doesn't derive from IDispatch
Interface IWiaItem
   TODO
End Interface

User-Defined Types:

None.

Notes:

None.

Documentation
IWiaItem on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions