Commit 54421bf8 authored by Jeff Latimer's avatar Jeff Latimer Committed by Alexandre Julliard

ntdll: Clarify the documentation for HandleTable.

parent 4f2819f2
......@@ -186,6 +186,16 @@ static NTSTATUS RtlpAllocateSomeHandles(RTL_HANDLE_TABLE * HandleTable)
* Success: Pointer to allocated handle.
* Failure: NULL.
*
* NOTES
* A valid handle must have the bit set as indicated in the code below
* otherwise subsquent RtlIsValidHandle() calls will fail.
*
* static inline void RtlpMakeHandleAllocated(RTL_HANDLE * Handle)
* {
* ULONG_PTR *AllocatedBit = (ULONG_PTR *)(&Handle->Next);
* *AllocatedBit = *AllocatedBit | 1;
* }
*
* SEE
* RtlFreeHandle().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment