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.ComponentModel; | |
using System.Runtime.InteropServices; | |
namespace ComWithoutRegisteringExample | |
{ | |
internal static class ComHelper | |
{ | |
private delegate int DllGetClassObject(ref Guid clsid, ref Guid iid, [Out, MarshalAs(UnmanagedType.Interface)] out IClassFactory classFactory); |
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
#ifndef _WIN32_IE | |
#define _WIN32_IE 0x0600 | |
#elif _WIN32_IE <= 0x0600 | |
#undef _WIN32_IE | |
#define _WIN32_IE 0x0600 | |
#endif | |
// Win XP or higher | |
#ifndef _WIN32_WINNT | |
#define _WIN32_WINNT 0x0501 |
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.Linq; | |
using System.Text; | |
using System.DirectoryServices; | |
using System.Runtime.InteropServices; | |
namespace ConsoleApplication1 | |
{ |
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.Text; | |
using System.Diagnostics; | |
using System.DirectoryServices; | |
using System.Collections; | |
using System.Runtime.InteropServices; | |
using System.Data; |
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
Module Module1 | |
Sub Main() | |
' Open up the text file | |
Dim oFSO, oTS, sOU, sGrp | |
oFSO = CreateObject("Scripting.FileSystemObject") | |
oTS = oFSO.OpenTextFile("D:\batch\users.csv") | |
Const ADS_PROPERTY_APPEND = 3 |
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 leaflet.js to pan and zoom a big image. | |
// See also: http://kempe.net/blog/2014/06/14/leaflet-pan-zoom-image.html | |
// create the slippy map | |
var map = L.map('image-map', { | |
minZoom: 1, | |
maxZoom: 4, | |
center: [0, 0], | |
zoom: 1, | |
crs: L.CRS.Simple |
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.Collections; | |
ArrayList arrayList = new ArrayList(); | |
arrayList.Add("Malzeme 1"); // Ekleme yapıyoruz | |
arrayList.Add("Malzeme iki"); | |
arrayList.Add("Malzeme2"); | |
arrayList.Add("Malzeme 2"); | |
arrayList.Add("Malzeme 4"); | |
arrayList.Add("Array List"); |
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 <stdio.h> | |
#ifdef _WIN64 | |
#define CAPTION "atomos - memory patcher for chimera #01 (64-bit)" | |
#define EXENAME "target64.exe" // change it to target "target32.exe" for Wow64 test. | |
#else | |
#define CAPTION "atomos - memory patcher for chimera #01 (32-bit)" | |
#define EXENAME "target32.exe" | |
#endif |
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 <stdio.h> | |
#ifdef _WIN64 | |
#define CAPTION "atomos - memory patcher for chimera #01 (64-bit)" | |
#define EXENAME "target64.exe" | |
#else | |
#define CAPTION "atomos - memory patcher for chimera #01 (32-bit)" | |
#define EXENAME "target32.exe" | |
#endif |
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 | |
#include "windows.h" | |
#include "stdlib.h" | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ | |
HANDLE prochandle; //a handle to the process we want to inject our dll into | |
HANDLE threadhandle; //this will be a handle to the remote thread we will create |
OlderNewer