Re: NativeCall C++ structure question

2022-11-21 Thread ToddAndMargo via perl6-users
On 11/21/22 05:01, ToddAndMargo via perl6-users wrote: Hi All, Windows ChromeBook Edition (W11-22H2). I have been doing a lot of head scratching here. I have a project were I need to use     BOOL WTSEnumerateSessionsA(   [in]  HANDLE hServer,     #

NativeCall C++ structure question

2022-11-21 Thread ToddAndMargo via perl6-users
Hi All, Windows ChromeBook Edition (W11-22H2). I have been doing a lot of head scratching here. I have a project were I need to use BOOL WTSEnumerateSessionsA( [in] HANDLE hServer, # WTS_CURRENT_SERVER_HANDLE to use the RD Session Host server that hosts your

Re: What is this handle?

2022-11-21 Thread ToddAndMargo via perl6-users
On Sat, Nov 19, 2022 at 10:13 PM, ToddAndMargo via perl6-users mailto:perl6-users@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

Re: What is this handle?

2022-11-21 Thread yary
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