gsudo icon indicating copy to clipboard operation
gsudo copied to clipboard

Refactor all Win32 API references with CsWin32 PInvoke code generator (work in progress)

Open gerardog opened this issue 1 year ago • 0 comments

Since the inception of gsudo, the number of Win32 Api calls utilized by gsudo has significantly increased. I did not anticipate such growth, resulting in rather convoluted code for these Api references.

Once I learn about the CsWin32 PInvoke code generator, I thought that using it would be a great way to solve that problem and reduce the source.

But, this effort requires much more modifications and time than anticipated. CsWin32 forces API references with a certain signature, which requires additional steps to handle unsafe code, pointers, low level strings, etc. I don't have the time to complete this effort, and the benefits of making this huge change, are relative. I would like a cleaner code base, but not at the cost of not being able to focus on other issues.

I may came back to this branch when I have time, but, that may not happen very soon.

gerardog avatar May 16 '24 02:05 gerardog