ntdll: Clarify the documentation for HandleTable.
This commit is contained in:
parent
4f2819f2e1
commit
54421bf806
|
@ -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().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue