Skip to content

Instantly share code, notes, and snippets.

Avatar
🖕
An idiot admires complexity; a genius admires simplicity

Anuwat Khongchuai un4ckn0wl3z

🖕
An idiot admires complexity; a genius admires simplicity
View GitHub Profile
View divk2.cs
using System;
using System.Runtime.InteropServices;
using DInvoke.DynamicInvoke;
namespace ConsoleApp1
{
internal class Program
{
[UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Unicode)]
View divk.cs
using System;
using System.Runtime.InteropServices;
using DInvoke.DynamicInvoke;
namespace ConsoleApp1
{
internal class Program
{
[UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Unicode)]
View notepad.cs
using System;
using System.Runtime.InteropServices;
namespace PInvoke
{
internal class Program
{
[StructLayout(LayoutKind.Sequential)]
public struct STARTUPINFO
{
View c.cs
using System;
using System.Runtime.InteropServices;
namespace PInvoke
{
internal class Program
{
[StructLayout(LayoutKind.Sequential)]
public struct STARTUPINFO
{
View pmsg.cs
using System;
using System.Runtime.InteropServices;
namespace PInvoke
{
internal class Program
{
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
static extern int MessageBoxW(IntPtr hWnd, string lpText, string lpCaption, uint uType);
View Msg.cs
using System;
using System.Runtime.InteropServices;
namespace PInvoke
{
internal class Program
{
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
static extern int MessageBoxW(IntPtr hWnd, string lpText, string lpCaption, uint uType);
View create_notepad.cpp
#include <iostream>
#include <Windows.h>
int main()
{
STARTUPINFO si;
si.cb = sizeof(si);
ZeroMemory(&si, sizeof(si));
PROCESS_INFORMATION pi;
View clear.cpp
int main()
{
STARTUPINFO si;
si.cb = sizeof(si);
ZeroMemory(&si, sizeof(si));
PROCESS_INFORMATION pi;
ZeroMemory(&pi, sizeof(pi));
}
View cb.cpp
int main()
{
STARTUPINFO si;
si.cb = sizeof(si);
PROCESS_INFORMATION pi;
}
View Win32API_CreateProcess.cpp
#include <iostream>
#include <Windows.h>
int main()
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
}