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

# SHCreateStreamOnFileA(3w)

## NAME

**SHCreateStreamOnFileA** (SHLWAPI.@)

## SYNOPSIS

HRESULT SHCreateStreamOnFileA\
  (\
   LPCSTR    *lpszPath*,\
   DWORD     *dwMode*,\
   IStream\*\* *lppStream*\
  )

## DESCRIPTION

Create a stream on a file.

## PARAMS

*lpszPath* **\[In\]**  Path of file to create stream on.

*dwMode* **\[In\]**  Mode to create stream in.

*lppStream* **\[Out\]**  Destination for created **IStream** object.

## RETURNS

**Success:** **S\_OK**. *lppStream* contains the new **IStream** object

**Failure:** **E\_INVALIDARG** if any parameter is invalid, or an **HRESULT** error code

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
