You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > TWAIN Features > TwainUnloadSourceManager Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TwainUnloadSourceManager Method

Unloads the Data Source Manager and release the TWAIN32.DLL.

C#
public Boolean TwainUnloadSourceManager(
    IntPtr HANDLE
);
Visual Basic
Public Function TwainUnloadSourceManager(
    ByVal HANDLE As IntPtr
) As Boolean
Parameters
Parameters 
Description 
HANDLE 
A Window Handle IE: Me.Handle. In most applications you can use nothing but on Citrix and WTS, this must be a top-level window or a child of a top level window.  
Returns

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

This will fail if the Source Manager is open. 

If success, the twain state must be 1 (TWAIN_PRESESSION). 

To get the TWAIN state, use the TwainGetState() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.