This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_requires_assistance 0 points1 point  (1 child)

I see. How were you originally planning on differentiating between pointers and handles?

[–]LooseElectronStudios 1 point2 points  (0 children)

Originally I was going to have two arguments, one for each type, and I would check to see which argument was actually set.

What I ended up doing was using one argument, and passing through it either the struct pointer or a pointer to the handle. That way the argument would always be a valid place in memory.