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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function PathIsSystemFolder (
path As String,
attributes As UInteger
) As Boolean
Dim path As String
Dim attributes As UInteger
Dim returnValue As Boolean
returnValue = ShlwApi.PathIsSystemFolder(path,
attributes)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool PathIsSystemFolder(
String^ path,
unsigned int attributes
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member PathIsSystemFolder :
path : string *
attributes : uint32 -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
Returns
if the pszPath or
attributes represent a system folder,
or
otherwise.