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

# NetUserModalsGet(3w)

## NAME

**NetUserModalsGet** (NETAPI32.@)

## SYNOPSIS

NET\_API\_STATUS NetUserModalsGet\
  (\
   LPCWSTR *szServer*,\
   DWORD   *level*,\
   LPBYTE\* *pbuffer*\
  )

## DESCRIPTION

Retrieves global information for all users and global groups in the security database.

## PARAMS

*szServer* **\[In\]**  Specifies the **DNS** or the NetBIOS name of the remote server on which the function is to execute.

*level* **\[In\]**  Information *level* of the data. **0** Return global passwords parameters. bufptr points to a **USER\_MODALS\_INFO\_0** struct. **1** Return logon server and domain controller information. bufptr points to a **USER\_MODALS\_INFO\_1** struct. **2** Return domain name and identifier. bufptr points to a **USER\_MODALS\_INFO\_2** struct. **3** Return lockout information. bufptr points to a **USER\_MODALS\_INFO\_3** struct.

*pbuffer* **\[In\]**  Buffer that receives the data.

## RETURNS

**Success:** NERR\_Success.

**Failure:** **ERROR\_ACCESS\_DENIED** **-** the user does not have access to the info. NERR\_InvalidComputer **-** computer name is invalid.

## IMPLEMENTATION

Declared in **"lmaccess.h"**.

Implemented in **"dlls/netapi32/access.c"**.
