title: How to fix " State Error (active) E0513 a value of type “const wchar_t *” cannot be assigned to an entity of type “wchar_t *”"
body: <p>I am trying to change the properties of a file using C ++
  what am I doing wrong ?
  The code is completely taken </p>
  
  <p><a href="https://docs.microsoft.com/en-us/windows/win32/stg/writeread-sample" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/windows/win32/stg/writeread-sample</a></p>
  
  <pre><code>propspec.ulKind = PRSPEC_LPWSTR;
  propspec.lpwstr = L"Property Name";// this line problem
  
  propvarWrite.vt = VT_LPWSTR;
  propvarWrite.pwszVal = L"Property Value"; // this line problem
  </code></pre>