This is a NativeCall question.
I have 8 bytes (little endian) in a CArray
representing a memory address. How do I create a Pointer
out it?
(CArray
and Pointer
are two of NativeCall's C compatible types. Pointer
s are 8 bytes long. Things should line up, but how does one put the pointer address in a CArray
into a Pointer
in a way acceptable to NativeCall?)
Here is an example of using the windows api call WTSEnumerateSessionsA() you mentioned in the comments:
Output (windows 11)