Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.23 KB

GetComputerObjectName.md

File metadata and controls

58 lines (39 loc) · 1.23 KB

Home

Function name : GetComputerObjectName

Group: System Information - Library: secur32


The GetComputerObjectName function retrieves the local computer"s name in a specified format.


Code examples:

Retrieving local computer and user names

Declaration:

BOOLEAN GetComputerObjectName(
  EXTENDED_NAME_FORMAT NameFormat,
  LPTSTR lpNameBuffer,
  PULONG nSize
);  

FoxPro declaration:

DECLARE INTEGER GetComputerObjectName IN secur32;
	INTEGER   NameFormat,;
	STRING  @ lpNameBuffer,;
	INTEGER @ nSize
  

Parameters:

NameFormat [in] Format for the name. This parameter is a value from the EXTENDED_NAME_FORMAT enumeration type.

lpNameBuffer [out] Pointer to a buffer that receives the name in the specified format.

nSize [in, out] On input, specifies the size of the lpNameBuffer buffer, in TCHARs.


Return value:

If the function succeeds, the return value is a nonzero value.


Comments:

Client: Requires Windows XP or Windows 2000 Professional.