Skip to content

Instantly share code, notes, and snippets.

@krisdb2009
krisdb2009 / LaunchOnWinLogonSecureDesktop.cs
Created October 9, 2018 04:23
Launches an executable in the winlogon secure desktop.
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace BelowAverage
{
class SecureDesktop
{
public const int TOKEN_DUPLICATE = 0x0002;
public const int TOKEN_IMPERSONATE = 0x0004;
/*!
Chat++ The best UNIX chat program at BGSU probbably.
Author: Dylan Bickerstaff
Date: 4/30/2018
Description: This chat program allows multiple users to chat over a UNIX terminal.
*/
#include <iostream>
#include <fstream> //Library used for file access.
#include <unistd.h> //Library used for sleep function.
#include <cctype> //Library used for input validation.