Searches the given process's object directory for a given name and, if found, returns the object handle. The calling thread can wait for the object to be cataloged if not present at the time of the call.
Use ntxLookupNtxHandle to get an object's handle so a thread can access the object. You specify the handle of the process whose object directory you want to search, the name of the object, and the amount of time the thread can wait. If the object is not cataloged, the thread goes to sleep by waiting for the specified time or until the name is cataloged, whichever comes first.
Visual Basic:
Function ntxLookupNtxhandle( ByVal hRtProcess As Integer, ByVal lpszName As String, ByVal dwMilliseconds As Integer) As Integer
Visual C#:
Int32 ntxLookupNtxhandle ( Int32 hRtProcess, String lpszName, Int32 dwMilliseconds);
hRtProcess
lpszName
dwMilliseconds
NTX_NO_WAIT |
The thread does not wait. |
NTX_INFINITE |
The thread waits for its request to be fully satisfied. |
Any positive integer |
Calling thread goes to sleep for this many milliseconds, after which it awakes.
Note: The kernel converts milliseconds to high-level ticks. |
The handle associated with the specified name.
E_TIME
dwMilliseconds
.
lpszName
is not in the specified object directory. E_LIMIT
E_CONTEXT
E_EXIST
hRtProcess
(if not a null selector) is not a handle for an existing object.
E_TYPE
E_PARAM
lpszName
contains a string with a length of 0 (zero) or greater than 12.
E_BAD_ADDR
lpszName
is invalid.
E_NTX_INTERNAL_ERROR
Versions | Reference |
---|---|
INtime 3.0 | INtimeDotNet |
INtimeDotNet system calls, Object directory system calls