change NO_ERROR to PS_NO_ERROR in order to avoid name collision on windows