Send the ``alpc_message`` with ``flags`` :param alpc_message: The message to send. If ``alpc_message`` is a :class:`str` it build an AlpcMessage with the message as data. :type alpc_message: AlpcMessage or str :param int flags: The flags for :func:`NtAlpcSendWait
(self, alpc_message, flags=0)
| 317 | return receive_msg |
| 318 | |
| 319 | def send(self, alpc_message, flags=0): |
| 320 | """Send the ``alpc_message`` with ``flags`` |
| 321 | |
| 322 | :param alpc_message: The message to send. If ``alpc_message`` is a :class:`str` it build an AlpcMessage with the message as data. |
| 323 | :type alpc_message: AlpcMessage or str |
| 324 | :param int flags: The flags for :func:`NtAlpcSendWaitReceivePort` |
| 325 | """ |
| 326 | if isinstance(alpc_message, windows.pycompat.anybuff): |
| 327 | raw_alpc_message = alpc_message |
| 328 | alpc_message = AlpcMessage(max(0x1000, len(alpc_message) + 0x200)) |
| 329 | alpc_message.port_message.data = raw_alpc_message |
| 330 | winproxy.NtAlpcSendWaitReceivePort(self.handle, flags, alpc_message.port_message, alpc_message.attributes, None, None, None, None) |
| 331 | |
| 332 | def recv(self, receive_msg=None, flags=0): |
| 333 | """Receive a message into ``alpc_message`` with ``flags``. |
nothing calls this directly
no test coverage detected