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

# SystemFunction005(3w)

## NAME

**SystemFunction005** (ADVAPI32.@)

## SYNOPSIS

NTSTATUS SystemFunction005\
  (\
   const struct ustring\* *in*,\
   const struct ustring\* *key*,\
   struct ustring\*       *out*\
  )

## DESCRIPTION

Decrypts a block of data with **DES** *in* **ECB** mode.

## PARAMS

data **\[In\]**  data to decrypt.

*key* **\[In\]**  *key* data (up to **7** bytes).

output **\[Out\]**  buffer to receive decrypted data.

## RETURNS

**Success:** **STATUS\_SUCCESS**

**Failure:** **STATUS\_BUFFER\_TOO\_SMALL** if the output buffer is too small

**Failure:** **STATUS\_INVALID\_PARAMETER\_2** if the *key* is zero length

## IMPLEMENTATION

Not declared *in* a Wine header. The function is either undocumented, or missing from Wine.

Implemented *in* **"dlls/advapi32/crypt\_lmhash.c"**.
