Skip to content

Instantly share code, notes, and snippets.

static void SlxPatchTeg(bool blAdd)
{
try
{
/* Get the ID of the current user (aka Amin)
*/
WindowsIdentity id = WindowsIdentity.GetCurrent();
/* Add the TakeOwnership Privilege
@MattyBoy4444
MattyBoy4444 / OutlookDataObject.cs
Last active June 6, 2024 16:39
Fixed issue with exception attempting to access protected memory
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Reflection;
using System.IO;
using System.Windows;