MCPcopy Create free account
hub / github.com/SafeBreach-Labs/PoolParty / w_NtAlpcConnectPort

Function w_NtAlpcConnectPort

PoolParty/Native.cpp:65–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65HANDLE 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
98BOOLEAN w_RtlAdjustPrivilege(ULONG Privilege, BOOLEAN Enable, BOOLEAN CurrentThread)
99{

Callers 1

SetupExecutionMethod · 0.85

Calls 1

NT_SUCCESS_OR_RAISEFunction · 0.85

Tested by

no test coverage detected