Handle is a pointer and you can treat it as such. A handle is a pointer to another pointer! it has different uses but basically it is a pointer. Most pointers are a memory address of a value like a number or string, a handle is a memory address of a pointer (another address) to one of those.
On Sat, Nov 19, 2022 at 10:13 PM, ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Any of you familiar with native call? > > In the following > > C++ > HANDLE WTSOpenServerA( > [in] LPSTR pServerName > ); > > Is HANDLE a DWORD (32 bit integer)? > > I just noticed I have HANDLE defined in Raku as > > constant HANDLE = Pointer[void]; > > I do believe most C++ pointers are 32 bit > cardinals (unsigned integers) > > Many thanks, > -T > > -- -y