Re: NativeCall and pointers question

2022-11-30 Thread ToddAndMargo via perl6-users
On 11/30/22 12:53, ToddAndMargo via perl6-users wrote: Let me ask this question a little simpler: To answer my own questions, which I figured out the hard way. 1) how to I tell NativeCall I only want the C pointer back, not what it points to? By declaring it as a pointer and creating it wi

Re: NativeCall and pointers question

2022-11-30 Thread ToddAndMargo via perl6-users
Let me ask this question a little simpler: 1) how to I tell NativeCall I only want the C pointer back, not what it points to? 2) how do I tell NativeCall I am sending it a C pointer? Many thanks, -T

NativeCall and pointers question

2022-11-30 Thread ToddAndMargo via perl6-users
Hi All, In the following: use NativeCall; constant BYTE := uint8; constant LPDWORD := uint64;# long pointer to a DWORD constant LPSTR= CArray[BYTE]; # long pointer to a string constant DWORD:= uint32; constant HANDLE = Pointer[void]; sub WTSOpenServerA( #`{ https://l