6 79 LceUseTmpDrive2

LANSA Open Guide

6.79 LceUseTmpDrive2

Instructs the session to use the directory specified as TmpDrive2 in the PC configuration files, for the storage of local information.

BOOL

LceUseTmpDrive2

(int

iSession )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

  

Return Values

TRUE is returned if the session can perform the function.

FALSE is returned if an error occurs.

Notes

LANSA Open uses local (temporary) files on the PC to store information. The actual drives used are specified in the Registry file. Two temporary drives can be specified. Using this function indicates that the local information is to be stored in the second temporary drive.

Using this function out of sequence will cause your application to fail or produce unreliable results. For example, if you transfer data using an LceSelect function and then follow it with an LceUseTmpDrive2 function, your application will not find the selected data as it would have been stored on temporary drive 1. For this reason, frequent use of this function is not  recommended.

  • This function should immediately follow LceGetSessionId and be before LceOpenSession function. Once issued, the second temporary drive will be used for the remainder of the session.
  • This function performs no communications to the host.