Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
476 B

  1. #ifndef _OLESTR_H_
  2. #define _OLESTR_H_
  3. void CopyAndFreeOLESTR(LPOLESTR polestr, char **pszOut);
  4. void CopyAndFreeSTR(LPSTR polestr, LPOLESTR *pszOut);
  5. LPOLESTR CreateOLESTR(const char *pszIn);
  6. LPSTR CreateSTR(LPCOLESTR pszIn);
  7. #define CREATEOLESTR(x, y) LPOLESTR x = CreateOLESTR(y);
  8. #define CREATESTR(x, y) LPSTR x = CreateSTR(y);
  9. #define FREEOLESTR(x) CopyAndFreeOLESTR(x, NULL);
  10. #define FREESTR(x) CopyAndFreeSTR(x, NULL);
  11. #endif // _OLESTR_H_