Re: [python-win32] DeviceIOControl calls respond with parameter incorrect

2021-02-09 Thread Eryk Sun
On 2/9/21, Doug Campbell wrote: > > That was exactly what I needed. I will have to read up on the _pack_ > directive to understand it but for now things are running the way they > should be. I'm glad I could help. Normally padding is added between fields of a struct in order to support aligned a

Re: [python-win32] DeviceIOControl calls respond with parameter incorrect

2021-02-09 Thread Doug Campbell
uary 8, 2021 8:24 PM To: python-win32@python.org Cc: Doug Campbell Subject: Re: [python-win32] DeviceIOControl calls respond with parameter incorrect On 2/8/21, Doug Campbell wrote: > In my python 2 script, I am trying to connect to the VeraCrypt device driver > to get some information o

Re: [python-win32] DeviceIOControl calls respond with parameter incorrect

2021-02-08 Thread Eryk Sun
On 2/8/21, Doug Campbell wrote: > In my python 2 script, I am trying to connect to the VeraCrypt device driver > to get some information on my mounted volumes. The VeraCrypt repo on GitHub [1] indicates that all structures are defined with #pragma pack(1). In ctypes this is the _pack_ directive.

Re: [python-win32] DeviceIOControl calls respond with parameter incorrect

2021-02-08 Thread Tim Roberts
On Feb 8, 2021, at 8:23 PM, Doug Campbell wrote: > > In my python 2 script, I am trying to connect to the VeraCrypt device driver > to get some information on my mounted volumes. There are a lot of things to go wrong here. You may be in for a long slog. Your ctypes definition does look funda

[python-win32] DeviceIOControl calls respond with parameter incorrect

2021-02-08 Thread Doug Campbell
In my python 2 script, I am trying to connect to the VeraCrypt device driver to get some information on my mounted volumes. This is what I have so far. I tried a bunch of different ideas on how to construct the input buffer for the DeviceIoControl function call but I keep getting the following