PCTSTR与PTSTR

VC2012中PCTSTR与PTSTR分别定义如下

typedef LPCWSTR PCTSTR, LPCTSTR;

typedef _Null_terminated_ CONST WCHAR *LPCWSTR, *PCWSTR;

typedef wchar_t WCHAR;

 

typedef LPWSTR PTSTR, LPTSTR;

typedef _Null_terminated_ WCHAR *NWPSTR, *LPWSTR, *PWSTR;

typedef wchar_t WCHAR;

即PCTSTR中的C表示const,该指针是指向const的指针,它所指向的内容不能被修改。

你可能感兴趣的:(C++)