From: Austin English Subject: [PATCH 1/2] include: add initial dhcpcsdk.h Message-Id: Date: Sat, 16 Jul 2016 02:30:47 -0500 -- -Austin GPG: 14FB D7EA A041 937B From cdf55562808767de6c22c4515a1ca17e90e0cef1 Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 16 Jul 2016 02:17:14 -0500 Subject: [PATCH 1/2] include: add initial dhcpcsdk.h Signed-off-by: Austin English --- include/Makefile.in | 1 + include/dhcpcsdk.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 include/dhcpcsdk.h diff --git a/include/Makefile.in b/include/Makefile.in index 9c20f28a..8f671f0 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -312,6 +312,7 @@ HEADER_SRCS = \ devguid.h \ devpkey.h \ devpropdef.h \ + dhcpcsdk.h \ difxapi.h \ digitalv.h \ dinput.h \ diff --git a/include/dhcpcsdk.h b/include/dhcpcsdk.h new file mode 100644 index 0000000..e186c52 --- /dev/null +++ b/include/dhcpcsdk.h @@ -0,0 +1,61 @@ +/* + * dhcpcsdk.h + * Copyright 2016 Austin English + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef _DHCPCDSK_H +#define _DHCPCDSK_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define DHCPCAPI_REGISTER_HANDLE_EVENT 0x00000001 +#define DHCPCAPI_REQUEST_PERSISTENT 0x00000001 +#define DHCPCAPI_REQUEST_SYNCHRONOUS 0x00000002 + +typedef struct _DHCPAPI_CLASSID { + ULONG Flags; + BYTE *Data; + ULONG nBytesData; +} DHCPCAPI_CLASSID,*PDHCPCAPI_CLASSID,*LPDHCPCAPI_CLASSID; + +typedef struct _DHCPAPI_PARAMS { + ULONG Flags; + ULONG OptionId; + BOOL IsVendor; + BYTE *Data; + DWORD nBytesData; +} DHCPAPI_PARAMS,*PDHCPAPI_PARAMS,*LPDHCPAPI_PARAMS; + +typedef struct _DHCPCAPI_PARAMS_ARARAY{ + ULONG nParams; + DHCPAPI_PARAMS *Params; +} DHCPCAPI_PARAMS_ARRAY,*PDHCPCAPI_PARAMS_ARRAY,*LPDHCPCAPI_PARAMS_ARRAY; + +void WINAPI DhcpCApiCleanup(void); +DWORD WINAPI DhcpCApiInitialize(DWORD *); +DWORD WINAPI DhcpDeRegisterParamChange(DWORD,void *,void *); +DWORD WINAPI DhcpRegisterParamChange(DWORD,void *,WCHAR *,DHCPCAPI_CLASSID *,DHCPCAPI_PARAMS_ARRAY,void *); +DWORD WINAPI DhcpRemoveDNSRegistrations(void); +DWORD WINAPI DhcpUndoRequestParams(DWORD,void *,WCHAR *,WCHAR *); + +#ifdef __cplusplus +} +#endif + +#endif /* _DHCPCDSK_H */ -- 2.7.3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXieKnAAoJEBT71+qgQZN7tqYP/iOseB+P3vIZ/CoWQuTCM4M5 y85ZQYqdd0cOTr3HwEZK4zmVIU6msQj/dB+RM9NbXI9SuHUmvbf1o9bhKgDZoZYR qPe6KfFnGMxw2PUfFKAC+J03jTxTOteupBrIh+2hytsXGkq0dl2DqBELaoguxAng AbantmVBe4YSMjwTwdCb8pCKwEYp3KE8mtDaW2WYoDOITwU+jFJNXNsJ+yKmSSZm 3pxenk1+uvY1JYgYRXYffGD31Y82/VNB2uFvFCGCtELslrI14I35QtO6wALS6Bpm fcLV8WDW6h7p+KEbzyLTqVUo/C9gI7JRM92YkZfRuO+PndRjc8tYhD2ErBiAhtin upGFUFL1DIMUb5ZPUSzkFUVDfxvQF9K2rGOlkiD92OpK/tNRG+tWOsz3MJL0vWTX IWEpf6euYfj/6Pn6VaM02xaq3xt70PKHpn+10XSMP8x6XOGrY3IhYcVQpktos/44 QxuxUc9LZovWlEyTtM54G5EkwM7JLydEcGZ/J5Kq9BT8AMbIujGPKZInK97AqkXs FE9A4SF0yXKQGjvp2tM7Cs9Fi6d59QHA57jbYTMetDfLiDlDQ8xmOimQO0kHTWRm 6+0I5YPRudog8QEFxl3DTy/fo1pettA1lBqZ6JysUiG+fT0OUD9IkVXnWiJ50Vhx hyFirGujTq0DkNVRn1rk =MBA8 -----END PGP SIGNATURE-----