no static functions in WDK examples;
- From: pradeep bisht <pradeep_bisht@xxxxxxxxx>
- Date: Sat, 14 Jun 2008 12:40:56 -0700 (PDT)
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");
}
.
- Follow-Ups:
- Re: no static functions in WDK examples;
- From: Don Burn
- Re: no static functions in WDK examples;
- Prev by Date: Re: CreateFileMapping failing for large files - ERROR_NOT_ENOUGH_Q
- Next by Date: Re: no static functions in WDK examples;
- Previous by thread: Heap Corruption error - please help
- Next by thread: Re: no static functions in WDK examples;
- Index(es):
Relevant Pages
|
Loading