The SHAREVISTRING message is sent to the application's hook function by the Open or Save As dialog box if a sharing violation occurs when the dialog box tries to open a file on the network.
wParam
Not used.
lParam
Points to a string identifying the path and filename that caused the sharing violation. This string is the szPathName member of the OFSTRUCT structure that is pointed to by the second parameter of the OpenFile function.
The return value is described in the following Comments section.
To use the SHAREVISTRING message, the application must create a message identifier by using the RegisterWindowMessage function and passing the SHAREVISTRING constant as the function's single parameter.
This message is sent by the OpenFile function. The message is not sent
when the OFN_SHAREAWARE flag is set in the Flags member of the
OPENFILENAME structure.
When the hook function receives SHAREVISTRING, it should
return OFN_SHAREWARN, OFN_SHARENOWARN, or OFN_SHAREFALLTHROUGH. For more information about these
flags, see the description of the OPENFILENAME structure in Chapter 3, “Structures.”