Hey everyone.
I have this line...
and I pass it to my SystemType's member functions when i want to do something to one of its processes. The reason I want to use ProcessHandles is that a handle must be one larger than an index. So if the process's index is 1, then the handle is 2. If the index is 0, the handle is 1. The reason for this is that I want to be able to, in my code, check if the handle is valid by saying...Code:typedef int ProcessHandleType;
But the problem is that in the SystemType's functions, it accepts ProcessHandleTypes but it will also accept plain integers!Code:ProcessHandleType Handle = System.Add( MainInitialize() ); if( !Handle ) { cout << "Couldn't add main process." << endl; return 1; }
Long question short, how do I make it so I can typedef an integer as a ProcessHandleType, but not be able to pass integers when a function accepts a ProcessHandleType?
Thanks!