#Windows development?
1 messages · Page 1 of 1 (latest)
I think you misunderstand what the x::Type syntax means. It isn't a cast; it verifies that the type is correct
Try OpenProcess(dwDesiredAccess, Int32(bInheritHandle), dwProcessId)
But I think you should change OpenProcess to accept a Bool, and then put the cast inside the function, shielding the Julia side from the C implementation details