Jump to content
  • Advertisement
Sign in to follow this  
load_bitmap_file

Win32 - HANDLE

This topic is 4907 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
http://msdn.microsoft.com/library/en-us/sysinfo/base/about_handles_and_objects.asp?frame=true

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!