static DWORD VmAfdCliSetPNID( PVM_AFD_CLI_CONTEXT pContext ) { DWORD dwError = 0; if (!pContext) { dwError = ERROR_INVALID_PARAMETER; BAIL_ON_VMAFD_ERROR(dwError); } dwError = VmAfdSetPNIDA( pContext->pszServerName, pContext->pszPNID); BAIL_ON_VMAFD_ERROR(dwError); cleanup: return dwError; error: goto cleanup; }
void client::SetPNID(std::string PNID) { DWORD dwError = 0; dwError = VmAfdSetPNIDA(ServerName.c_str(), PNID.c_str()); BAIL_ON_ERROR(dwError); error: THROW_IF_NEEDED(dwError); }