Home | Info | Community | Development | myReactOS | Contact Us
CreateNtObjectFromWin32ApiPrologue \ if (!name) \ { \ BaseSetLastNTError(STATUS_INVALID_PARAMETER); \ return NULL; \ } \ RtlInitUnicodeString(&ObjectName, name); \ InitializeObjectAttributes(ObjectAttributes, \ &ObjectName, \ inh ? OBJ_INHERIT : 0, \ BaseGetNamedObjectDirectory(), \ NULL); \ Status = NtOpen##ntobj(&Handle, acc, ObjectAttributes); \ if (!NT_SUCCESS(Status)) \ { \ BaseSetLastNTError(Status); \ return NULL; \ } \ return Handle; \ }
Definition at line 148 of file base_x.h.
Referenced by OpenEventW(), OpenJobObjectW(), OpenMutexW(), OpenSemaphoreW(), and OpenWaitableTimerW().