Code/Framework/AzFramework/Platform/Windows/AzFramework/TargetManagement/TargetManagementComponent_Windows.cpp
AZStd::string GetNeighborhoodName()
        {
            AZStd::string neighborhoodName;

            wchar_t localhost[MAX_COMPUTERNAME_LENGTH + 1];
            DWORD len = AZ_ARRAY_SIZE(localhost);
            if (GetComputerNameW(localhost, &len))
            {
                AZStd::to_string(neighborhoodName, localhost);
            }

            return neighborhoodName;
        }
//! On windows, if the neighborhood name was not provided we
//! will use the local computer name as the name since most of
//! the time the hub should be running on the local machine.
On windows, if the neighborhood name was not provided we
will use the local computer name as the name since most of
the time the hub should be running on the local machine.
On windows if the neighborhood name was not provided we will use the local computer name as the name since most of the time the hub should be running on the local machine .
AZStd::string GetNeighborhoodName()
        {
            AZStd::string neighborhoodName;
            wchar_t localhost[MAX_COMPUTERNAME_LENGTH + 1];
            DWORD len = AZ_ARRAY_SIZE(localhost);
            if (GetComputerNameW(localhost, &len))
            {
                AZStd::to_string(neighborhoodName, localhost);
            }
            return neighborhoodName;
        }
AZStd :: string GetNeighborhoodName ( ) { AZStd :: string neighborhoodName ; wchar_t localhost [ MAX_COMPUTERNAME_LENGTH + 1 ] ; DWORD len = AZ_ARRAY_SIZE ( localhost ) ; if ( GetComputerNameW ( localhost , & len ) ) { AZStd :: to_string ( neighborhoodName , localhost ) ; } return neighborhoodName ; }
On windows, if the neighborhood name was not provided we
will use the local computer name as the name since most of
the time the hub should be running on the local machine.
On windows if the neighborhood name was not provided we will use the local computer name as the name since most of the time the hub should be running on the local machine .