• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Kaj
3-Jul-2013
[9295]
Yep, that's the glass half empty
Paul
3-Jul-2013
[9296x2]
Thanks Kaj.
There a timeline on those?
Kaj
3-Jul-2013
[9298]
More like an order than an ETA, but you'd have to ask Doc
Paul
3-Jul-2013
[9299x2]
ok
Good info - thanks.
DocKimbel
3-Jul-2013
[9301]
Hi Paul, we have some Windows drivers issues for you to solve, up 
to the challenge? ;-)
Paul
3-Jul-2013
[9302x3]
Hehe.  Possibly but got a new job that is hitting me hard.
Working mostly in SAN/NAS Cloud technologies.
What is your most pressing windows driver issue?
DocKimbel
3-Jul-2013
[9305]
Kaj will explain it to you. :-)
Paul
3-Jul-2013
[9306]
ok
DocKimbel
3-Jul-2013
[9307]
Basically, we have a minifilter driver in Red/System that can be 
installed through an INF file, but when started (using `sc start`) 
we get either error 1058 or error 2 (File not found).
Paul
3-Jul-2013
[9308x2]
SC is the service control manager command line utility
Is the process created as a service?
DocKimbel
3-Jul-2013
[9310]
The INF file installs the filter driver as a service, yes.
Paul
3-Jul-2013
[9311x2]
ok
What is the verbose for 1058?
DocKimbel
3-Jul-2013
[9313]
Just thinking loud, does that mean that the filter driver has to 
respond to service commands?
Paul
3-Jul-2013
[9314]
Yes most likely.
DocKimbel
3-Jul-2013
[9315]
1058: I don't know, that's Kaj's error.
Paul
3-Jul-2013
[9316]
ok
DocKimbel
3-Jul-2013
[9317]
Hmm, I guess we should try then implementing a suitable callback 
to answer properly to SCM commands...
Paul
3-Jul-2013
[9318x2]
Yes, still not sure what SC seen as file not found though.  But a 
process monitor from systems internals might tell us that.
Run procmon.exe against it and see if it records a specific file 
not found.
Bo
3-Jul-2013
[9320]
Thanks for helping on this, Paul!
Paul
3-Jul-2013
[9321]
Sure no problem.
DocKimbel
3-Jul-2013
[9322]
Filemon: yeah, thanks for the reminder, forgot about it.
Paul
3-Jul-2013
[9323x2]
Procmon is the newer version of Filemon.
It gives you much more including registry, network, and profiling 
counters in addition to file system calls.
Kaj
3-Jul-2013
[9325]
Thanks, Paul
Paul
3-Jul-2013
[9326x2]
When working with Windows debugging, I typically like to run a process 
through procmon.exe and dependancy walker profiling before tossing 
into the windows debugger.
np
Kaj
3-Jul-2013
[9328]
1058 is driver deactivated or couldn't bind to any devices
Paul
3-Jul-2013
[9329]
ok, so I assume that was on another platform?  Or was that also on 
windows?
Kaj
3-Jul-2013
[9330x2]
However, the driver just has a skeleton success return entry point, 
it doesn't try to take any devices or anything yet
That's XP
Paul
3-Jul-2013
[9332]
Yeah run against Process Monitor and look for any access denied or 
file not founds or path not found messages.
Kaj
3-Jul-2013
[9333]
Does that do kernel drivers?
Paul
3-Jul-2013
[9334]
Is it a driver or system service?
Kaj
3-Jul-2013
[9335]
A kernel driver, but it's started with the service infrastructure
Paul
3-Jul-2013
[9336]
Have you isolated it down to the system perspective or the driver 
perspective as to where the error is encountered?
Kaj
3-Jul-2013
[9337x2]
It stops earlier for Doc. File not found seems to be the driver file 
itself, so it probably doesn't load at all
On my machine, it loads but then comes back with error 1058
Paul
3-Jul-2013
[9339]
I would use the driver verifier utility on that.
Kaj
3-Jul-2013
[9340x2]
So the system is expecting it to do more than it does. But a null 
driver should just work
Sounds good, what's that?
Paul
3-Jul-2013
[9342x2]
It checks windows drivers to ensure they don't crash or have other 
stability issues.
You'll want to start  there.
Kaj
3-Jul-2013
[9344]
It sounds vaguely familiar, but where is it?