Shell32PathIsExe Method

Determines whether a file is an executable by examining the file name extension.

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("Shell32.dll", ExactSpelling = true)]
public static bool PathIsExe(
	string path
)

Parameters

path  String
A pointer to a null-terminated, Unicode string that contains the file path, which includes the name of the file.

Return Value

Boolean
Returns if the file name extension is .cmd, .bat, .pif, .scf, .exe, .com, or .scr; otherwise, .

Remarks

See Also