Hi,
I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
Win7 32-bit Release Build for my profile. I get this error that does not
seem to be in OSR archives or on Google. I can’t seem to locate a list of
‘reasons’. Any idea?
c:\Scanner\C++>fltmc load scanner
Load failed with error: 0x800700c1
Error reason could not be translated, Message code: 0x800700c1, Reason: 57
Thank you in advance!
Looks to me like this is HRESULT_FROM_WIN32 (ERROR_BAD_EXE_FORMAT) (which is
a documented return from FilterLoad). Have you tried opening the executable
in Dependency Walker?
-scott
OSR
@OSRDrivers
“Brett Cunningham” wrote in message news:xxxxx@ntfsd…
Hi,
I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
Win7 32-bit Release Build for my profile. I get this error that does not
seem to be in OSR archives or on Google. I can’t seem to locate a list of
‘reasons’. Any idea?
c:\Scanner\C++>fltmc load scanner
Load failed with error: 0x800700c1
Error reason could not be translated, Message code: 0x800700c1, Reason: 57
Thank you in advance!
Thanks Scott. I had not used that tool before. I downloaded and was able to
identify two issues. I resolved one myself, but the other is:
“Error: At least one required implicit or forwarded dependency was not
found.”
It is referring to fltmgr.sys. The file is in C:\Windows\system32\drivers.
I don’t have an “include” statement calling that. I’m sure this is
something easy I am not understanding.
On Mon, Dec 29, 2014 at 1:11 PM, Scott Noone wrote:
> Looks to me like this is HRESULT_FROM_WIN32 (ERROR_BAD_EXE_FORMAT) (which
> is a documented return from FilterLoad). Have you tried opening the
> executable in Dependency Walker?
>
> -scott
> OSR
> @OSRDrivers
>
> “Brett Cunningham” wrote in message news:xxxxx@ntfsd.
> …
>
> Hi,
>
> I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
> Win7 32-bit Release Build for my profile. I get this error that does not
> seem to be in OSR archives or on Google. I can’t seem to locate a list of
> ‘reasons’. Any idea?
>
> c:\Scanner\C++>fltmc load scanner
>
> Load failed with error: 0x800700c1
>
> Error reason could not be translated, Message code: 0x800700c1, Reason: 57
>
>
> Thank you in advance!
>
> —
> NTFSD is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Are you running Depends on your target machine or your host? You want to run
it on the target using the 32-bit version of Depends.
-scott
OSR
@OSRDrivers
“Brett Cunningham” wrote in message news:xxxxx@ntfsd…
Thanks Scott. I had not used that tool before. I downloaded and was able to
identify two issues. I resolved one myself, but the other is:
“Error: At least one required implicit or forwarded dependency was not
found.”
It is referring to fltmgr.sys. The file is in C:\Windows\system32\drivers.
I don’t have an “include” statement calling that. I’m sure this is something
easy I am not understanding.
On Mon, Dec 29, 2014 at 1:11 PM, Scott Noone wrote:
Looks to me like this is HRESULT_FROM_WIN32 (ERROR_BAD_EXE_FORMAT) (which is
a documented return from FilterLoad). Have you tried opening the executable
in Dependency Walker?
-scott
OSR
@OSRDrivers
“Brett Cunningham” wrote in message news:xxxxx@ntfsd…
Hi,
I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
Win7 32-bit Release Build for my profile. I get this error that does not
seem to be in OSR archives or on Google. I can’t seem to locate a list of
‘reasons’. Any idea?
c:\Scanner\C++>fltmc load scanner
Load failed with error: 0x800700c1
Error reason could not be translated, Message code: 0x800700c1, Reason: 57
Thank you in advance!
—
NTFSD is sponsored by OSR
OSR is hiring!! Info at http://www.osr.com/careers
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
I’m doing development on a single Win7 host. It is the host and the target.
On Mon, Dec 29, 2014 at 3:14 PM, Scott Noone wrote:
> Are you running Depends on your target machine or your host? You want to
> run it on the target using the 32-bit version of Depends.
>
> -scott
> OSR
> @OSRDrivers
>
> “Brett Cunningham” wrote in message news:xxxxx@ntfsd.
> …
> Thanks Scott. I had not used that tool before. I downloaded and was able
> to identify two issues. I resolved one myself, but the other is:
>
> “Error: At least one required implicit or forwarded dependency was not
> found.”
>
> It is referring to fltmgr.sys. The file is in
> C:\Windows\system32\drivers. I don’t have an “include” statement calling
> that. I’m sure this is something easy I am not understanding.
>
> On Mon, Dec 29, 2014 at 1:11 PM, Scott Noone wrote:
> Looks to me like this is HRESULT_FROM_WIN32 (ERROR_BAD_EXE_FORMAT) (which
> is a documented return from FilterLoad). Have you tried opening the
> executable in Dependency Walker?
>
> -scott
> OSR
> @OSRDrivers
>
> “Brett Cunningham” wrote in message news:xxxxx@ntfsd.
> …
>
> Hi,
>
> I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
> Win7 32-bit Release Build for my profile. I get this error that does not
> seem to be in OSR archives or on Google. I can’t seem to locate a list of
> ‘reasons’. Any idea?
>
> c:\Scanner\C++>fltmc load scanner
>
> Load failed with error: 0x800700c1
>
> Error reason could not be translated, Message code: 0x800700c1, Reason: 57
>
>
> Thank you in advance!
>
> —
> NTFSD is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> —
> NTFSD is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
It’s really better to use seperate machines, you’re never going to be able to debug the driver with one machine. But that’s obviously not your current problem…
Is it really saying that it can’t find the file or is it an import that is missing? You may be calling something that doesn’t exist in that version of Filter Manager. Do you know if your DriverEntry is being called when you try to load the driver?
-scott
OSR
@OSRDrivers
From winerror.h
//
// MessageId: ERROR_BAD_EXE_FORMAT
//
// MessageText:
//
// %1 is not a valid Win32 application.
//
#define ERROR_BAD_EXE_FORMAT 193L
193 == 0xc1
0x8000000 just means “error”
0x00070000 is:
#define FACILITY_WIN32 7
So, this is just a COM-style version of error 193.
Have you tried to load 64bit SYS on a 32bit OS?
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
“Brett Cunningham” wrote in message news:xxxxx@ntfsd…
Hi,
I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using Win7 32-bit Release Build for my profile. I get this error that does not seem to be in OSR archives or on Google. I can’t seem to locate a list of ‘reasons’. Any idea?
c:\Scanner\C++>fltmc load scanner
Load failed with error: 0x800700c1
Error reason could not be translated, Message code: 0x800700c1, Reason: 57
Thank you in advance!
Soone - I’ve taken a screenshot of the error: http://snag.gy/6Iz6x.jpg . I
am at a loss as to why it errors on fltmgr.sys.
Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
Files\GnuWin32\bin\file.exe” scanner.sys
scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
The code is on github, if you want to look. Scanner/C++/filter/ is the
kernel-mode driver. I am trying to use fltmc load against
Scanner/C++/filter/Win7Release/scanner.sys.
On Tue, Dec 30, 2014 at 2:54 PM, Brett Cunningham wrote:
> Soone - I’ve attached a screenshot from Depends. I am at a loss as to why
> it errors on fltmgr.sys.
>
> Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
>
> C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
> Files\GnuWin32\bin\file.exe” scanner.sys
> scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
>
> The code is on github, if you want to look. Scanner/C++/filter/ is the
> kernel-mode driver. I am trying to use fltmc load against
> Scanner/C++/filter/Win7Release/scanner.sys.
>
> On Tue, Dec 30, 2014 at 4:17 AM, Maxim S. Shatskih > > wrote:
>
>> From winerror.h
>>
>> //
>> // MessageId: ERROR_BAD_EXE_FORMAT
>> //
>> // MessageText:
>> //
>> // %1 is not a valid Win32 application.
>> //
>> #define ERROR_BAD_EXE_FORMAT 193L
>>
>> 193 == 0xc1
>>
>> 0x8000000 just means “error”
>> 0x00070000 is:
>>
>> #define FACILITY_WIN32 7
>>
>> So, this is just a COM-style version of error 193.
>>
>> Have you tried to load 64bit SYS on a 32bit OS?
>>
>> –
>> Maxim S. Shatskih
>> Microsoft MVP on File System And Storage
>> xxxxx@storagecraft.com
>> http://www.storagecraft.com
>>
>> “Brett Cunningham” wrote in message news:xxxxx@ntfsd.
>> …
>> Hi,
>>
>>
>> I am trying to load a Win32 sys driver on Win7 32-bit platform. I am
>> using Win7 32-bit Release Build for my profile. I get this error that does
>> not seem to be in OSR archives or on Google. I can’t seem to locate a list
>> of ‘reasons’. Any idea?
>>
>>
>> c:\Scanner\C++>fltmc load scanner
>>
>>
>> Load failed with error: 0x800700c1
>>
>>
>> Error reason could not be translated, Message code: 0x800700c1, Reason: 57
>>
>>
>>
>>
>> Thank you in advance!
>>
>> —
>> NTFSD is sponsored by OSR
>>
>> OSR is hiring!! Info at http://www.osr.com/careers
>>
>> For our schedule of debugging and file system seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
I figured the problem out, though I am not sure why it works. I fixed it by
putting the .sys in the same folder as the inf file and running install on
the inf. Then, fltmc load worked perfectly. The inf makes no modifications
to the .sys, so why would it initially report it as not a valid Win32 PE
file?
On Tue, Dec 30, 2014 at 3:01 PM, Brett Cunningham wrote:
> Soone - I’ve taken a screenshot of the error: http://snag.gy/6Iz6x.jpg . I
> am at a loss as to why it errors on fltmgr.sys.
>
> Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
>
> C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
> Files\GnuWin32\bin\file.exe” scanner.sys
> scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
>
> The code is on github, if you want to look. Scanner/C++/filter/ is the
> kernel-mode driver. I am trying to use fltmc load against
> Scanner/C++/filter/Win7Release/scanner.sys.
>
> On Tue, Dec 30, 2014 at 2:54 PM, Brett Cunningham
> wrote:
>
>> Soone - I’ve attached a screenshot from Depends. I am at a loss as to why
>> it errors on fltmgr.sys.
>>
>> Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
>>
>> C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
>> Files\GnuWin32\bin\file.exe” scanner.sys
>> scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
>>
>> The code is on github, if you want to look. Scanner/C++/filter/ is the
>> kernel-mode driver. I am trying to use fltmc load against
>> Scanner/C++/filter/Win7Release/scanner.sys.
>>
>> On Tue, Dec 30, 2014 at 4:17 AM, Maxim S. Shatskih <
>> xxxxx@storagecraft.com> wrote:
>>
>>> From winerror.h
>>>
>>> //
>>> // MessageId: ERROR_BAD_EXE_FORMAT
>>> //
>>> // MessageText:
>>> //
>>> // %1 is not a valid Win32 application.
>>> //
>>> #define ERROR_BAD_EXE_FORMAT 193L
>>>
>>> 193 == 0xc1
>>>
>>> 0x8000000 just means “error”
>>> 0x00070000 is:
>>>
>>> #define FACILITY_WIN32 7
>>>
>>> So, this is just a COM-style version of error 193.
>>>
>>> Have you tried to load 64bit SYS on a 32bit OS?
>>>
>>> –
>>> Maxim S. Shatskih
>>> Microsoft MVP on File System And Storage
>>> xxxxx@storagecraft.com
>>> http://www.storagecraft.com
>>>
>>> “Brett Cunningham” wrote in message
>>> news:xxxxx@ntfsd…
>>> Hi,
>>>
>>>
>>> I am trying to load a Win32 sys driver on Win7 32-bit platform. I am
>>> using Win7 32-bit Release Build for my profile. I get this error that does
>>> not seem to be in OSR archives or on Google. I can’t seem to locate a list
>>> of ‘reasons’. Any idea?
>>>
>>>
>>> c:\Scanner\C++>fltmc load scanner
>>>
>>>
>>> Load failed with error: 0x800700c1
>>>
>>>
>>> Error reason could not be translated, Message code: 0x800700c1, Reason:
>>> 57
>>>
>>>
>>>
>>>
>>> Thank you in advance!
>>>
>>> —
>>> NTFSD is sponsored by OSR
>>>
>>> OSR is hiring!! Info at http://www.osr.com/careers
>>>
>>> For our schedule of debugging and file system seminars visit:
>>> http://www.osr.com/seminars
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> http://www.osronline.com/page.cfm?name=ListServer
>>>
>>
>>
>
Which SYS file did you put with the INF, your driver binary or FltMgr.sys?
Putting your driver binary in the same folder as the INF and then installing
the INF is the standard mechanism for installing the filter.
-scott
OSR
@OSRDrivers
“Brett Cunningham” wrote in message news:xxxxx@ntfsd…
I figured the problem out, though I am not sure why it works. I fixed it by
putting the .sys in the same folder as the inf file and running install on
the inf. Then, fltmc load worked perfectly. The inf makes no modifications
to the .sys, so why would it initially report it as not a valid Win32 PE
file?
On Tue, Dec 30, 2014 at 3:01 PM, Brett Cunningham wrote:
Soone - I’ve taken a screenshot of the error: http://snag.gy/6Iz6x.jpg . I
am at a loss as to why it errors on fltmgr.sys.
Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
Files\GnuWin32\bin\file.exe” scanner.sys
scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
The code is on github, if you want to look. Scanner/C++/filter/ is the
kernel-mode driver. I am trying to use fltmc load against
Scanner/C++/filter/Win7Release/scanner.sys.
On Tue, Dec 30, 2014 at 2:54 PM, Brett Cunningham wrote:
Soone - I’ve attached a screenshot from Depends. I am at a loss as to why it
errors on fltmgr.sys.
Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
Files\GnuWin32\bin\file.exe” scanner.sys
scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
The code is on github, if you want to look. Scanner/C++/filter/ is the
kernel-mode driver. I am trying to use fltmc load against
Scanner/C++/filter/Win7Release/scanner.sys.
On Tue, Dec 30, 2014 at 4:17 AM, Maxim S. Shatskih
wrote:
From winerror.h
//
// MessageId: ERROR_BAD_EXE_FORMAT
//
// MessageText:
//
// %1 is not a valid Win32 application.
//
#define ERROR_BAD_EXE_FORMAT 193L
193 == 0xc1
0x8000000 just means “error”
0x00070000 is:
#define FACILITY_WIN32 7
So, this is just a COM-style version of error 193.
Have you tried to load 64bit SYS on a 32bit OS?
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
“Brett Cunningham” wrote in message news:xxxxx@ntfsd…
Hi,
I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
Win7 32-bit Release Build for my profile. I get this error that does not
seem to be in OSR archives or on Google. I can’t seem to locate a list of
‘reasons’. Any idea?
c:\Scanner\C++>fltmc load scanner
Load failed with error: 0x800700c1
Error reason could not be translated, Message code: 0x800700c1, Reason: 57
Thank you in advance!
—
NTFSD is sponsored by OSR
OSR is hiring!! Info at http://www.osr.com/careers
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Yes, the correct way worked: putting the driver binary in the same folder
as the inf file, installing the inf and then loading the driver. Thank you
to the entire list for your help!
On Fri, Jan 2, 2015 at 1:26 PM, Scott Noone wrote:
> Which SYS file did you put with the INF, your driver binary or FltMgr.sys?
> Putting your driver binary in the same folder as the INF and then
> installing the INF is the standard mechanism for installing the filter.
>
> -scott
> OSR
> @OSRDrivers
>
> “Brett Cunningham” wrote in message news:xxxxx@ntfsd.
> …
> I figured the problem out, though I am not sure why it works. I fixed it
> by putting the .sys in the same folder as the inf file and running install
> on the inf. Then, fltmc load worked perfectly. The inf makes no
> modifications to the .sys, so why would it initially report it as not a
> valid Win32 PE file?
>
> On Tue, Dec 30, 2014 at 3:01 PM, Brett Cunningham
> wrote:
>
> Soone - I’ve taken a screenshot of the error: http://snag.gy/6Iz6x.jpg .
> I am at a loss as to why it errors on fltmgr.sys.
>
> Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
>
> C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
> Files\GnuWin32\bin\file.exe” scanner.sys
> scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
>
> The code is on github, if you want to look. Scanner/C++/filter/ is the
> kernel-mode driver. I am trying to use fltmc load against
> Scanner/C++/filter/Win7Release/scanner.sys.
>
>
> On Tue, Dec 30, 2014 at 2:54 PM, Brett Cunningham
> wrote:
>
> Soone - I’ve attached a screenshot from Depends. I am at a loss as to why
> it errors on fltmgr.sys.
>
> Maxim - I’ve used file
from GnuWin32 to confirm it’s 32-bit:
>
> C:\hipara\Scanner\C++\filter\Win7Release>“c:\Program
> Files\GnuWin32\bin\file.exe” scanner.sys
> scanner.sys; PE32 executable for MS Windows (native) Intel 80386 32-bit
>
> The code is on github, if you want to look. Scanner/C++/filter/ is the
> kernel-mode driver. I am trying to use fltmc load against
> Scanner/C++/filter/Win7Release/scanner.sys.
>
> On Tue, Dec 30, 2014 at 4:17 AM, Maxim S. Shatskih
> wrote:
> From winerror.h
>
> //
> // MessageId: ERROR_BAD_EXE_FORMAT
> //
> // MessageText:
> //
> // %1 is not a valid Win32 application.
> //
> #define ERROR_BAD_EXE_FORMAT 193L
>
> 193 == 0xc1
>
> 0x8000000 just means “error”
> 0x00070000 is:
>
> #define FACILITY_WIN32 7
>
> So, this is just a COM-style version of error 193.
>
> Have you tried to load 64bit SYS on a 32bit OS?
>
> –
> Maxim S. Shatskih
> Microsoft MVP on File System And Storage
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> “Brett Cunningham” wrote in message news:xxxxx@ntfsd.
> …
> Hi,
>
>
> I am trying to load a Win32 sys driver on Win7 32-bit platform. I am using
> Win7 32-bit Release Build for my profile. I get this error that does not
> seem to be in OSR archives or on Google. I can’t seem to locate a list of
> ‘reasons’. Any idea?
>
>
> c:\Scanner\C++>fltmc load scanner
>
>
> Load failed with error: 0x800700c1
>
>
> Error reason could not be translated, Message code: 0x800700c1, Reason: 57
>
>
>
>
> Thank you in advance!
>
>
> —
> NTFSD is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
>
>
>
>
> —
> NTFSD is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>