Jim Stevenson writes: "If I compile the c code under linux, should it work that way?" definitely no. it has to be rewritten as a kernel-mode driver or as code that calls an extant driver. I agree with the earlier comment --forget about using this code with Linux.