SHLimitInputEdit function (shlobj_core.h)

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

Sets limits on valid characters for an edit control.

Syntax

SHSTDAPI SHLimitInputEdit(
  [in, optional] HWND         hwndEdit,
  [in]           IShellFolder *psf
);

Parameters

[in, optional] hwndEdit

Type: HWND

The handle of the edit control.

[in] psf

Type: IShellFolder*

An IShellFolder interface pointer. This object must also implement IItemNameLimits, which supplies a list of invalid characters and a maximum name length.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.0 or later)
API set ext-ms-win-shell-shell32-l1-2-1 (introduced in Windows 10, version 10.0.10240)