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

# UserInstStubWrapperW(3w)

## NAME

**UserInstStubWrapperW** (ADVPACK.@)

## SYNOPSIS

HRESULT UserInstStubWrapperW\
  (\
   HWND      *hWnd*,\
   HINSTANCE *hInstance*,\
   LPWSTR    *pszParms*,\
   INT       *nShow*\
  )

## DESCRIPTION

Launches the user stub wrapper specified by the RealStubPath registry value under Installed ComponentszParms.

## PARAMS

*hWnd* **\[In\]**  Handle to the window used for the display.

*hInstance* **\[In\]**  Instance of the process.

szParms **\[In\]**  The **GUID** of the installation.

show **\[In\]**  How the window should be shown.

## RETURNS

**Success:** **S\_OK**.

**Failure:** **E\_FAIL**.

## TODO

If the type of the StubRealPath value is **REG\_EXPAND\_SZ**, then we should call ExpandEnvironmentStrings on the value and launch the result.

## IMPLEMENTATION

Declared in **"advpub.h"**.

Implemented in **"dlls/advpack/advpack.c"**.

Debug channel **"advpack"**.
