Results 1 to 3 of 3

Thread: How to access remote registry in C

  1. #1

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    How to access remote registry in C

    Hi,

    How to access Remote registry in C.
    I can use the regedit and connect to the remote system.
    But I need it in my application. Can anybody help me out..

    Thanks,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hae Thankx..

    Hi,

    Well I cud figure it out...
    Its in C.. I wanted it in C...

    Code:
    lRetVal = RegConnectRegistry(ServerName, HKEY_LOCAL_MACHINE, &lHKeyhandle);
    
    	lRetVal = RegOpenKeyEx(lHKeyhandle, "SOFTWARE\\Project", 0, KEY_ALL_ACCESS, &lhkey);
    	
    	dwTemp = (DWORD)255;
    	strcpy(vValue,PathName);
    	strcat(vValue," 1 1");
    	
    	lRetVal = RegSetValueEx(lhkey,"Agent",NULL,REG_SZ,(LPBYTE)vValue, dwTemp);
    Thanks,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width