Jump to content

Recommended Posts

Posted (edited)

Is there a way to check how handle is created?
whether it's belong to....
 1) _WinAPI_OpenProcess
 2) _WinAPI_CreateEvent
 3) _WinAPI_CreateMutex

Edited by jugador
Posted (edited)

Yes I can use flag then use if logic

Func _EgUdf(.... , $flag = 'Process')
    ......
    If $flag = 'Process' Then ....
    If $flag = 'Event' Then ....
    If $flag = 'Mutex' Then ....
Endfunc


but that not dynamic. I want to omit the chance of setting wrong flag by mistake.
so that why I am looking for procedure or any winaapi function to do this. 
which can detect how the handle is created?

Edit: solved :)

Edited by jugador

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...