GetComputerNameEx function kernel32
Retrieves a NetBIOS or DNS name associated with the local computer. The names are established at system startup, when the system reads them from the registry.
BOOL GetComputerNameExW(
COMPUTER_NAME_FORMAT NameType,
LPWSTR lpBuffer,
LPDWORD nSize
);
Implementation
int GetComputerNameEx(
int NameType, Pointer<Utf16> lpBuffer, Pointer<Uint32> nSize) =>
_GetComputerNameEx(NameType, lpBuffer, nSize);