[pso] [Tema3][Windows]Cannot create a file when that file already exists

Razvan Deaconescu razvan.deaconescu at cs.pub.ro
Tue May 4 16:46:53 EEST 2010


On Tue, 2010-05-04 at 16:27 +0300, Sorin Dumitru wrote:
> Salut,
> 
> Primesc o eroare cand creez deviceul:
> 
> status = IoCreateDevice(
> 			driver,
> 			sizeof(raid_dev_t),
> 			TO_UNICODE(LOGICAL_DISK_DEVICE_NAME, &devUnicodeName),
> 			FILE_DEVICE_DISK,
> 			FILE_DEVICE_SECURE_OPEN,
> 			FALSE,
> 			&device);
> 
> Cannot create a file when that file already exists.
> 
> Inteleg ce vrea sa spuna, dar nu inteleg de ce imi spune asta, ca nu
> cred ca mai exista un device cu numele asta
> pe masina(ultima versiune). LOGICAL_DISK_DEVICE_NAME e cel din ssr.h.
> De ce primesc eroarea asta?

Daca dai alt nume dispozitivului merge? Daca folosesti un tip obisnuit
de dispozitiv (non-FILE_DEVICE_DISK) merge?

Razvan



More information about the pso mailing list