Simple code:
ATOM atom = GlobalAddAtom(L"TestCpp1");
It returns 0 and GetLastError returns 0x5 (Access Denied). Nothing on MSDN about it. This is on Win7. Admin rights make no difference.
Same code works on XP. AddAtom (local) works on Win7.
What's causing this?