If the thread is not in a suspended state when you issue DosResumeThread for it, ERROR_NOT_FROZEN is returned.