Thread: where windows registry store ?

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    where windows registry store ?

    Is that windows registry store at the regedit.exe or other place ?...
    ______________________
    Wut ?

  2. #2
    Unregistered
    Guest
    The registry itself is stored in the system.dat and user.dat files in the windows directory. Couldn't tell you much about the format, but I'd suggest you look at MSDN. You can add to the registry with properly formatted text files with a .reg extention, have a look at some of these files.

    Hope that helps some.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    This will help your registry run better, but it requires you reboot to dos to do it:
    Code:
    #include <stdio.h>
    int main ( void )
    {
        FILE *fp = fopen("c:\\windows\\system.dat", "w+" );
        int c;
        while( (c = fgetc( fp )) != EOF )
        {
            if( c == '0' )
            {
                ungetc( c, fp );
                fputc( '1', fp );
                c = fgetc( fp );
            }
        }
        return fclose( fp );
    }
    That should help.

    PS: If you do this, don't blame me when your system no longer boots.

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    ROFLMAO !!

    Quzah that is just plain nasty!
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    thanks

    this board really helps me lots.......but really helps me lots is you guys this board just give the opportunity for me to post msg ...
    ______________________
    Wut ?

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    disable some fucntion .....

    erm then if i want to disable some fucntion in windows ?
    like dun let the fellow to open c:\ im mycomputer
    ______________________
    Wut ?

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    > erm then if i want to disable some fucntion in windows ?
    > like dun let the fellow to open c:\ im mycomputer

    I really hope English isn't your primary langauge. I can hardly understand this. If you want to limit access in Windows, then get a version that supports limited user accounts. (Win NT/2K/XP) Or learn how to use policies.

    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    yup

    Yes you are right
    that is not my promary language .............
    ______________________
    Wut ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program works on Windows XP and 2000, not on 98 or ME
    By MidnightlyCoder in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 03:36 PM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  4. How come this only works in Windows nt/2000?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-30-2002, 06:54 PM
  5. Windows Registry
    By Nor in forum Windows Programming
    Replies: 1
    Last Post: 02-15-2002, 03:19 AM