| 63 | |
| 64 | |
| 65 | HANDLE w_NtAlpcConnectPort( |
| 66 | PUNICODE_STRING PortName, |
| 67 | POBJECT_ATTRIBUTES ObjectAttributes, |
| 68 | PALPC_PORT_ATTRIBUTES PortAttributes, |
| 69 | DWORD ConnectionFlags, |
| 70 | PSID RequiredServerSid, |
| 71 | PPORT_MESSAGE ConnectionMessage, |
| 72 | PSIZE_T ConnectMessageSize, |
| 73 | PALPC_MESSAGE_ATTRIBUTES OutMessageAttributes, |
| 74 | PALPC_MESSAGE_ATTRIBUTES InMessageAttributes, |
| 75 | PLARGE_INTEGER Timeout |
| 76 | ) |
| 77 | { |
| 78 | HANDLE hAlpc; |
| 79 | NT_SUCCESS_OR_RAISE( |
| 80 | "NtAlpcConnectPort", |
| 81 | NtAlpcConnectPort( |
| 82 | &hAlpc, |
| 83 | PortName, |
| 84 | ObjectAttributes, |
| 85 | PortAttributes, |
| 86 | ConnectionFlags, |
| 87 | RequiredServerSid, |
| 88 | ConnectionMessage, |
| 89 | ConnectMessageSize, |
| 90 | OutMessageAttributes, |
| 91 | InMessageAttributes, |
| 92 | Timeout) |
| 93 | ); |
| 94 | |
| 95 | return hAlpc; |
| 96 | } |
| 97 | |
| 98 | BOOLEAN w_RtlAdjustPrivilege(ULONG Privilege, BOOLEAN Enable, BOOLEAN CurrentThread) |
| 99 | { |
no test coverage detected