IntControl 39

Syntax:

IntControl (39, p1, 0, 0, 0)

 

Sets the file sharing mode for file reads.

p1 = share mode for file reads (default = 1)

Valid share modes are:

p1

Meaning

-1

don't change (keep current setting)

 0

prevent the file from being shared 

 1

allow other open operations for read access 

 2

allow other open operations for write access 

 3

allow other open operations for read and write access 

 

IntControl 39 will affect the following functions:

ArrayFileGet

ArrayFileGetCsv

BinaryRead

BinaryReadEx

FileCopy where the destination parameter is a port.

FileCopyAttr where the destination parameter is a port.

FileGet

FileGetW

FileOpen in "READ" mode.

 

Returns previous setting.

 

See also:

IntControl 40