[PATCH] include: Add Network Address Control defines

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Jul 29 18:07:48 CDT 2019


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 include/shellapi.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/include/shellapi.h b/include/shellapi.h
index 0e7d64c7ba3..0f10690f7e0 100644
--- a/include/shellapi.h
+++ b/include/shellapi.h
@@ -496,6 +496,30 @@ HRESULT     WINAPI SHQueryRecycleBinA(LPCSTR,LPSHQUERYRBINFO);
 HRESULT     WINAPI SHQueryRecycleBinW(LPCWSTR,LPSHQUERYRBINFO);
 #define     SHQueryRecycleBin WINELIB_NAME_AW(SHQueryRecycleBin)
 
+/******************************************
+ * Network Address Control
+ */
+typedef struct tagNC_ADDRESS
+{
+   struct NET_ADDRESS_INFO_ *pAddrInfo;
+   USHORT                   PortNumber;
+   BYTE                     PrefixLength;
+} NC_ADDRESS, *PNC_ADDRESS;
+
+#define NCM_GETADDRESS      (WM_USER+1)
+#define NCM_SETALLOWTYPE    (WM_USER+2)
+#define NCM_GETALLOWTYPE    (WM_USER+3)
+#define NCM_DISPLAYERRORTIP (WM_USER+4)
+
+#define NetAddr_GetAddress(hwnd,addr) \
+    (HRESULT)SNDMSG(hwnd,NCM_GETADDRESS,0,(LPARAM)addr)
+#define NetAddr_SetAllowType(hwnd, mask) \
+    (HRESULT)SNDMSG(hwnd,NCM_SETALLOWTYPE,(WPARAM)mask,0)
+#define NetAddr_GetAllowType(hwnd) \
+    (DWORD)SNDMSG(hwnd,NCM_GETALLOWTYPE,0,0)
+#define NetAddr_DisplayErrorTip(hwnd) \
+    (HRESULT)SNDMSG(hwnd,NCM_DISPLAYERRORTIP,0,0)
+
 /******************************************
  * Misc
  */
-- 
2.17.1




More information about the wine-devel mailing list