Jump to content

Recommended Posts

Posted

hey im working on a optimization program for personal use, and i need help with some code to clean/defrag ram memory on button click thanks alot! if you need more info just let me know..


Posted

Well, a good place to start would be what code do you have already, and what specifics are you looking for assistance with?

Posted

well i know of a program called "game booster" by iobit that shuts down services and the cleans/defrags the ram... thats basicly what im looking for

Posted

That's fine, but for starters, doing this inside a virtual machine runtime is probably not the best way to do this. VB also is another impediment, although not an incredibly high hurdle. Also, if we're talking about this running on a Windows machine post Windows XP SP2, if you want to "clean" RAM (which I don't recommend, as the Windows memory manager is more than adequate at this task), you're going to need something running in kernel (a driver) which will inject itself into every process running - this isn't something you can do from inside a .net app, and it's not something you're going to even want to attempt in VB. Your best bet is to write something in C or C++ (the driver and the user-mode component application), or just pay a few $$$ for someone to write it for you or purchase one that already exists.

The other option is to shut down processes and services yourself before running your game from a script or batch file, but "cleaning" RAM is really honestly just a scam - it doesn't really net you anything that the Windows memory manager doesn't already do, and you've already paid for that with your Windows license.

Posted (edited)

ok well then i have a different idea i would like to add something to my program then on the right hand side that would list a pre-set list of services then across from them it would say either started or stopped like such in like a scrolling (because there's a lot)so it would check the services on a timer every 10 seconds or so, and on start up of the program, and i have a button that shuts all of them down, and one to start them all back up and i want it to show them changing as they are getting stopped or started how could i do this? is it possible even?

AxInstSV Stopped

SensrSvc Started

AeLookupSvc Started

ALG Started

AppMgmt Started

BITS Started

BDESVC Started

bthserv Stopped

PeerDistSvc Started

CertPropSvc Started

Browser Started

VaultSvc Stopped

DPS Started

WdiServiceHost Started

WdiSystemHost Started

TrkWks Stopped

Edited by Nights
Posted

For dealing with services using any .NET language, just use the ServiceController class -- not that I'd really mess with some of those services (e.g. BITS or Browser) as it's going to break a certain amount of things and most likely make zero noticeable difference in performance.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...