Jump to content

how to write pc optimization software?

- - - - -

  • Please log in to reply
8 replies to this topic

#1
fayyazlodhi

fayyazlodhi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 403 posts
There are all kinds of free wares, licensed tools available for cleaning registry, removing unwanted files, disk defragmentation etc.

But i couldn't find any open source project / code reference doing so.

Does any body have any idea how to do this for Windows OS programmatically?

Though my preference would be C# but any language reference is fine.
Today is the first day of the rest of my life

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Working in the registry isn't very hard, the trick is knowing what all the registry settings do.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
fayyazlodhi

fayyazlodhi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 403 posts
Well i do have a general idea of how it works and the usage of settings. I am familiar with editing / deleting entries using regedit.

What i was looking for was some API interface for accessing it and was a little surprised i didn't find any thing useful using google.
Today is the first day of the rest of my life

#4
Revolt

Revolt

    Programmer

  • Members
  • PipPipPip
  • 99 posts
You mean this: Registry Class (Microsoft.Win32) ?

I think it's a pretty complete API!

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Most languages I've dealt with have pretty reasonable Registry handling functions built in. I wouldn't look for it as an API, but simply as an element of the language.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
little registry cleaner is a fantastic open source windows registry optimizer.

It's small/lightweight, and fast.

it requires .NET to run. Little Registry Cleaner | Download Little Registry Cleaner software for free at SourceForge.net

I know this isn't what you asked, but you did say you couldn't find one. =) Perhaps it could give you some ideas.

This is one of those programs that commercial offerings should look to, for how to do it properly.

#7
fayyazlodhi

fayyazlodhi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 403 posts
Thanks Revolt, some how i didn't came across that link. All i could find was tons of utilities but no code. It will definitely be very useful.

WP, perhaps i haven't worked with it before programmatically so had no idea about support as part of language. Plus my main stream experience is with C, even that not specific to windows API

Thanks sam_coder. I meant i couldn't find one with code. I will take another look though i suspect i have used it before and there wasn't much of implementation hints.
Today is the first day of the rest of my life

#8
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
hey no-problem-o, it's written in C#, code is available here:
http://launchpad.net...e_7_18_2010.zip

#9
fayyazlodhi

fayyazlodhi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 403 posts
Ah yeah it looks pretty comprehensive. I was mistaken. Thanks sam_coder that would really help. I am skimming through the source now.
Today is the first day of the rest of my life




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users