Click here to Skip to main content
15,897,518 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Windows XP problem... Pin
Roger Wright11-Jun-03 11:35
professionalRoger Wright11-Jun-03 11:35 
GeneralRe: Windows XP problem... Pin
-- NA --11-Jun-03 19:49
-- NA --11-Jun-03 19:49 
QuestionWhat causes a Console application to get terminated when run through a service? Pin
Xavier John9-Jun-03 8:48
Xavier John9-Jun-03 8:48 
GeneralWindowed games Pin
gadgetfbi7-Jun-03 12:46
gadgetfbi7-Jun-03 12:46 
GeneralRe: Windowed games Pin
ZoogieZork10-Jun-03 7:47
ZoogieZork10-Jun-03 7:47 
GeneralSmart Card Inserts & Removes Pin
Fad B6-Jun-03 10:55
Fad B6-Jun-03 10:55 
QuestionHow to delete an EventLog file Pin
cmk5-Jun-03 21:21
cmk5-Jun-03 21:21 
QuestionHelp verfy Windows XP Home Bug ? Pin
Miroslav Rajcic4-Jun-03 3:10
Miroslav Rajcic4-Jun-03 3:10 
I am having classical code to delete file to the recycle bin:

bool DeleteToRecycleBin(const char *pszFilePath)
{
//double-zero terminated string
char szFile[1024];
strncpy(szFile, pszFilePath, sizeof(szFile)-1);
szFile[strlen(szFile)+1] = '\0';

SHFILEOPSTRUCT fileop;
ZeroMemory(&fileop, sizeof(SHFILEOPSTRUCT));
fileop.wFunc = FO_DELETE;
fileop.pFrom = szFile;
fileop.pTo = NULL;
fileop.fFlags = FOF_ALLOWUNDO | FOF_SILENT | FOF_NOERRORUI | FOF_NOCONFIRMATION;

if(SHFileOperation(&fileop) != 0)
{
//failed to delete to recycle
return false;
}

return (0 != _access(szFile, 0));
//return true;
}

I found this very spooky problem when calling this function on the following file ararngement:
1. inside some test directory create directory "VC6-ch04-Documents and Views_files"
2. inside test directory create file "VC6-ch04-Documents and Views.htm"
3. when trying to delete the file, as a bonus, function also deletes the directory !!!! (grrr, I've lost some important data this way).

I also repeated this problem using delete feature from Total Commander file manager on the same OS plaform.
I didn't test if this bug is "available" on other versions.

Can anyone verify this bug (OS: windows XP Home, SP1, Compiler: VC++ 6.0) ? Also, if this is the bug, where can I report it officialy ?




Miroslav Rajcic
AnswerRe: Help verfy Windows XP Home Bug ? Pin
Michael Dunn4-Jun-03 18:00
sitebuilderMichael Dunn4-Jun-03 18:00 
GeneralRe: Help verfy Windows XP Home Bug ? Pin
Miroslav Rajcic4-Jun-03 19:53
Miroslav Rajcic4-Jun-03 19:53 
GeneralFaarrrkkkk! Pin
Michael Martin3-Jun-03 17:24
professionalMichael Martin3-Jun-03 17:24 
GeneralRe: Faarrrkkkk! Pin
Roger Wright3-Jun-03 21:37
professionalRoger Wright3-Jun-03 21:37 
GeneralSOHO LAN Pains Pin
Steve McLenithan1-Jun-03 11:42
Steve McLenithan1-Jun-03 11:42 
QuestionUSB Network? Pin
Aidman31-May-03 16:20
Aidman31-May-03 16:20 
AnswerRe: USB Network? Pin
Michael Martin1-Jun-03 3:28
professionalMichael Martin1-Jun-03 3:28 
GeneralLinux .NET Pin
Sergiu29-May-03 3:27
Sergiu29-May-03 3:27 
GeneralNeed to unlock file Pin
brianwelsch27-May-03 8:30
brianwelsch27-May-03 8:30 
GeneralRSA Full Encryption in Windows CryptoAPI Pin
Popeye Doyle Murray27-May-03 5:22
Popeye Doyle Murray27-May-03 5:22 
GeneralRe: RSA Full Encryption in Windows CryptoAPI Pin
Michael Dunn27-May-03 6:24
sitebuilderMichael Dunn27-May-03 6:24 
GeneralUnix - windows Pin
Sarvesvara (BVKS) Dasa26-May-03 21:49
Sarvesvara (BVKS) Dasa26-May-03 21:49 
GeneralRe: Unix - windows Pin
markkuk27-May-03 0:33
markkuk27-May-03 0:33 
GeneralRe: Unix - windows Pin
Sarvesvara (BVKS) Dasa28-May-03 4:50
Sarvesvara (BVKS) Dasa28-May-03 4:50 
GeneralRe: Unix - windows Pin
cmk5-Jun-03 21:51
cmk5-Jun-03 21:51 
GeneralConnection limits on Windows XP Pin
bob_brown_200026-May-03 14:29
bob_brown_200026-May-03 14:29 
GeneralRe: Connection limits on Windows XP Pin
Sergiu29-May-03 3:23
Sergiu29-May-03 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.