windows-nt/Source/XPSP1/NT/com/oleutest/letest/ole2ui/olestr.h

22 lines
455 B
C
Raw Normal View History

2020-09-26 03:20:57 -05: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_