Re: FindExecutable on Windows CE
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 26 Jul 2006 10:48:55 -0700
OK. Well, since I just wanted to see if *something* was associated with
*.pdf, I'd just go looking for the entry in the registry associating *.pdf
with something. That's going to be at:
[HKEY_CLASSES_ROOT\.pdf]
@="<something>"
[HKEY_CLASSES_ROOT\<something>\Shell\Open\Command]
@="\"<launchpath>" %1"
So, you could go looking for <launchpath> or just verify that some
association with .pdf is there. Note that <launchpath> needent be there.
The EXE itself might just be listed and the path might be assumed to contain
it. As I said, I'd just check for the association and not look for the path
itself.
Paul T.
<ajay.sonawane@xxxxxxxxx> wrote in message
news:1153912315.518699.258830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Paul G. Tobey [eMVP] wrote:
You want to decide what application is associated with a given file type?
I
suppose that you could parse the registry keys yourself to see what's
associated, if anything. Why are you doing this? If it's just to decide
what program to run, just call ShellExecuteEx() to launch the document
and
the system will choose the right application.
Paul T.
<ajay.sonawane@xxxxxxxxx> wrote in message
news:1153815846.937176.169970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all,
I want to find executable of any type of file. On windows , we do the
same thing using FindExecutabel function, How can I do it on Windows CE
? It seems that FindExecutable is not supported on Windows CE.
Thanks.
-AJay
I need the full path of the application that is associated with the
file.
I will try to explain what I want to achieve, I need to check whether
acrobat reader or pdfviewer is installed on the Windows CE device. One
way to do this is create one temporary pdf file and find the executable
associated with it ( using FindExecutable or . I am following the same
approach.
Registry gives me the exe name ( pdfviewer.exe %1) and not the full
path, Can you shed some more light on this ?
.
- Follow-Ups:
- Re: FindExecutable on Windows CE
- From: ajay . sonawane
- Re: FindExecutable on Windows CE
- References:
- FindExecutable on Windows CE
- From: ajay . sonawane
- Re: FindExecutable on Windows CE
- From: Paul G. Tobey [eMVP]
- Re: FindExecutable on Windows CE
- From: ajay . sonawane
- FindExecutable on Windows CE
- Prev by Date: Re: Socket connection and ActiveSync
- Next by Date: Re: embedded Visual C++: easy or not?
- Previous by thread: Re: FindExecutable on Windows CE
- Next by thread: Re: FindExecutable on Windows CE
- Index(es):
Relevant Pages
|