Export (0) Print
Expand All

PathFindSuffixArray function

Determines whether a given file name has one of a list of suffixes.

Syntax


LPCTSTR PathFindSuffixArray(
  _In_  LPCTSTR pszPath,
  _In_  const LPCTSTR *apszSuffix,
  _In_  int iArraySize
);

Parameters

pszPath [in]

Type: LPCTSTR

A pointer to a null-terminated string of maximum length MAX_PATH that contains the file name to be tested. A full path can be used.

apszSuffix [in]

Type: const LPCTSTR*

An array of iArraySize string pointers. Each string pointed to is null-terminated and contains one suffix. The strings can be of variable lengths.

iArraySize [in]

Type: int

The number of elements in the array pointed to by apszSuffix.

Return value

Type: LPCTSTR

Returns a pointer to a string with the matching suffix if successful, or NULL if pszPath does not end with one of the specified suffixes.

Remarks

This function uses a case-sensitive comparison. The suffix must match exactly.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 5.0 or later)

Unicode and ANSI names

PathFindSuffixArrayW (Unicode) and PathFindSuffixArrayA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft