site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·News Posting ·Software FAQ ·PC Hell ·2Kmaro's Site
AuthorAll Replies


Bach
I get Bached down but I get up again
Premium
join:2002-02-16
Flint, MI
Reviews:
·Comcast

reply to Beaver Eater

Re: [Windows] Dr. Delete: Remove in-use files!

Add one line to your original code it would have probably been OK:

OSVERSIONINFO osvi;
osvi.dwOSVersionInfoSize = sizeof(osvi); // add this line
GetVersionEx(&osvi);
switch(osvi.dwPlatformId)

The dwOSVersionInfoSize needs to be stuffed before the call so that the OS knows what structure you're using (OSVERSIONINFO vs. OSVERSIONINFOEX). The memset to zero I had in my code is probably overkill.


jdong
Eat A Beaver, Save A Tree.
Premium
join:2002-07-09
Rochester, MI
kudos:1

said by Bach:
Add one line to your original code it would have probably been OK.
Silly me, found that info in the MSDN writeup . I'm sorry about that. Usually, I fully read the MSDN writeup before using a program, but oh, what the heck, decided that I should just go for it.... sorry.

Anyway, here's the new/updated version of Dr. Delete. New features since last one:


    •Actual OS detection, NT vs 9x.
    •Added additional messages indicating OS detected.
    •Added 'trap' for unknown OS'es; in which case you may pick the method of deletion.
    •Close button next to delete button.
    •When dragging a file or opening with Dr. Delete, the 'Delete' button is automatically invoked (so you get the 'are you sure' message.


The attached file is RAR Self-Extracting (if you have WinRAR, you may open it with WinRAR, or even if you don't just run the EXE to extract). This contains the EXE plus the source code. This was written in Visual C++ .NET 2003 (ooh, fancy ), and probably will only compile with Visual C++ .NET or .NET 2003...

If you really want to compile it for free, let me know, and I'll write a C# version that can be compiled with free tools.
--
Word of advice: Never trust a doctor whose office plants have died...
P.S.: Thank you, Optimized, for making me premium!

Monday, 04-Jun 03:27:37 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics