Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Protected storage

Protected storage

Scheduled Pinned Locked Moved C / C++ / MFC
jsontutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mike_V
    wrote on last edited by
    #1

    Anybody know how to store stuff in Windows Protected Storage? Outlook does it for email passwords, and IE stores autocomplete passwords there. But I have no luck trying to figure out the API via Google or MSDN. So am I missing something obvious, or is this an undocumented feature? Thanks, Mike

    S 1 Reply Last reply
    0
    • M Mike_V

      Anybody know how to store stuff in Windows Protected Storage? Outlook does it for email passwords, and IE stores autocomplete passwords there. But I have no luck trying to figure out the API via Google or MSDN. So am I missing something obvious, or is this an undocumented feature? Thanks, Mike

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      LsaOpenPolicy, LsaStorePrivateData are your friends. Of course, this is WinNT and variants only, no Win9x/ME stuff here!

      Steve S Developer for hire

      M 1 Reply Last reply
      0
      • S Steve S

        LsaOpenPolicy, LsaStorePrivateData are your friends. Of course, this is WinNT and variants only, no Win9x/ME stuff here!

        Steve S Developer for hire

        M Offline
        M Offline
        Mike_V
        wrote on last edited by
        #3

        Thanks... Although I saw this in the function docs: Do not use the LSA private data functions. Instead, use the CryptProtectData and CryptUnprotectData functions. I am currently using CryptProtectData, but that doesn't actually store the data anywhere. So I wonder why the rather strongly-worded discouragement :confused: Thanks again, Mike :badger:

        S 1 Reply Last reply
        0
        • M Mike_V

          Thanks... Although I saw this in the function docs: Do not use the LSA private data functions. Instead, use the CryptProtectData and CryptUnprotectData functions. I am currently using CryptProtectData, but that doesn't actually store the data anywhere. So I wonder why the rather strongly-worded discouragement :confused: Thanks again, Mike :badger:

          S Offline
          S Offline
          Steve S
          wrote on last edited by
          #4

          Beats me. After all, DCOM relies on the LSA private data functions at the moment, as passwords are stored in there. Of course, you could CryptProtectData something, and then store it using LSA :) I recently saw gadgets which combine a CF card reader and fingerprint scanner, or in one case a HDD and fingerprint scanner. That's my idea of security, although to be really safe, I'd want the scanner to be able to measure the O2 level in the finger as well, to be sure it wasn't chopped off. Paranoid? Me? Who's been talking??

          Steve S Developer for hire

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups