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

# GetComputerObjectNameA(3w)

## NAME

**GetComputerObjectNameA** (SECUR32.@)

## SYNOPSIS

BOOLEAN GetComputerObjectNameA\
  (\
   EXTENDED\_NAME\_FORMAT *NameFormat*,\
   LPSTR                *lpNameBuffer*,\
   PULONG               *nSize*\
  )

## DESCRIPTION

Get the local computer's name using the format specified.

## PARAMS

*NameFormat* **\[In\]**  The format for the name.

*lpNameBuffer* **\[Out\]**  Pointer to buffer to receive the name.

*nSize* **\[In/Out\]**  Size in characters of buffer.

## RETURNS

**TRUE** If the name was written to *lpNameBuffer*. **FALSE** If the name couldn't be written.

## NOTES

If *lpNameBuffer* is **NULL**, then the size of the buffer needed to hold the name will be returned in \**nSize*.

*nSize* returns the number of characters written when *lpNameBuffer* is not **NULL** or the size of the buffer needed to hold the name when the buffer is too short or *lpNameBuffer* is **NULL**.

It the buffer is too short, **ERROR\_INSUFFICIENT\_BUFFER** error will be set.

## IMPLEMENTATION

Declared in **"secext.h"**.

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