LockContainer method (Twain Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int LockContainer(pTW_CAPABILITY pCapability, void * ppContainer);

Delphi Syntax

Function LockContainer (pCapability: pTW_CAPABILITY; ppContainer: Pointer ): L_INT;

Overview

Refer to How to Work with the Containers.

Remarks

Gets the container information for the specified capability.

This method is used to lock the container present in the TW_CAPABILITY structure. For more information on the TW_CAPABILITY structure, refer to the Twain 1.9 Specification, available at www.twain.org.

Once the user has the pointer to the container, the container may be changed. When the user has finished changing the container he or she must call the UnlockContainer method. Note that this can also be accomplished using the API GlobalLock and GlobalUnlock methods.

See Also

Elements:

UnlockContainer method.

Topics:

TWAIN Functionality: Containers.