Example #1
0
static
DWORD
VmAfdCliSetDCPort(
    PVM_AFD_CLI_CONTEXT pContext
    )
{
    DWORD dwError = 0;

    if (!pContext)
    {
        dwError = ERROR_INVALID_PARAMETER;
        BAIL_ON_VMAFD_ERROR(dwError);
    }

    dwError = VmAfdSetDCPortA(
                    pContext->pszServerName,
                    pContext->dwPort);
    BAIL_ON_VMAFD_ERROR(dwError);

cleanup:

    return dwError;

error:

    goto cleanup;
}
Example #2
0
void client::SetDCPort(unsigned int port)
{
    DWORD dwError = 0;

    dwError = VmAfdSetDCPortA(ServerName.c_str(), port);
    BAIL_ON_ERROR(dwError);

error:
    THROW_IF_NEEDED(dwError);
}