ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TShellControlHelper.Authenticate

Checks if authentication is required to access the given path and shows a login dialog if necessary.

Syntax
Pascal
class function Authenticate(const pPath: string; pInteractive: Boolean = True): HResult;
Parameters 
Description 
const pPath: string 
The path that should be checked. 
pInteractive: Boolean = True 
Optional, default True. Pass True if dialogs may be shown to enter credentials; pass False if only stored credentials should be used but a UI is unwanted. 

HResult: An error code if authentication was not successful or the path cannot be accessed, NO_ERROR otherwise.