title: E_ACCESSDENIED (HR 0x80070005) on CryptImportKey call
body: <p>Have a legacy code with a call to <a href="https://msdn.microsoft.com/ru-ru/library/windows/desktop/aa380207(v=vs.85).aspx" rel="nofollow">CryptImportKey</a> function.</p>
  
  <p>Recently faced a problem - on some machines code works fine, on some machines (at least on Win7x64 Pro) it returns 0 (GetLastError() returns an E_ACCESSDENIED error).</p>
  
  <p>Don't actually know, what's the problem, and what kind of information can help investigate the problem. Will be provided, if any anyone give an advice.</p>
  
  <p>I really appreciate any help you can provide.</p>