WindowsXP-SP1/com/oleutest/letest/ole2ui/olestr.h

22 lines
476 B
C
Raw Permalink Normal View History

2001-01-01 00:00:00 +01:00
#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_