summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/mDynDNS/mDynDNS.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/mDynDNS/mDynDNS.h')
-rw-r--r--plugins/!NotAdopted/mDynDNS/mDynDNS.h52
1 files changed, 28 insertions, 24 deletions
diff --git a/plugins/!NotAdopted/mDynDNS/mDynDNS.h b/plugins/!NotAdopted/mDynDNS/mDynDNS.h
index f083067400..c699e27f20 100644
--- a/plugins/!NotAdopted/mDynDNS/mDynDNS.h
+++ b/plugins/!NotAdopted/mDynDNS/mDynDNS.h
@@ -1,7 +1,6 @@
// Windows includes
#include <windows.h>
-//#include <winsock2.h>
// Standard includes
#include <stdio.h>
@@ -28,29 +27,34 @@
#include "resource.h"
#include "version.h"
-#define POPUP_DEFAULT_COLORBKG 0xDCBDA5
-#define POPUP_DEFAULT_COLORTXT 0x000000
-
-#define RESPONSE_PATTERN "<html><head><title>Current IP Check</title></head><body>Current IP Address: %d.%d.%d.%d</body></html>"
-#define SETTINGS_MODULE "mDynDNS.dll"
-#define DESCRIPTIVE_NAME "DynDNS Plugin"
-#define MDYNDNS_ERROR_TITLE "mDynDns - Error"
-#define MDYNDNS_ERROR_CODE "F"
-#define MDYNDNS_BLOCK_CODE "Yes"
-#define MDYNDNS_UNBLOCK_CODE "No"
-#define DYN_DNS_SERVER "http://checkip.dyndns.org"
-#define URL_DYNDNS "https://www.dyndns.com/account/create.html"
-#define MDYNDNS_KEY_USERNAME "Username"
-#define MDYNDNS_KEY_PASSWORD "Password"
-#define MDYNDNS_KEY_DOMAIN "Domain"
-#define MDYNDNS_KEY_POPUPENAB "PopupEnabled"
-#define MDYNDNS_KEY_POPUPUPD "UpdatePopupsEnabled"
-#define MDYNDNS_KEY_POPUPBACK "PopupBack"
-#define MDYNDNS_KEY_POPUPTEXT "PopupText"
-#define MDYNDNS_KEY_POPUPDELAY "PopupDelay"
-#define MDYNDNS_KEY_POPUPDELM "PopupDelayMode"
-#define MDYNDNS_KEY_BLOCKED "Blocked"
-#define MDYNDNS_KEY_UPDATETIME "UpdateTime"
+#define MODE_POPUP 0
+#define MODE_OWN1 1
+#define MODE_OWN2 2
+#define POPUP_DEFAULT_COLORBKG 0xFFFFFF //0xDCBDA5
+#define POPUP_DEFAULT_COLORTXT 0x000000
+
+#define URL_DYNDNS "https://www.dyndns.com/account/create.html"
+#define DYN_DNS_SERVER "http://checkip.dyndns.org"
+#define RESPONSE_PATTERN "<html><head><title>Current IP Check</title></head><body>Current IP Address: %d.%d.%d.%d</body></html>"
+#define MDYNDNS_ERROR_TITLE "mDynDns - Error"
+#define MDYNDNS_ERROR_CODE "F"
+#define MDYNDNS_BLOCK_CODE "Yes"
+#define MDYNDNS_UNBLOCK_CODE "No"
+#define MDYNDNS_KEY_USERNAME "Username"
+#define MDYNDNS_KEY_PASSWORD "Password"
+#define MDYNDNS_KEY_DOMAIN "Domain"
+#define MDYNDNS_KEY_POPUPENAB "PopupEnabled"
+#define MDYNDNS_KEY_POPUPUPD "UpdatePopupsEnabled"
+#define MDYNDNS_KEY_POPUPBACK "PopupBack"
+#define MDYNDNS_KEY_POPUPTEXT "PopupText"
+#define MDYNDNS_KEY_POPUPDELAY "PopupDelay"
+#define MDYNDNS_KEY_POPUPDELM "PopupDelayMode"
+#define MDYNDNS_KEY_POPUPCOLM "PopupColorMode"
+#define MDYNDNS_KEY_BLOCKED "Blocked"
+#define MDYNDNS_KEY_UPDATETIME "UpdateTime"
+#define MDYNDNS_KEY_LASTIP "LastIP"
+#define MDYNDNS_KEY_LASTIPCHECK "LastCheckTS"
+
#ifndef MIID_MDYNDNS
#define MIID_MDYNDNS { 0x91e005c7, 0x8760, 0x479f, { 0xa2, 0xc9, 0x1c, 0x9e, 0x31, 0x7, 0x20, 0x1c } } // {91E005C7-8760-479f-A2C9-1C9E3107201C}