diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-02 22:09:52 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-02 23:42:43 +0100 |
commit | 9a937c7a49ced541f805e8443c993b6de89324ac (patch) | |
tree | f5543e08c2dcb36bf53604398207a31a10f260e4 /api/session.h | |
parent | api: free beginning of heap object (diff) | |
download | wintun-9a937c7a49ced541f805e8443c993b6de89324ac.tar.xz wintun-9a937c7a49ced541f805e8443c993b6de89324ac.zip |
example: rewrite and replace api's debug rundll32 functionality
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/session.h')
-rw-r--r-- | api/session.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/api/session.h b/api/session.h deleted file mode 100644 index 6813ef3..0000000 --- a/api/session.h +++ /dev/null @@ -1,59 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 - * - * Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved. - */ - -#pragma once - -#include "wintun.h" -#include <Windows.h> - -typedef struct _TUN_SESSION TUN_SESSION; - -/** - * @copydoc WINTUN_START_SESSION_FUNC - */ -WINTUN_STATUS WINAPI -WintunStartSession( - _In_ const WINTUN_ADAPTER *Adapter, - _In_ DWORD Capacity, - _Out_ TUN_SESSION **Session); - -/** - * @copydoc WINTUN_END_SESSION_FUNC - */ -void WINAPI -WintunEndSession(_In_ TUN_SESSION *Session); - -/** - * @copydoc WINTUN_GET_READ_WAIT_EVENT_FUNC - */ -HANDLE WINAPI -WintunGetReadWaitEvent(_In_ TUN_SESSION *Session); - -/** - * @copydoc WINTUN_RECEIVE_PACKET_FUNC - */ -WINTUN_STATUS WINAPI -WintunReceivePacket(_In_ TUN_SESSION *Session, _Out_bytecapcount_(*PacketSize) BYTE **Packet, _Out_ DWORD *PacketSize); - -/** - * @copydoc WINTUN_RECEIVE_RELEASE_FUNC - */ -void WINAPI -WintunReceiveRelease(_In_ TUN_SESSION *Session, _In_ const BYTE *Packet); - -/** - * @copydoc WINTUN_ALLOCATE_SEND_PACKET - */ -WINTUN_STATUS WINAPI -WintunAllocateSendPacket( - _In_ TUN_SESSION *Session, - _In_ DWORD PacketSize, - _Out_bytecapcount_(PacketSize) BYTE **Packet); - -/** - * @copydoc WINTUN_SEND_PACKET - */ -void WINAPI -WintunSendPacket(_In_ TUN_SESSION *Session, _In_ const BYTE *Packet); |