When you set up your file association, use:

"c:\myapp\myapp.exe" "%1"

The %1 will be expanded into the filename.

Although - what I meant by 'parameters' was that you can specify absolute parameters and they'll work, but no specific expansions will be performed. Anyone got any details for environment variables?