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

# RebootCheckOnInstallW(3w)

## NAME

**RebootCheckOnInstallW** (ADVPACK.@)

## SYNOPSIS

HRESULT RebootCheckOnInstallW\
  (\
   HWND    *hWnd*,\
   LPCWSTR *pszINF*,\
   LPCWSTR *pszSec*,\
   DWORD   *dwReserved*\
  )

## DESCRIPTION

Checks if a reboot is required for an installed **INF** section.

## PARAMS

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

*pszINF* **\[In\]**  Filename of the **INF** file.

*pszSec* **\[In\]**  **INF** section to check.

*dwReserved* **\[In\]**  Reserved. Must be **0.**

## RETURNS

**Success:** **S\_OK** **-** Reboot is needed if the **INF** section is installed. **S\_FALSE** **-** Reboot is not needed.

**Failure:** **HRESULT** of **[GetLastError(3w)](/GetLastError/3w.md)**.

## NOTES

if *pszSec* is **NULL**, RebootCheckOnInstall checks the DefaultInstall or DefaultInstall. **NT** section.

## BUGS

Unimplemented.

## IMPLEMENTATION

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

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

Debug channel **"advpack"**.
