I have a icon handler for my custom file. How I can restrict icon handler functionality so that it can be called by explorer.exe threads only?
How to restrict icon handler to be accessed by a particular process?
156 Views Asked by Harish Surana At
1
There are 1 best solutions below
Related Questions in COM
- Possible consequences of duplicate ProgId for different classes
- Open array declaration lost when regenerating interop.dll with tlbimp.exe from type-lib
- How does a server that expose COM functions via IDispatch can distinct between different clients that Invoke functions without passing any ID param?
- Call IConnectionPoint::Advise cause a crash
- Is it safe to cast a IDispatch* into an IUnknown*, without using QueryInterface, for interprocess COM objects?
- Custom HRESULT from COM component
- Return multiple variables to JavaScript from COM
- How to read from exchange server asynchronously using IMoniker and IStream Interface
- How can a dialog become responsive while waiting for a call to DoModal() to return?
- ICallFactory with 32-bit and 64-bit type libraries side by side
- Report generation in server
- What is required in Delphi 2007 to use Variant arrays?
- How to convert string array to SAFEARRAY or VARIANT or COleVariant?
- ArcObjects ExcelWorkspaceFactory Won't Release Excel File
- Calling a method of a WMI Class
Related Questions in EXPLORER
- Set folder display thumbnail in Explorer with C#
- How to enter an escape sequence when using ProcessBuilder to open Windows file explorer and highlight the file?
- How to end explorer.exe in Windows 8.1 (It restarts each time I do so)
- Eclipse file explorer not working with real device
- can't find file explorer in android studio
- Subclass Windows File Explorer
- Notify Windows Explorer that a wallpaper has been changed
- cmd, Open file in Command Prompt shell without knowing its extension
- How to copy attribute of svg graphic (from html to excel)
- Open file explorer at coordinates
- explorer and mozilla doesn't show website calendar
- Java Fx Drag and Drop to windows explorer - gestureTarget is always null / explorer should wait
- Error 500 launching the Web Service Explorer with Eclipse
- Visual Studio "Open as a Web Site" context menu option
- How to get F# scripts files and other script languages to work like .exe, .cmd, and .bat files in Windows
Related Questions in WINDOWS-SHELL
- Why does it take too long for my shortcut to run my process?
- run python script in every file in a directory through command line
- How to get files selected in Explorer
- Is there a published XML Schema Definition for PROPDESC files?
- Why does TypeName() return different results from .GetType and TypeOf when working with COM?
- Where to place user data file to be roamed along with Windows user's desktop settings?
- Typecast exception from ShellBrowserWindow object to ShellFolderView object
- What are DShellFolderViewEvents and DShellFolderViewEvents_Event?
- Trying to determine printer status always returns 0 for offline & online printers
- FolderItem.Name does return name without file extension
- Detect commandline application from CMD without messing with PATH variable or System32/SysWow64 dir
- Waiting until a process created by calling a batch file has completed
- VERSIONINFO - ignored custom values
- What is the relationship between Windows Shell and the Shell API?
- Open shell locations with c#
Related Questions in SHELL-EXTENSIONS
- Icon Handler shows black icons
- NSE: After minimizing and restoring a window I get 'WM_WINDOWPOSCHANGING' but not 'WM_WINDOWPOSCHANGED'
- Possible to add tags to custom file?
- Register a thumbnail handler for a folder, rather than a specific file type
- Shell extensions in .NET with administrator privileges
- How to enumerate PropertySheet shell extension associated with extension
- What is the entry point in a namespace extension for delete operation?
- Shell Extensions: Static-Linking vs. Dynamic-Linking of C/C++ Run-Time DLLs
- Regasm not working on dll
- Video thumbnail with custom image overlay
- Open sub-subfolder in Windows namespace extension
- Cannot find preview handlers even if apps are installed
- How to write a shell extension in C++?
- capturing a dialog box's process
- Directory Path from Right Click
Related Questions in ICON-HANDLER
- Icon Handler shows black icons
- How to restrict icon handler to be accessed by a particular process?
- What does _com_interfaces_ do?
- My Icon Handler crashes Explorer
- how to custom-draw an item in windows desktop window with win32 sdk
- When system restart in windows xp, the registered icon handler shell extension dll is not loaded by explorer.exe
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Well, you could use
GetModuleFileName(NULL)to find out which EXE your handler is loaded into. You could do that in a COM method (and return, say,E_FAILif you think are in a wrong process), or inDllMainso that your handler fails to even load.However, it's not clear why you would want to do this. For example, an icon handler is used by the standard Open File dialog in any application; do you not want your icon to appear there?
If you envision this as some kind of a security measure, then it won't work very well. A determined attacker would write their own shell extension, get loaded into Explorer, and access your handler from there.