---
name: "PathFindNextComponentA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/PathFindNextComponentA"
---

# PathFindNextComponentA(3w)

## NAME

**PathFindNextComponentA** (SHLWAPI.@)

## SYNOPSIS

LPSTR PathFindNextComponentA\
  (\
   LPCSTR *lpszPath*\
  )

## DESCRIPTION

Find the next component in a path.

## PARAMS

*lpszPath* **\[In\]**  Path to find next component in.

## RETURNS

**Success:** A pointer to the next component, or the end of the string.

**Failure:** **NULL**, If *lpszPath* is invalid.

## NOTES

A 'component' is either a backslash character ( or **UNC** marker (\\). Because of this, relative paths (e.g **"c:foo"**) are regarded as having only one component.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

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

Debug channel **"shell"**.
