Win32 - HANDLE

Started by
2 comments, last by Catafriggm 18 years, 11 months ago
Hello, could anyone give me an overview on how to use a win32 HANDLE or point me towards a good tutorial? I need to use this and the structure takes in a HANDLE for the event to be executed. I would like it to call a function or perhaps set a variable, but I'm not sure how to go about doing this.
Advertisement
http://msdn.microsoft.com/library/en-us/sysinfo/base/about_handles_and_objects.asp?frame=true
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                          
Looking for video game music? Check out some of my samples at http://www.youtube.c...ser/cminortunes            
                                                          
I'm currently looking to create music for a project, if you are interested e-mail me at cminortunes@gmail.com    
                                                          
Please only message me for hobby projects, I am not looking to create music for anything serious.
Quote:Original post by SumDude
http://msdn.microsoft.com/library/en-us/sysinfo/base/about_handles_and_objects.asp?frame=true


I don't think this is what I'm looking for. It doesn't seem to be about HANDLEs, but rather some other sort of "handle" if that makes any sense. Doesn't explain much either way.
Short answer: a HANDLE is an index into the process' handle table, which is basically a table of pointers to kernel mode objects (files, etc.). They don't really have any meaning in user mode (which is where your code will be running). You just pass them to the appropriate functions that go into kernel mode.

I should note that not all HANDLEs are like this. Some "HANDLE"s are just user mode pointers that are masked by typecasting to a HANDLE. Either way, you should not be messing around with them. Just treat them as what they are - handles.

This topic is closed to new replies.

Advertisement