Thread: Writing to system registry

  1. #1
    Registered User
    Join Date
    Dec 2014
    Posts
    143

    Writing to system registry

    AMRegistry.cppAMRegistry.h

    I'm working on a project where I need to write to the system registry in windows and I can't seem to get it to work. I am running as an admin and all my return codes are 0 meaning nothing fails.

    And after I run it I check the entire system registry for everything. I have also tried compiling for both 32 bit and 64 bit.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    The error path is the same as the success path. How do you know all the calls are succeeding?
    I would add error-specific path's that log what GetLastError() returns.

    gg

  3. #3
    Registered User
    Join Date
    Dec 2014
    Posts
    143
    My return codes are always S_OK (0).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing to registry access denied
    By Elkvis in forum C# Programming
    Replies: 7
    Last Post: 11-21-2011, 04:30 PM
  2. problem with registry commands - system()
    By Pigimon in forum C Programming
    Replies: 2
    Last Post: 05-19-2010, 11:44 AM
  3. File Writing/Reading system
    By legit in forum C++ Programming
    Replies: 10
    Last Post: 11-24-2008, 04:56 PM
  4. Writing registry keys in windows
    By samus250 in forum C Programming
    Replies: 12
    Last Post: 06-29-2008, 01:43 PM
  5. Reading and writing to the Registry
    By Stan100 in forum Windows Programming
    Replies: 2
    Last Post: 07-29-2004, 12:11 PM