Group: System Information - Library: secur32
Retrieving local computer and user names
BOOLEAN GetComputerObjectName(
EXTENDED_NAME_FORMAT NameFormat,
LPTSTR lpNameBuffer,
PULONG nSize
);
DECLARE INTEGER GetComputerObjectName IN secur32;
INTEGER NameFormat,;
STRING @ lpNameBuffer,;
INTEGER @ nSize
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.
If the function succeeds, the return value is a nonzero value.
Client: Requires Windows XP or Windows 2000 Professional.