Reply To: invite all budlist in c++

#191258
Chike
Member

There are many examples in the forums using this.
First find pal process id:

GetWindowThreadProcessId(palWnd, palProcId)

The open a handle for pal process:

hPalProc = OpenProcess(PROCESS_VM_OPERATION or PROCESS_VM_READ  or PROCESS_VM_WRITE, 0, palProcId)

Allocate memory in pal process adress space:

palMem = VirtualAllocEx(hPalProc, 0, Len(LV), MEM_COMMIT or MEM_RESERVE, PAGE_READWRITE)

Copy LV structure to pal memory:

WriteProcessMemory(hPalProc , palMem, LV, Len(LV), 0)

Make your call with palMem instead of LV.

Release pal memory:

VirtualFreeEx(hPalProc , palMem , 0, MEM_RELEASE)

Close pal process handle

CloseHandle(hPalProc)

I am not going to declare the functions for you you gotta know how to do this yourself by now, nor the values or type for each varuable/constant.
Use MSDN Library for reference, and the link departure posted, anything else google or search the forums.
If you are going to program you must learn to find things by yourself or you’re just waisting time.