SHGetSetFolderCustomSettings function
[SHGetSetFolderCustomSettings is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Sets or retrieves custom folder settings. This function reads from and writes to Desktop.ini.
Syntax
HRESULT SHGetSetFolderCustomSettings( _Inout_ LPSHFOLDERCUSTOMSETTINGS pfcs, _In_ PCTSTR pszPath, DWORD dwReadWrite );
Parameters
- pfcs [in, out]
-
Type: LPSHFOLDERCUSTOMSETTINGS
A pointer to a SHFOLDERCUSTOMSETTINGS structure that provides or receives the custom folder settings.
- pszPath [in]
-
Type: PCTSTR
A pointer to a null-terminated Unicode string that contains the path to the folder. The length of pszPath must be MAX_PATH or less, including the terminating null character.
- dwReadWrite
-
Type: DWORD
A flag that controls the action of the function. It may be one of the following values.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Only Unicode strings are supported.
Windows Server 2003 and Windows XP: SHGetSetFolderCustomSettings supports both ANSI and Unicode strings.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
End of client support |
Windows XP with SP2 |
|
End of server support |
Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|