示例#1
0
static
DWORD
VmAfdCliSetLDU(
    PVM_AFD_CLI_CONTEXT pContext
    )
{
    DWORD dwError = 0;

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

    dwError = VmAfdSetLDUA(
                    pContext->pszServerName,
                    pContext->pszLDU);
    BAIL_ON_VMAFD_ERROR(dwError);

cleanup:

    return dwError;

error:

    goto cleanup;
}
示例#2
0
void client::SetLDU(std::string LDUName)
{
    DWORD dwError = 0;

    dwError = VmAfdSetLDUA(ServerName.c_str(), LDUName.c_str());
    BAIL_ON_ERROR(dwError);

error:
    THROW_IF_NEEDED(dwError);
}