This topic has not yet been rated - Rate this topic

PathIsExe function

[PathIsExe is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Applies to: desktop apps only

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

Syntax

BOOL PathIsExe(
  __in  PCWSTR szfile
);

Parameters

szfile [in]

Type: PCWSTR

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

Return value

Type: BOOL

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

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ