Small question, in the MMP file of a device driver, what "capabilities" should I list - those the driver needs, or those required in order to use the driver?
Practically, in the MMP file of an EXE, you have to list those capabilities that you'd like your EXE to be able to do. E.g. if you want your EXE to perform HTTP comms (over TCP/IP), then you have to add NetworkServices capability. If you don't add it to the list, then your EXE will not be able to perform network comms.
However, the meaning of asssigned capabilities is a little bit different for executables other than EXE (like a device driver, a special DLL). For these binaries, capabilities indicates the level of trust, what you can do with the library IF the hosting process (i.e. the EXE) holds that capability. That is, you can assign NetworkServices capability to your device driver (strange, though), it won't necessarily work unless the hosting process has NetworkServices capability, too. The more capabilities a library has, the more you can trust it.
Finally, answering your question: the target should be to assign as many capabilities to your device driver as you can (yes, including NetworkServices, too). Nevertheless, you might have some hard moments when you try to sign your device driver and people are asking questions about the capabilities of your module.
Forum posts: 364
http://www.symbian.com/developer/public/index.html
Forum posts: 721
However, the meaning of asssigned capabilities is a little bit different for executables other than EXE (like a device driver, a special DLL). For these binaries, capabilities indicates the level of trust, what you can do with the library IF the hosting process (i.e. the EXE) holds that capability. That is, you can assign NetworkServices capability to your device driver (strange, though), it won't necessarily work unless the hosting process has NetworkServices capability, too. The more capabilities a library has, the more you can trust it.
Finally, answering your question: the target should be to assign as many capabilities to your device driver as you can (yes, including NetworkServices, too). Nevertheless, you might have some hard moments when you try to sign your device driver and people are asking questions about the capabilities of your module.
tOtE
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/