summaryrefslogtreecommitdiffstats
path: root/private/oleutest/letest/ole2ui/olestr.h
diff options
context:
space:
mode:
Diffstat (limited to 'private/oleutest/letest/ole2ui/olestr.h')
-rw-r--r--private/oleutest/letest/ole2ui/olestr.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/private/oleutest/letest/ole2ui/olestr.h b/private/oleutest/letest/ole2ui/olestr.h
new file mode 100644
index 000000000..a9c282930
--- /dev/null
+++ b/private/oleutest/letest/ole2ui/olestr.h
@@ -0,0 +1,21 @@
+#ifndef _OLESTR_H_
+#define _OLESTR_H_
+
+void CopyAndFreeOLESTR(LPOLESTR polestr, char **pszOut);
+
+void CopyAndFreeSTR(LPSTR polestr, LPOLESTR *pszOut);
+
+LPOLESTR CreateOLESTR(const char *pszIn);
+LPSTR CreateSTR(LPCOLESTR pszIn);
+
+#define CREATEOLESTR(x, y) LPOLESTR x = CreateOLESTR(y);
+
+#define CREATESTR(x, y) LPSTR x = CreateSTR(y);
+
+#define FREEOLESTR(x) CopyAndFreeOLESTR(x, NULL);
+
+#define FREESTR(x) CopyAndFreeSTR(x, NULL);
+
+
+
+#endif // _OLESTR_H_