registry_delete_value() questions

This is a discussion on registry_delete_value() questions within the Windows Programming forums, part of the Platform Specific Boards category; I want to delete a value in a key that I created if you are wondering what I want to ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    registry_delete_value() questions

    I want to delete a value in a key that I created if you are wondering what I want to do.

    I am not getting this. I have this code...

    Code:
    extern "C" __declspec(dllexport) __stdcall LPSTR hr_reg_delete_value(LPSTR arg0, LPSTR arg1);
    
    extern "C" __declspec(dllexport) __stdcall LPSTR hr_reg_delete_value(LPSTR arg0, LPSTR arg1)
    
    {
           LPSTR result = "test";
           HKEY test;
           
           RegOpenKeyEx(HKEY_CURRENT_USER,arg0,0,NULL,&test);
    
           RegDeleteValue(test,arg1);
    
           return result;
    
    };

    I am really not sure what I am doing. I able to delete a whole key with registry_delete_key() but I can't figure this one out.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 09:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 06:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 08:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 08:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21