PathAddExtensionA(3w)

PathAddExtensionA3w

Usage

BOOL PathAddExtensionA
(
LPSTR lpszPath,
LPCSTR lpszExtension
)

Overview

Add a file extension to a path.

Params

lpszPath [In/Out] Path to add extension to.

lpszExtension [In] Extension to add to lpszPath.

Returns

TRUE If the path was modified, FALSE If lpszPath or lpszExtension are invalid, lpszPath has an extension already, or the new path length is too big.

Fixme

What version of shlwapi.dll adds "exe" if lpszExtension is NULL? Win2k does not do this, so the behaviour was removed.

Implementation

Declared in "shlwapi.h".

Implemented in "dlls/shlwapi/path.c".

Debug channel "shell".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.