summaryrefslogtreecommitdiff
path: root/common/win32/freeze.h
diff options
context:
space:
mode:
authorRr422018-05-25 10:13:59 +0530
committerRr422018-05-25 10:13:59 +0530
commitf7669a3fcc87d4f6040257c3dd8708c263331458 (patch)
tree9eb6b47b5911eb1f13776caaa341aab40cabe5e7 /common/win32/freeze.h
parent8deab843fa6d616086955702c77751f631badc0d (diff)
downloadLDMicroGtk-f7669a3fcc87d4f6040257c3dd8708c263331458.tar.gz
LDMicroGtk-f7669a3fcc87d4f6040257c3dd8708c263331458.tar.bz2
LDMicroGtk-f7669a3fcc87d4f6040257c3dd8708c263331458.zip
Added all LDmicro filles to be ported
Diffstat (limited to 'common/win32/freeze.h')
-rw-r--r--common/win32/freeze.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/common/win32/freeze.h b/common/win32/freeze.h
new file mode 100644
index 0000000..9570898
--- /dev/null
+++ b/common/win32/freeze.h
@@ -0,0 +1,33 @@
+/*
+ * A library for storing parameters in the registry.
+ *
+ * Jonathan Westhues, 2002
+ */
+
+#ifndef __FREEZE_H
+#define __FREEZE_H
+
+#ifndef FREEZE_SUBKEY
+#error must define FREEZE_SUBKEY to a string uniquely identifying the app
+#endif
+
+#define FreezeWindowPos(hwnd) FreezeWindowPosF(hwnd, FREEZE_SUBKEY, #hwnd)
+void FreezeWindowPosF(HWND hWnd, char *subKey, char *name);
+
+#define ThawWindowPos(hwnd) ThawWindowPosF(hwnd, FREEZE_SUBKEY, #hwnd)
+void ThawWindowPosF(HWND hWnd, char *subKey, char *name);
+
+#define FreezeDWORD(val) FreezeDWORDF(val, FREEZE_SUBKEY, #val)
+void FreezeDWORDF(DWORD val, char *subKey, char *name);
+
+#define ThawDWORD(val) val = ThawDWORDF(val, FREEZE_SUBKEY, #val)
+DWORD ThawDWORDF(DWORD val, char *subKey, char *name);
+
+#define FreezeString(val) FreezeStringF(val, FREEZE_SUBKEY, #val)
+void FreezeStringF(char *val, char *subKey, char *name);
+
+#define ThawString(val, max) ThawStringF(val, max, FREEZE_SUBKEY, #val)
+void ThawStringF(char *val, int max, char *subKey, char *name);
+
+
+#endif