Is this evev possible to do? If so, how?
Is this evev possible to do? If so, how?
Is this your entry in the terse question of the week award competition?
If you're referring to function pointers, then yes is the answer.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
No I'm not, I mean converting (more so moving the actuall data in memory that the callback is obtaining into a varible for handling.Originally Posted by Salem
In specific, a FARPROC to an PLVOID.
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Well if it's a well-written callback, it will get some kind of 'context' pointer which relates to the data which it is supposed to work with.
Given any pointer to any bit of user data, you can use that to get access to whatever data you need.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.