InstallWiaDevice function

The InstallWiaDevice function installs a Windows Image Acquisition (WIA) device as root-enumerated device. It may popup a security warning if any installing file or coinstaller is not digitally signed and trusted.

Syntax

DWORD WINAPI InstallWiaDevice(
  _In_ PWIADEVICEINSTALL *pWiaDeviceInstall
);

Parameters

pWiaDeviceInstall [in]

Type: PWIADEVICEINSTALL*

Pointer to a WIADEVICEINSTALL structure. The szFriendlyName member of the structure must be set to the actual device FriendlyName.

Return value

Type: DWORD

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, it returns a Win32 error code.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Wia.h
Library
Wiaguid.lib