# GetCompName

int GetCompName (char computerName[]);

## Purpose

This function returns the Windows PC name.

## Parameters

Output
Name | Type | Description
computerName | char [] | Returns the Windows name of the PC. This buffer must be at least MAX_COMPNAME_LEN bytes.

## Return Value

Name | Type | Description
status | integer | The status code that the function returns. 0 indicates success. A negative value indicates an error. This function may return a Programmer's Toolbox or UI Library error code. Call GetGeneralErrorString to obtain a text description of the error.