FILESHARING: File-Sharing Information (5Bh)

This record stores file-sharing options selected in the Options dialog box, accessed by using the Save As command (File menu). The write reservation password that you type in the dialog box is encrypted to an integer, wResPass. This record also contains the user name of the file's creator, stUNWriteRes.

Changes for BIFF7

There are minor changes to the behavior of this record in BIFF7. For Microsoft Excel version 7.0 workbooks that do not contain shared lists, this record behaves as it does in BIFF5.

For Microsoft Excel version 7.0 workbooks that contain shared lists, there will be both FILESHARING and FILESHARING2 records in the Book stream. In this case, FILESHARING always contains a dummy password. FILESHARING2 contains either a dummy password if the workbook is not write-protected, or a valid password if the workbook is write-protected.

Record Data

Offset

Name

Size

Contents

4

fReadOnlyRec

2

= 1 if the Read Only Recommended option is selected in the Options dialog box

6

wResPass

2

Encrypted password (if this field is 0 (zero), there is no write reservation password)

8

cch

1

Length of the user name

9

stUNWriteRes

var

User name