ShlwApiPathIsSystemFolder(String, UInt32) Method

Determines if an existing folder contains the attributes that make it a system folder.

Alternately, this function indicates if certain attributes qualify a folder to be a system folder.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool PathIsSystemFolder(
	string path,
	uint attributes
)

Parameters

path  String
A pointer to a null-terminated string of maximum length MAX_PATH that contains the name of an existing folder.

The attributes for this folder will be retrieved and compared with those that define a system folder.

If this folder contains the attributes to make it a system folder, the function returns nonzero.

If this value is NULL, this function determines if the attributes passed in attributes qualify it to be a system folder.

attributes  UInt32
The file attributes to be compared.

Used only if path is NULL. In that case, the attributes passed in this value are compared with those that qualify a folder as a system folder.

If the attributes are sufficient to make this a system folder, this function returns . These attributes are the attributes that are returned from GetFileAttributes function.

Return Value

Boolean
Returns if the pszPath or attributes represent a system folder, or otherwise.

Remarks

See Also