Click here to Skip to main content
15,912,493 members

Comments by luama (Top 1 by date)

luama 13-Jun-11 21:35pm View    
thank you for you answerthe error is The Image File I Got was a Black Picture.

I Bind a dll By that code,And inject the dll into Notepad.exe,and the dll will hook the EndPage(), as:
bool EndPageHook(HDC hdc)
{
// calculate some parameters

SaveToBmp(hdc, rc, ImgDstSize, lpFilePath);

// ReSet Unhook the Func Addr
bool bResult = EndPage(hdc);

// Set Hook the Func Addr

return bResult;
}

The hdc should not be an error hdc.