pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

Request: Control Code constants for DeviceIoControl()

Open BinToss opened this issue 3 years ago • 4 comments

e.g. FSCTL_SET_COMPRESSION

BinToss avatar Mar 14 '22 06:03 BinToss

Have you tried CsWin32? It includes this constant (if you fix the typo: FSCTL_SET_COMPRESSION)

AArnott avatar Mar 17 '22 01:03 AArnott

Yes, but it only works in Visual Studio right now. VSCode's OmniSharp extension doesn't support CsWin32's code generation at the moment. It compiles, but the editor doesn't recognize any of the CsWin32 symbols.

BinToss avatar Mar 17 '22 01:03 BinToss

Ah, yes. That makes sense. I haven't had any time lately to spend on adding APIs to this repo, nor yet to finish replacing the hand-coded APIs in the repo with the result of CsWin32 code generation. Until then, if you'd like to send a PR to add these constants, I typically can find time to review and merge those. You could even use CsWin32 in VS to help you get the C# code to insert into this repo. The code placement conventions are a little different in this repo so you'd need to account for that.

AArnott avatar Mar 17 '22 14:03 AArnott

I'd started to add a bunch of constants to a class, so I'll clean that up for a PR. I might have time next weekend for this.

BinToss avatar Mar 21 '22 10:03 BinToss