summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/dhcpcsdk.h
diff options
context:
space:
mode:
authorDimitri Papadopoulos <dimitri_at@users.sf.net>2003-09-30 07:40:46 +0000
committerDimitri Papadopoulos <dimitri_at@users.sf.net>2003-09-30 07:40:46 +0000
commit684f94e30521f3da4cf1b80e608406af6cd10053 (patch)
tree95fea130b315a83c1a33a2b5a4c79e7689411ce7 /winsup/w32api/include/dhcpcsdk.h
parente7e4107e3957e91017198bab82d53ffbfa91060d (diff)
downloadcygnal-684f94e30521f3da4cf1b80e608406af6cd10053.tar.gz
cygnal-684f94e30521f3da4cf1b80e608406af6cd10053.tar.bz2
cygnal-684f94e30521f3da4cf1b80e608406af6cd10053.zip
* include/dhcpcsvc.h: New file.
Note that MSDN is confused about whether it should start constant and structure names with DHCPCAPI or DHCPAPI. It's using both but experience suggests it's DHCPCAPI with `C'. * lib/dhcpcsvc.def: New file.
Diffstat (limited to 'winsup/w32api/include/dhcpcsdk.h')
-rw-r--r--winsup/w32api/include/dhcpcsdk.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/winsup/w32api/include/dhcpcsdk.h b/winsup/w32api/include/dhcpcsdk.h
new file mode 100644
index 000000000..1d27df766
--- /dev/null
+++ b/winsup/w32api/include/dhcpcsdk.h
@@ -0,0 +1,42 @@
+#ifndef _DHCPCDSK_H
+#define _DHCPCDSK_H
+#if __GNUC__ >= 3
+#pragma GCC system_header
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if (_WIN32_WINNT >= 0x0500)
+#define DHCPCAPI_REGISTER_HANDLE_EVENT 0x00000001
+#define DHCPCAPI_REQUEST_PERSISTENT 0x00000001
+#define DHCPCAPI_REQUEST_SYNCHRONOUS 0x00000002
+typedef struct _DHCPAPI_CLASSID {
+ ULONG Flags;
+ LPBYTE Data;
+ ULONG nBytesData;
+} DHCPCAPI_CLASSID,*PDHCPCAPI_CLASSID,*LPDHCPCAPI_CLASSID;
+typedef struct _DHCPAPI_PARAMS {
+ ULONG Flags;
+ ULONG OptionId;
+ BOOL IsVendor;
+ LPBYTE Data;
+ DWORD nBytesData;
+} DHCPAPI_PARAMS,*PDHCPAPI_PARAMS,*LPDHCPAPI_PARAMS;
+typedef struct _DHCPAPI_PARAMS_ARRAY {
+ ULONG nParams;
+ LPDHCPAPI_PARAMS Params;
+} DHCPCAPI_PARAMS_ARRAY,*PDHCPCAPI_PARAMS_ARRAY,*LPDHCPCAPI_PARAMS_ARRAY;
+VOID WINAPI DhcpCApiCleanup(void);
+DWORD WINAPI DhcpCApiInitialize(LPDWORD);
+DWORD WINAPI DhcpDeRegisterParamChange(DWORD,LPVOID,LPVOID);
+DWORD WINAPI DhcpRegisterParamChange(DWORD,LPVOID,PWSTR,LPDHCPCAPI_CLASSID,DHCPCAPI_PARAMS_ARRAY,LPVOID);
+DWORD WINAPI DhcpRemoveDNSRegistrations(void);
+DWORD WINAPI DhcpUndoRequestParams(DWORD,LPVOID,LPWSTR,LPWSTR);
+#endif /* (_WIN32_WINNT >= 0x0500) */
+
+#ifdef __cplusplus
+}
+#endif
+#endif