Callback in MFC
-
How to implement a callback function in MFC or how to enumerate Process in MFC
-
How to implement a callback function in MFC or how to enumerate Process in MFC
Callback functions are implemented in MFC just as they are implemented in Win32: you create your own function that follows the guidelines specified by the documentation (function return value & parameters), then give this function's address (it's name) as a parameter for the routine that starts the enumeration. The routine will call your function with the appropriate parameters for each object or instance it finds. In the case of process enumeration, these objects/instances are the different processes running in the system. The PS API offers an alternative way: it fills a specified DWORD array with the process identifiers. See this page[^] for an example. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
How to implement a callback function in MFC or how to enumerate Process in MFC
SiddharthAtw wrote: ...how to enumerate Process in MFC See if
Process32First()
andProcess32Next()
help.
A rich person is not the one who has the most, but the one that needs the least.