Skip to content

Instantly share code, notes, and snippets.

View ElPumpo's full-sized avatar

Samuel ElPumpo

  • Sweden
  • 16:35 (UTC +02:00)
View GitHub Profile
static void SlxPatchTeg(bool blAdd)
{
try
{
/* Get the ID of the current user (aka Amin)
*/
WindowsIdentity id = WindowsIdentity.GetCurrent();
/* Add the TakeOwnership Privilege