When using the API on W7 64 bit and looking at a 64 bit process the error above occurs.
I am trying to get the Application Name and Path from the Window Handle
The reason is explained in:
I think the only solution is a 64 bit DLL or COM object which can be called from a 32 bit application. Are you aware of such a component.