Skip to content

Instantly share code, notes, and snippets.

@MSDN-WhiteKnight
MSDN-WhiteKnight / DeletedMessages.md
Last active January 14, 2020 03:51
Messages deleted from ru.stackoverflow.com meta
@MSDN-WhiteKnight
MSDN-WhiteKnight / gist:005c50cc0bdc69a1abbe1bd18dac7790
Last active September 25, 2019 19:41
Deleted chat 06.04.2019
Page moved to: https://github.com/MSDN-WhiteKnight/ruso-archive/blob/master/deleted-messages/chat-20190405.txt
@MSDN-WhiteKnight
MSDN-WhiteKnight / docs-todo.txt
Last active June 3, 2022 09:46
MS Docs articles for improvement
https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-5243-database-engine-error?view=sql-server-ver15
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/reference-types#the-string-type
(double hyphen to dash)
https://docs.microsoft.com/en-us/dotnet/framework/windows-services/how-to-start-services
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.application.openforms?view=netframework-4.8 (needs example)
https://docs.microsoft.com/en-us/dotnet/api/system.net.networkinformation.networkinterface?view=netframework-4.7.1 (https://github.com/dotnet/dotnet-api-docs/issues/797)
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodinfoextensions.getbasedefinition?view=netcore-2.0#System_Reflection_MethodInfoExtensions_GetBaseDefinition_System_Reflection_MethodInfo_
https://docs.microsoft.com/en-us/dotnet/api/system.windows.gridlength?view=netframework-4.8
@MSDN-WhiteKnight
MSDN-WhiteKnight / main.cpp
Created July 25, 2019 07:02
GetWindowText example
#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;
using System;
using System.Collections;
using System.Linq.Expressions;
using System.Reflection;
namespace ConsoleApplication1
{
class Program
{
public static object call(object[] args)
@MSDN-WhiteKnight
MSDN-WhiteKnight / msbuild.yml
Last active November 21, 2019 05:45
MSBuild CI
name: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
@MSDN-WhiteKnight
MSDN-WhiteKnight / x86.cpp
Created January 24, 2020 08:31
C++ x86 Test
//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 {
@MSDN-WhiteKnight
MSDN-WhiteKnight / direct3d.cpp
Created June 8, 2020 03:49
Direct3D example
#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
#include <d3d9.h>
#pragma comment (lib, "d3d9.lib")
LPDIRECT3D9 d3d;
LPDIRECT3DDEVICE9 device;
@MSDN-WhiteKnight
MSDN-WhiteKnight / ICorDebug.cpp
Created September 21, 2020 04:36
ICorDebug
#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) {