Re: shell32 - file not found

2004-04-14 Thread Martin Fuchs
Hi Juan, > Martin wrote: > > But we could use the expression > > "MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, > > ERROR_FILE_NOT_FOUND)" instead. > > A shorter version is > HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND). Yes, this would also be a possible solution. But HRESULT_FROM_WIN32 contains so

Re: shell32 - file not found

2004-04-14 Thread Juan Lang
Hi Martin, Martin wrote: > But we could use the expression > "MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, > ERROR_FILE_NOT_FOUND)" instead. A shorter version is HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND). Question: could you not change _ILCreateFromPathA to return an HRESULT? --Juan

Re: shell32 - file not found

2004-04-14 Thread Martin Fuchs
> ... > Martin> 0x80070002L; /* file not found */ } else { pidlTemp = > ... > Don't we have a symbolic error for that? There is no such constant in winerror.h. But we could use the expression "MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)" instead. This is also used for

Re: shell32 - file not found

2004-04-13 Thread Uwe Bonnes
> "Martin" == Martin Fuchs <[EMAIL PROTECTED]> writes: Martin> Changelog: return "file not found" error values instead of Martin> E_INVALIDARG if _ILCreateFromPathA() failed to find files ... Martin> 0x80070002L; /* file not found */ } else { pidlTemp = ... Don't we have a symbo