CanShareFolderW function

[This function is available through Windows XP with Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]

Used to determine whether to show the Share this folder option in web view.

Syntax

STDAPI CanShareFolderW(
  _In_ LPCWSTR pszPath
);

Parameters

pszPath [in]

Type: LPCWSTR

A pointer to a string that specifies the path of the folder to test.

Return value

Type: STDAPI

Return values include the following.

Return code/value Description
S_OK
The path pointed to by pszPath specifies a folder that can be shared.
S_FALSE
The path pointed to by pszPath specifies a folder that cannot be shared.
HRESULT error
An error has occurred.

 

Remarks

This function has no associated .lib file. You must use LoadLibrary and GetProcAddress to use it.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
DLL
Ntshrui.dll
Unicode and ANSI names
CanShareFolderW (Unicode)

See also

ShowShareFolderUI