Click here to Skip to main content
15,898,134 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Using MFC within a .NET application Pin
skonopa22-Mar-05 4:06
skonopa22-Mar-05 4:06 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟22-Mar-05 4:17
Sheng Jiang 蒋晟22-Mar-05 4:17 
GeneralRe: Using MFC within a .NET application Pin
skonopa22-Mar-05 7:31
skonopa22-Mar-05 7:31 
GeneralRe: Using MFC within a .NET application Pin
skonopa23-Mar-05 5:37
skonopa23-Mar-05 5:37 
GeneralRe: Using MFC within a .NET application Pin
Sheng Jiang 蒋晟23-Mar-05 8:05
Sheng Jiang 蒋晟23-Mar-05 8:05 
GeneralRe: Using MFC within a .NET application Pin
sunhui1-Jun-05 17:54
sunhui1-Jun-05 17:54 
GeneralLoad custom User control (at runtime) Pin
Lythimer14-Mar-05 10:24
Lythimer14-Mar-05 10:24 
Generalvirtual memory Pin
mpapeo13-Mar-05 22:21
mpapeo13-Mar-05 22:21 
Please help me with this. I want to extract the information about subsequent pages using this function
VirtualQuertEx()but i don't how i can go about it.
<br />
PROCESS_INFORMATION pi;       <br />
	STARTUPINFO si;               <br />
	HANDLE hProcess; <br />
	BYTE buf[20000];<br />
	DWORD NumberOfBytesRead = 0;<br />
	DWORD bufsize = sizeof buf;<br />
	DWORD baseaddr = 0;<br />
	DWORD lpAddr = 0;<br />
	PMEMORY_BASIC_INFORMATION lpBuffer = 0;<br />
	DWORD dwLength = 200000;/****/<br />
	DWORD flNewProtect =0;<br />
	PDWORD lpflOldProtect = 0;<br />
	DWORD dwSize =0;<br />
	LPCVOID lpBaseAddress = 0;<br />
	DWORD nSize = 0;<br />
<br />
VirtualQueryEx(<br />
hProcess,    // handle to process<br />
&lpAddr,  // address of region<br />
buf,// address of information buffer<br />
sizeof (MEMORY_BASIC_INFORMATION));// size of buffer<br />
<br />
	VirtualProtectEx(<br />
	hProcess,     // handle to process<br />
	lpAddr,    // address of region of committed pages<br />
	dwSize,        // size of region<br />
	flNewProtect,  // desired access protection<br />
	lpflOldProtect );// address of variable to get old protection<br />
     <br />
	ZeroMemory(buf, sizeof(buf));<br />
if( ReadProcessMemory( hProcess, lpBaseAddress, buf, bufsize, &NumberOfBytesRead ) == FALSE )<br />
	{<br />
	printf("\nProcess ID %d ",pi.dwProcessId);<br />
	printf (" memory read failed (errcode: %d)", GetLastError());<br />
	}<br />
	else<br />
	{<br />
	printf("\nProcess ID %d ",pi.dwProcessId);<br />
	printf("memory read: \n",buf);<br />
        GetLastError());<br />
	}<br />

How can i retrieve the buff size from that function

oam
QuestionHow to input and output chinese Pin
ckhung11-Mar-05 9:06
ckhung11-Mar-05 9:06 
AnswerRe: How to input and output chinese Pin
toxcct22-Mar-05 4:16
toxcct22-Mar-05 4:16 
GeneralDirectX MC++ Sprites fail to present Pin
sdnoonan10-Mar-05 18:17
sdnoonan10-Mar-05 18:17 
GeneralInter Process comunication Pin
lightKnight9-Mar-05 18:31
lightKnight9-Mar-05 18:31 
General2.0 beta-1 IDE Pin
TFB9-Mar-05 6:47
TFB9-Mar-05 6:47 
QuestionWinsock Question ? Pin
covansys20008-Mar-05 18:13
covansys20008-Mar-05 18:13 
Generalbarcode on C lang Pin
france_philippines8-Mar-05 14:26
france_philippines8-Mar-05 14:26 
GeneralRe: barcode on C lang Pin
Christian Graus8-Mar-05 14:40
protectorChristian Graus8-Mar-05 14:40 
GeneralNewBie+FirstPost Pin
llordanich7-Mar-05 7:41
llordanich7-Mar-05 7:41 
GeneralRe: NewBie+FirstPost Pin
Christian Graus8-Mar-05 14:45
protectorChristian Graus8-Mar-05 14:45 
GeneralRe: NewBie+FirstPost Pin
covansys20008-Mar-05 21:00
covansys20008-Mar-05 21:00 
GeneralWrappers for Win32 classes Pin
AshishM6-Mar-05 23:42
AshishM6-Mar-05 23:42 
GeneralRe: Wrappers for Win32 classes Pin
Christian Graus8-Mar-05 14:46
protectorChristian Graus8-Mar-05 14:46 
GeneralCLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 4:02
sympthom 96-Mar-05 4:02 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
ursus zeta6-Mar-05 12:38
ursus zeta6-Mar-05 12:38 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 20:27
sympthom 96-Mar-05 20:27 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 20:41
sympthom 96-Mar-05 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.