This needs a details comment about conditions when OpenThread works and OpenProcess does not work and also when OpenProcess work and OpenThread does not work.

They should answer the question: WTF not call a single method for all cases.