Interop and SIZE_T

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I've seen a few Win32 API functions with SIZE_T parameters mapped via
managed ints. Is this the most appropriate mapping or would an IntPtr be
better (thinking of future proofing for 64-bit windows)

Cheers,

Steve
 
| Hi all,
|
| I've seen a few Win32 API functions with SIZE_T parameters mapped via
| managed ints. Is this the most appropriate mapping or would an IntPtr be
| better (thinking of future proofing for 64-bit windows)
|
| Cheers,
|
| Steve

Yep, SIZE_T should be mapped via IntPtr's. SIZE_T is a platform dependent
type, 64 bit on a 64 bit OS, 32 bit on others.


Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top