09-17-2006, 10:08 AM
do you have an idea why i get error 'exception' when using empty string ?
from msdn:
works:
works not:
thanks
from msdn:
Quote:pszRootPath
Address of a null-terminated string of maximum length MAX_PATH that contains the path of the root drive on which the Recycle Bin is located. This parameter can contain the address of a string formatted with the drive, folder, and subfolder names (c:\windows\system . . .). It can also contain an empty string or NULL. If this value is an empty string or NULL, all Recycle Bins on all drives will be emptied.
works:
works not:
dll shell32
,SHEmptyRecycleBinA hwnd $pszRootPath dwFlags
,SHUpdateRecycleBinIcon
def SHERB_NORMAL 0
def SHERB_NOCONFIRMATION 1
def SHERB_NOPROGRESSUI 2
def SHERB_NOSOUND 4
def SHERB_QUIET 7
thanks