title: Is it possible to get a pointer to String^'s internal array in C++/CLI?
body: <p>The goal is to avoid copying the string data when I need a <code>const wchar_t*</code>.</p>
  
  <p>The answer seems to be yes, but the function <a href="https://stackoverflow.com/questions/1062962/systemstring-to-lpcwstr/1063154#1063154"><code>PtrToStringChars</code></a> doesn't have its own MSDN entry (it's only mentioned in the KB and blogs as a trick). That made me suspicious and I want to check with you guys. Is it safe to use that function?</p>