13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DefHookProcDefHookProcSyntaxDWORDDefHookProcCcode, wParam,IParam,lplpfnNextHook)function DefHookProcCCode: Integer; wParam: Word; IParam: Longint;NextHook: TFarProc): Longint;This function calls the next function in a chain of hook functions. A hookfunction is a function that processes events before they are sent to anapplication's message-processing loop in the WinMain function. When anapplication defines more than one hook function by using theSetWindowsHook function, Windows forms a linked list or hook chain.Windows places functions of the same type in a chain.Parameters code int Specifies a code used by the Windows hook functionCalso called the message filter function) to determine howto process the message.Return valuewParamIParamWORD Specifies the word parameter of the message thatthe hook function is processing.DWORD Specifies the long parameter of the message thatthe hook function is processing.IplpfnNextHook FARPROC FAR * Points to a memory location thatcontains the FARPROC structure returned by theSetWindowsHook function. Windows changes the valueat this location after an application calls theUnhookWindowsHook function.The return value specifies a value that is directly related to the codeparameter.DefineHandleTable 3.0SyntaxBOOL DefineHandleTableCwOffset)function DefineHandleTableCOffset: Word): Bool;This function creates a private handle table in an application's default datasegment. The application stores in the table the segment addresses ofglobal memory objects returned by the GlobalLock function. In real mode,Windows updates the corresponding address in the private handle tablewhen it moves a global memory object. When Windows discards an objectwith a corresponding table entry, Windows replaces the address of theobject in the table with the object's handle. Windows does not update224Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!