.decls gesucht!
Übersicht

![]() |
JeanBetreff: .decls gesucht! |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hallo Zusammen
In der KAtegorie UserLibs gibt es den Eintrag "Direct Memory Access". Leider Funktioniert dort der DL Link nicht mehr. Ich habe nur noch die Dll und deren Quelltext und benötige jetzt aber die .decls Datei. Könnte die jemand anhand des C++ Quelltextes rekonstruieren? Code: [AUSKLAPPEN] // dll2.cpp : Defines the entry point for the DLL application.
// #include "stdafx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } //demo.dll // #include <stdlib.h> #include <windows.h> #define BBDECL extern "C" _declspec(dllexport) #define BBCALL _stdcall BBDECL void BBCALL MsgBox(char *strTitle, char *strMsg, unsigned int uiButtons,unsigned int uiIcon) { MessageBox(0,strMsg,strTitle,uiButtons|uiIcon); } BBDECL HANDLE BBCALL FindProcess(char *strProcessName) { DWORD procid; HANDLE hproc; HWND hWnd; hWnd = FindWindow(0,strProcessName); if(!hWnd) { return 0; } else{ GetWindowThreadProcessId(hWnd, &procid); hproc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procid); return hproc; } } BBDECL void BBCALL CloseProcessHandle(HANDLE *hproc) { CloseHandle(hproc); } BBDECL int BBCALL ReadMemValue(HANDLE *hproc, unsigned adress) { DWORD rw = 0; int rScore = 0; if(ReadProcessMemory(hproc,(LPCVOID)adress,&rScore,sizeof(rScore),&rw)) { return rScore; } else { return 0; } } BBDECL void BBCALL WriteMemValue(HANDLE *hproc,unsigned adress, int wScore) { DWORD rw = 0; WriteProcessMemory(hproc,(LPVOID)adress,&wScore,sizeof(wScore),&rw); } Vielen Dank Jan |
||
![]() |
Jean |
![]() Antworten mit Zitat ![]() |
---|---|---|
Kann denn keiner von euch C++? ![]() Bitte helft mir! Ohne diese Lib komme ich nicht weiter! Gruss Jan |
||
![]() |
d-bug |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hast wohl das Update verpasst, was ? ![]() https://www.blitzforum.de/foru...341#201341 cheers |
||
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group