>Hi Guy,
>
>Thanks for reply. My question is different.
>
>In the starting of application , word object is creating by CREATEOBJECT() function.
>Now application does some processing in word.
>
>What we want is while my exe runs on the client machine and doing the processing, User should not allow to open another instance of word , by
>either doubleclicking word shortcut or running word exe etc.
>
>I think the possible solution about this is the TSR. which will check that as soon as word.exe runs on the machine, it prevents it.
>
>But not sure. Pl. advise
>
>John
You can't prevent Word from running. You can check if it's running an you can close it with API calls.
You might want to check the policies in Windows. It's a set of rules that administrator can apply to restrict use of programs.