Re: Extracting 4 wchar_t's from int64

2021-01-18 Thread ToddAndMargo via perl6-users
On 1/14/21 8:26 PM, Paul Procacci wrote: My C code also doesn't print anything as that's not it's intention.  It returns with an appropriate exit code which is all my proof of concept measures. Hi Paul, What I was looking for was the C "struct" (structure) you were duplicating in Raku. But i

Re: Extracting 4 wchar_t's from int64

2021-01-14 Thread Paul Procacci
My C code has nothing to do with the question I'm asking. I'll share it anyway to my dismay. static int raidFillProcessStruct(raidProcess* process) > { > process->handle = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL); > if (process->handle == INVALID_HANDLE_VALUE) return 0; > > process->entr

Re: Extracting 4 wchar_t's from int64

2021-01-14 Thread ToddAndMargo via perl6-users
On 1/14/21 7:38 PM, Paul Procacci wrote: I may have. Regardless, I have written a proof of concept in 'C' which works. My question isn't how to interface with the Windows Operating System because I have already done so in 'C' quite easily. My question pertains to working around the bug as des

Re: Extracting 4 wchar_t's from int64

2021-01-14 Thread Paul Procacci
I may have. Regardless, I have written a proof of concept in 'C' which works. My question isn't how to interface with the Windows Operating System because I have already done so in 'C' quite easily. My question pertains to working around the bug as described here: https://github.com/rakudo/rakudo

Re: Extracting 4 wchar_t's from int64

2021-01-14 Thread ToddAndMargo via perl6-users
On 1/14/21 4:32 PM, Paul Procacci wrote: https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-createtoolhelp32snapshot On Thu, Jan 14, 2021 at 7:30 PM ToddAndMargo via perl6-use

Re: Extracting 4 wchar_t's from int64

2021-01-14 Thread Paul Procacci
https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-createtoolhelp32snapshot On Thu, Jan 14, 2021 at 7:30 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 1/14/21 3:42 PM, Paul Procacci wrote: > > Let me preface this by saying if I were using a lower level l

Re: Extracting 4 wchar_t's from int64

2021-01-14 Thread ToddAndMargo via perl6-users
On 1/14/21 3:42 PM, Paul Procacci wrote: Let me preface this by saying if I were using a lower level language (like C) I wouldn't have this problem; as I know how to shift and mask accordingly. On raku however, how to do so *eloquantly* eludes me. I've defined a CStruct as follows: class tes

Extracting 4 wchar_t's from int64

2021-01-14 Thread Paul Procacci
Let me preface this by saying if I were using a lower level language (like C) I wouldn't have this problem; as I know how to shift and mask accordingly. On raku however, how to do so *eloquantly* eludes me. I've defined a CStruct as follows: class test is repr('CStruct') { has int64 $.a1;