IFileSystemImage::put_UseRestrictedCharacterSet method (imapi2fs.h)

Determines if file and directory names should be restricted to using only CP_ANSI characters.

Note  IFileSystemImage::put_UseRestrictedCharacterSet has been deprecated. Implementing this method is not recommended.

 

Syntax

HRESULT put_UseRestrictedCharacterSet(
  [in] VARIANT_BOOL newVal
);

Parameters

[in] newVal

Set to VARIANT_TRUE to restrict file and directory names to use only CP_ANSI characters. Otherwise, VARIANT_FALSE. The default is VARIANT_FALSE.

Return value

S_OK is returned on success, but other success codes may be returned as a result of implementation.

Remarks

Setting this property does not affect files or directories already in the file system image.

You can change the value of this property only when the result stream is not active.

Requirements

Requirement Value
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imapi2fs.h

See also

IFileSystemImage

IFileSystemImage::CreateDirectoryItem

IFileSystemImage::CreateFileItem

IFileSystemImage::get_UseRestrictedCharacterSet