P/Inovke parameters offset by 32 bits when compiled in 64 bit
See the question and my original answer on StackOverflowMethodName should not be a class instance method, as the first bytes (4 in x86 world, 8 in x64 world) will be used for the class instance pointer in the unmanaged world.
So, it should be a static method (or a C style method).