Shell32PathIsExe Method
Determines whether a file is an executable by examining the file name extension.
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("Shell32.dll", ExactSpelling = true)]
public static bool PathIsExe(
string path
)
<DllImportAttribute("Shell32.dll", ExactSpelling := true>]
Public Shared Function PathIsExe (
path As String
) As Boolean
Dim path As String
Dim returnValue As Boolean
returnValue = Shell32.PathIsExe(path)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true)]
static bool PathIsExe(
String^ path
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true)>]
static member PathIsExe :
path : string -> bool
No code example is currently available or this language may not be supported.
- path String
-
A pointer to a null-terminated, Unicode string that contains the file path, which includes the name of the file.
Boolean
Returns
if the file name extension is .cmd, .bat, .pif, .scf, .exe, .com, or .scr;
otherwise,
.