Need to create a full driver

Hi, I need to build a driver for a card. I want to do it with a client process (wich can be used for any user) and a server process.
But I dont know how to do it. I’d like the client process (without permission) call the server process, and this process can access to ports (in* out* functions).

Anybody can help me with any example? Thanks very much

Look at resource manager framework.