Re: Minimal?
From: Gabriel Bogdan (na_at_na.na)
Date: 01/26/05
- Next message: Senthil: "NDIS to User mode"
- Previous message: Gabriel Bogdan: "Re: Mail application compiled in Multithread while dll in Singlethread"
- In reply to: Joni: "Minimal?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 14:12:59 +0200
Static on non-member functions (not from a class) means they are only
accesible withing the same compile unit (.cpp/.c file) IIRC.
It's not really needed for a driver. It's ussualy used to enforce good
programing practices, to restric acces to function that should not be called
from elsewhere, like the private/protected that can be used to member
funtions.
"Joni" <^> wrote in message news:u6CK1s5AFHA.4044@TK2MSFTNGP10.phx.gbl...
> I have this minimal example from the w2k book, it has two
> functions, CreateDevice and DriverUnload. Both these
> functions are declared with 'static', why do we use static
> here?
- Next message: Senthil: "NDIS to User mode"
- Previous message: Gabriel Bogdan: "Re: Mail application compiled in Multithread while dll in Singlethread"
- In reply to: Joni: "Minimal?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|