no static functions in WDK examples;



I don;t see any "static" functions in WDK examples. Even though there
are functions which are used inside only one file. Generally if a 'c'
function local to a file is declared static. Is there a technical
reason for not using static?
[I'm new to driver development so may this question is stupid.]

Are there any general guidelines for writing drivers (disk filter
drivers, to be more specific). Thanks.

Also how can I compare two MULTI_REG_SZ buffers returned by
IoGetDeviceProperty when called for DevicePropertyHardwareID?
Currently I'm just comparing each character (in a for loop) upto
ResultLength returned by IoGetDeviceProperty.

for (i = 0; i < propertyLength; i++) {
if (myHardWareID[i] != propertyBuffer[i]) {
break;
}
}

if (i != propertyLength) {
DebugPrint ("Not matched");
}
.



Relevant Pages

  • Re: Button Arguably the Best English Driver, Ever
    ... exceeded only by Moss, Clark and Hill, certainly in their company. ... How many wins does he have compared to other English drivers? ... don't know how any one can compare say, Lewis Hamilton with Mansell, ... we do know Mansell can do the racer thing. ...
    (rec.autos.sport.f1)
  • Re: More support for Lewis - now from McLaren!
    ... demonstrating that he is one of the best drivers to ever hit F1. ... Compare their cars. ... Benetton vs the best car on the grid for the last two years. ... of course rookie mistakes are going to happen. ...
    (rec.autos.sport.f1)
  • Re: Button Arguably the Best English Driver, Ever
    ... exceeded only by Moss, Clark and Hill, certainly in their company. ... How many wins does he have compared to other English drivers? ... don't know how any one can compare say, Lewis Hamilton with Mansell, ... Hill was a good test driver but no racer. ...
    (rec.autos.sport.f1)
  • Re: More support for Lewis - now from McLaren!
    ... demonstrating that he is one of the best drivers to ever hit F1. ... Compare MSchu's first two full ... Benetton vs the best car on the grid for the last two years. ... Speed and talent are prerequisite, ...
    (rec.autos.sport.f1)
  • Re: More support for Lewis - now from McLaren!
    ... demonstrating that he is one of the best drivers to ever hit F1. ... Compare MSchu's first two full ... Benetton vs the best car on the grid for the last two years. ... IMHO, right now, Hamilton is a clone of Montoya, not Schumacher. ...
    (rec.autos.sport.f1)

Loading