> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionGetComputerName

# GetComputerName

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

## Function Syntax

```plaintext theme={null}
long GetComputerName(char buffer[], dword bufferSize);
```

## Description

Retrieves the fully qualified name of the computer.

## Parameters

* **buffer**: Space for the returned name.
* **bufferSize**: Length of the buffer.

## Return Values

0 if the function completed successfully, else unequal 0.

## Example

```plaintext theme={null}
char buffer[50];
GetComputerName(buffer, elcount(buffer));
write("Computer name: %s", buffer);
```
