Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why C++ doesn't use the parent's class function? (C++ question) Pin
Green Fuze28-May-10 21:11
Green Fuze28-May-10 21:11 
GeneralRe: Why C++ doesn't use the parent's class function? (C++ question) Pin
eusto28-May-10 23:20
eusto28-May-10 23:20 
GeneralRe: Why C++ doesn't use the parent's class function? (C++ question) Pin
Green Fuze29-May-10 1:33
Green Fuze29-May-10 1:33 
GeneralRe: Why C++ doesn't use the parent's class function? (C++ question) Pin
eusto29-May-10 8:44
eusto29-May-10 8:44 
Questionproblem with creating model-less dialog as a child of CFormView Pin
m_code28-May-10 18:54
m_code28-May-10 18:54 
AnswerRe: problem with creating model-less dialog as a child of CFormView Pin
Richard MacCutchan28-May-10 22:26
mveRichard MacCutchan28-May-10 22:26 
GeneralRe: problem with creating model-less dialog as a child of CFormView Pin
m_code29-May-10 8:39
m_code29-May-10 8:39 
Questionabout Hook WriteProcessMemory Pin
rockago28-May-10 12:30
rockago28-May-10 12:30 
Who can tell me how to use the "Detours" to Hook WriteProcessMemory?
I want to get WriteProcessMemory the memory of information.
<br />
BOOL WINAPI MyWriteProcessMemory(<br />
  HANDLE hProcess,               // handle to process<br />
  LPVOID lpBaseAddress,          // base of memory area<br />
  LPVOID lpBuffer,               // data buffer<br />
  DWORD nSize,                   // number of bytes to write<br />
  LPDWORD lpNumberOfBytesWritten // number of bytes written<br />
);<br />
DETOUR_TRAMPOLINE(BOOL WINAPI CopyWriteProcessMemory(HANDLE, LPVOID, LPVOID, DWORD, LPDWORD), WriteProcessMemory);<br />
BOOL WINAPI MyWriteProcessMemory(<br />
  HANDLE hProcess,               // handle to process<br />
  LPVOID lpBaseAddress,          // base of memory area<br />
  LPVOID lpBuffer,               // data buffer<br />
  DWORD nSize,                   // number of bytes to write<br />
  LPDWORD lpNumberOfBytesWritten) // number of bytes written<br />
{<br />
    BOOL nResult=WriteProcessMemory(hProcess,lpBaseAddress,lpBaseAddress,nSize,lpNumberOfBytesWritten);    //call origin function<br />
 MessageBoxA(NULL,(LPCTSTR)lpBaseAddress,"Hook!",MB_OK);  <br />
return nResult;<br />
}<br />

this's my code ,but is not work. Frown | :(
AnswerRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 14:02
professionalGarth J Lancaster28-May-10 14:02 
GeneralRe: about Hook WriteProcessMemory Pin
rockago28-May-10 14:23
rockago28-May-10 14:23 
GeneralRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 15:07
professionalGarth J Lancaster28-May-10 15:07 
GeneralRe: about Hook WriteProcessMemory Pin
rockago28-May-10 21:48
rockago28-May-10 21:48 
GeneralRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 22:27
professionalGarth J Lancaster28-May-10 22:27 
AnswerRe: about Hook WriteProcessMemory Pin
Richard MacCutchan28-May-10 22:22
mveRichard MacCutchan28-May-10 22:22 
GeneralRe: about Hook WriteProcessMemory Pin
Garth J Lancaster28-May-10 22:33
professionalGarth J Lancaster28-May-10 22:33 
GeneralRe: about Hook WriteProcessMemory Pin
Richard MacCutchan28-May-10 23:09
mveRichard MacCutchan28-May-10 23:09 
QuestionWrite a function to cause a thread to wait Pin
Danzy8328-May-10 9:08
Danzy8328-May-10 9:08 
AnswerRe: Write a function to cause a thread to wait Pin
CPallini28-May-10 9:19
mveCPallini28-May-10 9:19 
AnswerRe: Write a function to cause a thread to wait Pin
Luc Pattyn28-May-10 9:33
sitebuilderLuc Pattyn28-May-10 9:33 
AnswerRe: Write a function to cause a thread to wait Pin
Cedric Moonen28-May-10 10:02
Cedric Moonen28-May-10 10:02 
GeneralRe: Write a function to cause a thread to wait Pin
CPallini28-May-10 11:08
mveCPallini28-May-10 11:08 
AnswerRe: Write a function to cause a thread to wait Pin
malaugh28-May-10 11:18
malaugh28-May-10 11:18 
AnswerRe: Write a function to cause a thread to wait Pin
Richard MacCutchan28-May-10 22:17
mveRichard MacCutchan28-May-10 22:17 
QuestionOnPrint from IE Pin
mesajflaviu28-May-10 4:34
mesajflaviu28-May-10 4:34 
AnswerRe: OnPrint from IE Pin
mesajflaviu28-May-10 7:43
mesajflaviu28-May-10 7:43 

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.