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

# WNetCachePassword(3w)

## NAME

**WNetCachePassword** (MPR.@)

## SYNOPSIS

DWORD WNetCachePassword\
  (\
   LPSTR *pbResource*,\
   WORD  *cbResource*,\
   LPSTR *pbPassword*,\
   WORD  *cbPassword*,\
   BYTE  *nType*,\
   WORD  *x*\
  )

## PARAMS

*pbResource* **\[In\]**  Name of workgroup,computer,or resource.

*cbResource* **\[In\]**  Size of name.

*pbPassword* **\[In\]**  Buffer containing password.

*cbPassword* **\[In\]**  Size of password.

*nType* **\[In\]**  Type of password to cache.

## DESCRIPTION

WNetCachePassword \[**MPR**.@\] Saves password in cache.

## NOTES

Only the parameter count is verified.

**----** everything below this line might be wrong (js) **-----.**

## RETURNS

**Success:** **WN\_SUCCESS**

**Failure:** **WN\_ACCESS\_DENIED**, **WN\_BAD\_PASSWORD**, **WN\_BADVALUE**, **WN\_NET\_ERROR**, **WN\_NOT\_SUPPORTED**, **WN\_OUT\_OF\_MEMORY**

## IMPLEMENTATION

Declared in **"winnetwk.h"**.

Implemented in **"dlls/mpr/pwcache.c"**.

Debug channel **"mpr"**.
