HFILE OpenFile(LPCSTR NomDuFichier, OFSTRUCT *Informations, UINT Mode);
Teste si une unité de disque existe.
#include <windows.h>
#include <winbase.h>
HFILE Handle;
memset(&Informations, 0, sizeof(OFSTRUCT));
Handle=OpenFile("C:\\tmp\\essai.txt", &Informations, OF_EXIST);
if (Handle==-1)
{
...
}
...