Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 32 of file compses.c.
{ NTSTATUS Status; SM_PORT_MESSAGE SmReqMsg; DPRINT("SMLIB: %s called\n", __FUNCTION__); /* Marshal Ses in the LPC message */ SmReqMsg.Request.CompSes.hApiPort = hApiPort; SmReqMsg.Request.CompSes.hSbApiPort = hSbApiPort; /* SM API to invoke */ SmReqMsg.SmHeader.ApiIndex = SM_API_COMPLETE_SESSION; /* Port message */ SmReqMsg.Header.u2.s2.Type = LPC_NEW_MESSAGE; SmReqMsg.Header.u1.s1.DataLength = SM_PORT_DATA_SIZE(SmReqMsg.Request); SmReqMsg.Header.u1.s1.TotalLength = SM_PORT_MESSAGE_SIZE; Status = NtRequestWaitReplyPort (hSmApiPort, (PPORT_MESSAGE) & SmReqMsg, (PPORT_MESSAGE) & SmReqMsg); if (NT_SUCCESS(Status)) { return SmReqMsg.SmHeader.Status; } DPRINT("SMLIB: %s failed (Status=0x%08lx)\n", __FUNCTION__, Status); return Status; }