Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 100 of file lpc_x.h.
Referenced by LpcRequestPort(), LpcRequestWaitReplyPort(), NtReplyPort(), NtReplyWaitReceivePortEx(), NtRequestPort(), NtRequestWaitReplyPort(), and NtSecureConnectPort().
{ PLPCP_MESSAGE Message; /* Allocate a message from the port zone while holding the lock */ KeAcquireGuardedMutex(&LpcpLock); Message = (PLPCP_MESSAGE)ExAllocateFromPagedLookasideList(&LpcpMessagesLookaside); if (!Message) { /* Fail, and let caller cleanup */ KeReleaseGuardedMutex(&LpcpLock); return NULL; } /* Initialize it */ InitializeListHead(&Message->Entry); Message->RepliedToThread = NULL; Message->Request.u2.ZeroInit = 0; /* Release the lock */ KeReleaseGuardedMutex(&LpcpLock); return Message; }