Desktop Functions: Smart Device Functions:
|
Search Results for "GetComputerNameEx" in [All]Enumskernel32Returns ERROR_SUCCESS on success or an error code on failure. Unless only the primary computer name is requested, the buffer will be filled with a series of null-terminated strings followed by a final null terminator. To measure the required number of characters, not including the final null terminator, use a null buffer and a zero size. This function is similar to GetComputerNameEx, and delegates to it to obtain the primary computer name.
static extern bool GetComputerNameEx(COMPUTER_NAME_FORMAT NameType,
Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean
static extern bool GetComputerNameEx(COMPUTER_NAME_FORMAT NameType,
success = GetComputerNameEx(COMPUTER_NAME_FORMAT.ComputerNameDnsDomain, name, ref size);
static extern bool GetComputerNameEx(COMPUTER_NAME_FORMAT NameType,
Private Shared Function GetComputerNameEx(ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As StringBuilder, ByRef lpnSize As UInt32) As Boolean
static extern bool GetComputerNameEx(COMPUTER_NAME_FORMAT NameType,
success = GetComputerNameEx(COMPUTER_NAME_FORMAT.ComputerNameDnsDomain, name, ref size); |