Re: sscanf

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



scanf() is vulnerable if the string passed to it is not zero-terminated, or
if the buffer passed to it to store the results is too short.

Write the state-machine-based parser yourself, or switch to the binary data
representation in the registry.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"Colin Helliwell" <colinh@xxxxxxxxxxxxxxx> wrote in message
news:7EFD4E5F-7380-40CA-9B4E-13EE324E35F8@xxxxxxxxxxxxxxxx
Have been searching around without succes on this: Is there a recommended or
'standard' alternative to swscanf for use in a driver? (I'm wanting to parse
a WSTR from the registry).


.



Relevant Pages

  • Re: Final installation
    ... Saving the registry is part of the OS design. ... you might store it there. ... you'll need some form of a bootloader to handle loading the OS ...
    (microsoft.public.windowsce.embedded)
  • Re: Where are OEs settings stored?
    ... The key name is "Store Root" under ... export the registry to a text file and save. ... MS-MVP Outlook Express ... back door method to locate the message store ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Ini File vs Registry
    ... I have a class derived from CArchive and store my own version info at the start of the file. ... I tend to use the registry for execution-to-execution parameters which can be readily reconstructed from defaults. ... I do not know what a best practice is here. ... not specified where you would keep the .INI file. ...
    (microsoft.public.vc.mfc)
  • Re: Some problems when using the Hive_based registy
    ... I could see the control panel, and the setting in the registry can be ... I could not see the "documents and settings" under the root ... And I still can not see the flash store folder. ... file system from ROM-only to RAM+ROM, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: dialogbox and Persistence
    ... In general you should store persistent data in the ... schemes etc. should go in the registry in HKEY_CURRENT_USER. ... should be stored to disk, able to be loaded by different users on the ... I forgot to mention that the Serialize code that I posted ...
    (microsoft.public.vc.mfc)