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.

PostMessageCommentsAn application should never use the PostMessage function to send amessage to a control. If a system running Windows is configured for anexpanded-memory system (EMS) and an application sends a message (byusing the PostMessage function) with related data (that are pointed to bythe IParam parameter) to a second application, the first application mustplace the data (that IParam points to) in global memory allocated with theGlobalAlioc function and the GMEM_LOWER flag. Note that thisallocation of memory is necessary only if IParam contains a pointer.Unlike other Windows functions, an application may call PostMessage atthe hardwareinterrupt level.PostQuitMessageSyntaxParametersReturn valuevoid PostQuitMessage(nExitCode)procedure PostQuitMessage(ExitCode: Integer);This function informs Windows that the application wishes to terminateexecution. It is typically used in response to a WM_DESTROY message.The PostQuitMessage function posts a WM_QUIT message to theapplication and returns immediately; the function merely informs thesystem that the application wants to quit sometime in the future.When the application receives the WM_QUIT message, it should exit themessage loop in the main function and return control to Windows. Theexit code returned to Windows must be the wParam parameter of theWM_ QUIT message.nExitCodeNone.int Specifies an application exit code. It is used as thewParam parameter of the WM_ QUIT message.Prof Clear 3.0Syntax void ProfClear( )ParametersReturn valueWhen running the Microsoft Windows Profiler, this function discards allsamples currently in the sampling buffer. See Tools for more informationon using the Profiler.None.None.Chapter 4, Functions directory 459

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

Saved successfully!

Ooh no, something went wrong!