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

# UrlGetPartA(3w)

## NAME

**UrlGetPartA** (SHLWAPI.@)

## SYNOPSIS

HRESULT UrlGetPartA\
  (\
   LPCSTR  *pszIn*,\
   LPSTR   *pszOut*,\
   LPDWORD *pcchOut*,\
   DWORD   *dwPart*,\
   DWORD   *dwFlags*\
  )

## DESCRIPTION

Retrieve part of a Url.

## PARAMS

*pszIn* **\[In\]**  Url to parse.

*pszOut* **\[Out\]**  Destination for part of *pszIn* requested.

*pcchOut* **\[In\]**  Size of *pszOut*.

**\[Out\]**  length of *pszOut* string **EXCLUDING** **' '** if **S\_OK**, otherwise needed size of *pszOut* **INCLUDING** **' '**.

*dwPart* **\[In\]**  **URL\_PART\_** enum from **"shlwapi.h"**.

*dwFlags* **\[In\]**  **URL\_** flags from **"shlwapi.h"**.

## RETURNS

**Success:** **S\_OK**. *pszOut* contains the part requested, *pcchOut* contains its length.

**Failure:** An **HRESULT** error code describing the error.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
