Results 1 to 18 of 18

Thread: Registry

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    Registry

    Can someone help me to larn how to read and write to the registry(win32app) and please dont send me to planet source code.
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Is it all right if I send you to MSDN?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    as long as its a good link and it really hels me with like a example unless you send me and give me aa example lol thanks
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    http://msdn.microsoft.com/library

    Head for the "Registry" section
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    WHERE AT? we all know MSDN is huge!
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Search tools are useful. Come on, you have to look for things at least once
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    i do search what do you think i have been doing all day? If i search for regisrty i get like 1k in results(1000) and a thousand too much cuz it dont even help most of the time
    and didnt i ask for help from you not from msdn and you didnt even help if ur gonna tell me to search i could have did that on my own oops i did. So why are you posting here if you have no direct help. your basically sending me from point a to b to find c why>?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Because eventually you start to get good at it, that's why. Yes, I know, I'm a complete bastard, but I learnt the hard way and I'm unlikely to forget in a hurry.

    For example, I haven't developed on Windows for about a year now, and I can still remember how to write Windows programs *shrug*

    But anyway, I think I've had enough fun for now, so here's something more useful:

    http://msdn.microsoft.com/library/de..._reference.asp
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    soryr i didnt mean it that way. And thanks for the link ill checmk it out now. Oh yah happy thanks giving! (sorry and thanks for giving me help)
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's ok, you can't offend me whether you mean it or not Sometimes you have to give people a little shove or it doesn't go in

    No problems, and if I was American I might appreciate Thanksgiving more Enjoy it yourself!
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    thx 1 more thign i got:

    RegCreateKeyEx (HKEY_LOCAL_MACHINE ,"Software\Red",0,"test",REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS,0,Res1, Res2);

    what type is res1 and res2 (i know hkey but how do i define it ) i tried long Res1, and HKEY Res1 what is it?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  12. #12

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    also i downloaded the api guide (vb) can i use that to gert a understanding of how some code is proccessed like types and strings go here and there
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  13. #13
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Look.

    All datatypes and user-defined types in Windows are based on
    common datatypes - char short long int.... etc.

    if you find DWORD, HRESULT in caps it means they are either a typedef or a #define. So - anything in caps is something MS defined, and it is made of understandable pieces.

    How do you find out what these mean? Ie., what is HRESULT?

    Use the advanced search feature in Windows Explorer. Search in header files for 'typedef' or '#define' and 'HRESULT'

    Plus, MSDN comes with MSVC++ - you can just open up help and type in HRESULT in the Index - you get

    HRESULT
    An opaque result handle defined to be zero for a successful return from a function and nonzero if error or status information is returned. To convert an HRESULT into the more detailed SCODE, applications call GetScode(). See also SCODE.
    And you know that a handle is a long.

  14. #14

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    you listen ima newbi top vc++ and lost my msdn cd's and how the blank am i ganna know what to blank searh for
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  15. #15
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    For future reference, here's the best link if you search for API in MSDN.

    http://msdn.microsoft.com/library/de...y_category.asp
    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.

  16. #16
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by JasonLpz
    you listen ima newbi top vc++ and lost my msdn cd's and how the blank am i ganna know what to blank searh for
    Easy now, you don't want to annoy Jim since he's been doing this longer than I've been alive
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  17. #17
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Code:
    LONG RegCreateKeyEx(
      HKEY hKey,                                  // handle to open key
      LPCTSTR lpSubKey,                           // subkey name
      DWORD Reserved,                             // reserved
      LPTSTR lpClass,                             // class string
      DWORD dwOptions,                            // special options
      REGSAM samDesired,                          // desired security access
      LPSECURITY_ATTRIBUTES lpSecurityAttributes, // inheritance
      PHKEY phkResult,                            // key handle 
      LPDWORD lpdwDisposition                     // disposition value buffer
    Let's see. hKey is the parent key for your new key. lpSubKey is the name of your new key. Reserved must be 0. lpClass should be NULL. dwOptions can be simply set to 0.
    samDesired is of type REGSAM, which is just another typedef for unsigned long. Usually set to KEY_ALL_ACCESS.
    lpSecurityAttributes is a pointer to a SECURITY_ATTRIBUTES struct. You can pass NULL.
    phkResult is a pointer to a HKEY, which gets filled with a handle to the newly created key. Pass the address of a stack variable:
    HKEY res;
    RegCreateKeyEx(..., &res, ...);
    lpdwDisposition finally is a pointer to a DWORD, which gets filled with information about the result of the operation. It will tell you if the key already existed and only was opened, or if it was really created. If you don't care, pass NULL. Else pass the address of a DWORD just as with phkResult.
    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.

  18. #18
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    In terms of losing your CD's - make an effort to buy new ones - $10 for MSDN platform SDK, for example. And, getting mad at me because I don't know that you lost yours - it reminds me of students and homework - as in 'my roommate took my backpack'.
    The only person you're messing up is yourself. Not us here.

    I don't use MSVC much but - without instant references - the compiler product becomes a whole lot less useful. There are 5400+ api's, for example. I don't think anyone could correctly remember all of them. In other words, you REALLY need desktop references. Desktop as in PC desktop.

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