2.4.116 FileLock

The FileLock record specifies that the shared workbook was locked by a particular user.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

lPurpose

stUsrName (variable)

...

unused (variable)

...

lPurpose (4 bytes):  An unsigned integer that specifies the purpose of the file lock. MUST be one of the following:

Value

Meaning

0x00000000

The shared workbook is not locked.

0x00010001

The shared workbook is locked for writing or releasing user information.

0x00010002

The shared workbook is locked for merging two revisions.

0x00010004

The shared workbook is locked to make it exclusive.

0x00010008

The shared workbook is locked to be deleted or renamed.

stUsrName (variable):  An XLUnicodeString structure that specifies the user name. The string length MUST be less than or equal to 52.

unused (variable): Undefined and MUST be ignored. This size of this field in bytes is specified by the following formula:

size = 158 - (byte count of stUsrName)