On 64-bit Windows (with a 64-bit application), pointers are 64-bit.
You'll have to give some more details about what you're doing. Presumably there's something amiss somewhere.
Does Win32 API use 64 bit length pointers on 64 bit system ?

Diakov Dmytro
1
Reputation point
Hi!
I have Win32 API (cloud filter api). On Windows 10 x64 it does not work when I create x64 app and pass IntPtr to it's function . (I have access violation memory exception).
But when I build x86 app and use IntPtr with 32 length it works.
So my question is: win32 api is 32 bitness API and can work only with pointers with 32 bits length, is it true ?
4 answers
Sort by: Most helpful
-
David Lowndes 4,381 Reputation points MVP
2020-12-21T12:22:41.527+00:00
As RLWA32 points out - ensure all aspects of your application are x64.
When all aspects are using x64 or AnyCpu on x64 bit machine - it does not work.
When all aspects are using x86 on x64 bit machine - it works.
All I can say is that you're going to need to delve deeper to find the underlying source of the problem you have.
So can you please tell, can Win32 API use pointers with 8 bytes size ?
Yes, although it's called "Win32", on a 64-bit Windows OS with a 64-bit application, pointers are 8 bytes.
Sign in to comment