All pastes #926727 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-03 20:29 UTC
rendered paste body
#define WIN_32_LEAN_AND_MEAN
#include "stdafx.h"
#include "windows.h"
#include <iostream>

using namespace std;

int main() {
	HINSTANCE hinstLib;

	if (!(LoadLibrary("iTunesMobileDevice.dll"))) {
		cout << "Could not load." << endl;
		cout << GetLastError() << endl;
	}

	else {
		cout << "Loaded iTunesMobileDevice.dll successfully!" << endl;
	}

	HMODULE hGetProcIDDLL;

	if(!(hGetProcIDDLL = GetModuleHandle("iTunesMobileDevice.dll"))) {
		cout << "Could not find iTunesMobileDevice.dll in memory to get a handle on! Exiting..." << endl;
		cout << GetLastError() << endl;
	}

	else {
		cout << "Got a handle on iTunesMobileDevice.dll successfully in memory!" << endl;
	}

	system("pause");
	return 0;
}