This file contains hidden or 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.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace ConsoleApp1 | |
{ |
This file contains hidden or 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
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ItemDefinitionGroup> | |
<ClCompile> | |
<PreprocessorDefinitions>MY_DEFINITION;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
</ClCompile> | |
</ItemDefinitionGroup> | |
<ItemDefinitionGroup> | |
<Link> | |
<AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
This file contains hidden or 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
<ItemDefinitionGroup> | |
<Link> | |
<SubSystem>Windows</SubSystem> | |
<GenerateDebugInformation>true</GenerateDebugInformation> | |
<AdditionalLibraryDirectories>$(SolutionDir)\TestsCppApp\$(Configuration);$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | |
<AdditionalDependencies>TestsCppApp.obj;%(AdditionalDependencies)</AdditionalDependencies> | |
</Link> | |
</ItemDefinitionGroup> | |
#include "CppUnitTest.h" |
This file contains hidden or 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
<applicationRequestMinimum> | |
<defaultAssemblyRequest permissionSetReference="Custom" /> | |
<PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" > | |
<IPermission | |
class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" | |
version="1" | |
Read="USERNAME" /> | |
<IPermission | |
class="System.Security.Permissions.FileDialogPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" | |
version="1" |
This file contains hidden or 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 <stdio.h> | |
#include <Windows.h> | |
#include <CorHdr.h> | |
#include <metahost.h> | |
#include <CorDebug.h> | |
#pragma comment(lib, "mscoree.lib") | |
#pragma comment(lib, "CorGuids.lib") | |
void PrintProcessInfo(ICorDebugProcess* pDebug) { |
This file contains hidden or 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 <windows.h> | |
#include <windowsx.h> | |
#include <stdio.h> | |
#include <d3d9.h> | |
#pragma comment (lib, "d3d9.lib") | |
LPDIRECT3D9 d3d; | |
LPDIRECT3DDEVICE9 device; |
This file contains hidden or 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
//http://c-jump.com/CIS77/CPU/x86/lecture.html | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <tchar.h> | |
#include <Windows.h> | |
#include <DbgHelp.h> | |
#pragma comment(lib, "Dbghelp.lib") | |
struct Function { |
This file contains hidden or 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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: |
This file contains hidden or 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.Collections; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
public static object call(object[] args) |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <tchar.h> | |
LPCWSTR szWindowClass = L"MYWINDOW"; | |
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) | |
{ | |
const int size = 24; |
NewerOlder