Merchand
Well-known member
How does Process.GetCurrentProcess() work?
I'm using the following code in method called GetCurrentHandle(). However, I'm expecting this to return the current handle but it is returning different handles each time. What is GetCurrentProcess really return for the Process? Just trying to learn here...
Dim myProcess As Process
myProcess = Process.GetCurrentProcess()
GetCurrentHandle = myProcess.Handle
Any information is greatly appreciated!
I'm using the following code in method called GetCurrentHandle(). However, I'm expecting this to return the current handle but it is returning different handles each time. What is GetCurrentProcess really return for the Process? Just trying to learn here...
Dim myProcess As Process
myProcess = Process.GetCurrentProcess()
GetCurrentHandle = myProcess.Handle
Any information is greatly appreciated!