[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Don't create handles to unknown VxDs
From:       Slava Monich <Slava.Monich () netmanage ! com>
Date:       1999-07-31 16:29:24
[Download RAW message or body]

Ulrich Weigand wrote:
> 
> Hello,
> 
> this avoids creating handles to unknown VxDs, as some programs
> explicitly test for *absence* of certain VxDs (notably debugger
> VxDs, apparently meant as some kind of 'anti-hack protection' :-/).
> 
> Now, only those VxDs explicitly listed can be openend.
> 
> [...]
>
> +    SetLastError( ERROR_PATH_NOT_FOUND );
> +    return HFILE_ERROR;
>  }
> 

According to documentation, if CreateFile cannot find or load 
the VxD, it sets the last error value to ERROR_FILE_NOT_FOUND
(not ERROR_PATH_NOT_FOUND). If the function loads the VxD but 
the VxD does not support the device IOCTL interface, CreateFile 
sets the last error value to ERROR_NOT_SUPPORTED. 

Regards,
Slava


=========================================================================

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic