codice:
UINT oldmode = SetErrorMode(SEM_NOOPENFILEERRORBOX);

// FAI QUELLO CHE DEVI FARE...

SetErrorMode(oldmode);