View divk2.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using DInvoke.DynamicInvoke; | |
namespace ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Unicode)] |
View divk.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using DInvoke.DynamicInvoke; | |
namespace ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Unicode)] |
View notepad.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace PInvoke | |
{ | |
internal class Program | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct STARTUPINFO | |
{ |
View c.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace PInvoke | |
{ | |
internal class Program | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct STARTUPINFO | |
{ |
View pmsg.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
int main() | |
{ | |
STARTUPINFO si; | |
si.cb = sizeof(si); | |
ZeroMemory(&si, sizeof(si)); | |
PROCESS_INFORMATION pi; |
View clear.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
STARTUPINFO si; | |
si.cb = sizeof(si); | |
ZeroMemory(&si, sizeof(si)); | |
PROCESS_INFORMATION pi; | |
ZeroMemory(&pi, sizeof(pi)); | |
} |
View cb.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
STARTUPINFO si; | |
si.cb = sizeof(si); | |
PROCESS_INFORMATION pi; | |
} |
View Win32API_CreateProcess.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
int main() | |
{ | |
STARTUPINFO si; | |
PROCESS_INFORMATION pi; | |
} |
NewerOlder