Malaria preventive measures for HIV-infected pregnant women include cotrimoxazole ( CTX ) prophylaxis given to prevent HIV-related opportunistic infections and also protective against malaria , or intermittent preventive treatment ( IPTp ) with an antimalarial drug .