Finally got it to compile. The problem is that the SID object is a really arcane and undocumented structure that changes accordingly to its use, so the best way to use it is with the void* pointer.
Finally got it to compile. The problem is that the SID object is a really arcane and undocumented structure that changes accordingly to its use, so the best way to use it is with the void* pointer.

AArnott/pinvoke,vbfox/pinvoke,jmelosegui/pinvoke