CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2001
    Posts
    9

    windows registry and Sleep();

    how can I use the windows registry using c++? Also, what can I do so that sleep() does not freeze the computer while it's sleeping for a long time? Would a loop solve it? oh and also, how do I put an icon in the system tray? I suppose I need to make a menu for it too, using resources, how would I make the menu work. I know eh, lots-a-questions. I hope they can all be answered. Thanks!!!





    Ryan

  2. #2
    Join Date
    Feb 2001
    Location
    Sydney, Australia
    Posts
    1,909

    Re: windows registry and Sleep();

    Have a look into MSDN for description of these registry-related functions:

    http://msdn.microsoft.com/library/en...egapi_59mb.asp

    To put icon to system tray use Shell_NotifyIcon() function from Shell API.





    Please - rate answer if it helped you
    It gives me inspiration when I see myself in the top list =)

    Best regards,

    -----------
    Igor Soukhov (Brainbench/Tekmetrics ID:50759)
    [email protected] | ICQ:57404554 | http://soukhov.com

    Member of Russian Software Developer Network http://rsdn.ru
    Best regards,
    Igor Sukhov

    www.sukhov.net

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

Featured