[shell-coding] COM help please?
- From: "e-sushi" <e-sushi@xxxxxxx>
- To: <shell-coding@xxxxxxxxxxxxx>
- Date: Tue, 13 Aug 2002 14:36:06 +0200
ok, I allready posted something on the matter, so here's the
code-part that makes me cry.
What am I doing wrong here that the proggy does call the
findfiles under explorer, but as soon as I fire up a shell like
litestep, this function seems to do nothing?
//cut here
VOID RunFinder( VOID )
{
HRESULT rc;
IShellDispatch *pShellDisp = NULL;
CoInitialize( NULL );
rc = CoCreateInstance( CLSID_Shell, "shell32.dll",
CLSCTX_SERVER,
IID_IShellDispatch, (LPVOID *) &pShellDisp );
pShellDisp->FindFiles();
pShellDisp->Release();
CoUninitialize();
return;
}
//cut here
The snippet is also attached, if your mail client should destroy
format.
Thanks for any feedback that may come.
//Mike, mailto:e-sushi@xxxxxxx
VOID RunFinder( VOID )
{
HRESULT rc;
IShellDispatch *pShellDisp = NULL;
CoInitialize( NULL );
rc = CoCreateInstance( CLSID_Shell, "shell32.dll", CLSCTX_SERVER,
IID_IShellDispatch, (LPVOID *) &pShellDisp );
pShellDisp->FindFiles();
pShellDisp->Release();
CoUninitialize();
return;
}
- Follow-Ups:
- [shell-coding] Re: COM help please?
- From: Kevin Schaffer
Other related posts:
- » [shell-coding] COM help please?
- » [shell-coding] Re: COM help please?
- » [shell-coding] Re: COM help please?
- » [shell-coding] Re: COM help please?
- » [shell-coding] Re: COM help please?
- » [shell-coding] Re: COM help please
- » [shell-coding] Re: COM help please?
- » [shell-coding] Re: COM help please
- » [shell-coding] Re: COM help please?
- » [shell-coding] Re: COM help please?
- [shell-coding] Re: COM help please?
- From: Kevin Schaffer