Expand Minimize

IFileSystemImage::put_UseRestrictedCharacterSet method

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

newVal [in]

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

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

IDL

Imapi2fs.idl

See also

IFileSystemImage
IFileSystemImage::get_UseRestrictedCharacterSet
IFileSystemImage::CreateFileItem
IFileSystemImage::CreateDirectoryItem

 

 

Community Additions

ADD
Show:
© 2014 Microsoft