Hello

I wrote the registry that when double-clicking on files, written by my program, starts the program. It starts the program but I want program to read data from them. For example, MSWord files *.doc when clicked, are starting the MSWord and program automatically open that files. I looked for API but haven't found it.
Any suggestion to solv this?