Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "getcomputername" in [All]

Enums

.
Summary

kernel32

.

Returns 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);

.
Documentation
[GetComputerNameEx] on MSDN
.

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);

.
Documentation
[GetComputerNameEx] on MSDN

 
Access PInvoke.net directly from VS: