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