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?
157 Views Asked by Harish Surana At
1
There are 1 best solutions below
Related Questions in COM
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- WinAPI - right mouse drag & drop and IContextMenu
- Function Returning Excel COM Objects Unexpectedly
- Windows ContextMenuHandler names - Document conflict?
- How to publish a console application with COM interop and trim unused code
- IContextMenu Handler - Should ShellExecute or CreateProcess be used to InvokeCommand?
- Windows Explorer Conditional Context Menu Item for Drive?
- How do I fix an error while trying to send email using Outlook with COM?
- ITypeLib2.GetLibStatistics() always throws AccessViolationException in C#
- Directwrite is not always able to query font
- How can I pass a C++ struct to a C# DLL method using COM interop
- VBA PowerPoint Run-time error '-2147467259' (80004005): Presentation.Close: Failed
- PHP using a dll with COM + dotnet
- d3d11 triangle rendering failure despite everything being properly initialized
- COM context menu InvokeCommand not being called
Related Questions in EXPLORER
- Batch file no longer works correctly in Windows 11
- Explorer.exe keep writes registry entry silently upon right click on certain file types
- How do I write a hexadecimal value to the registry?
- How can I keep a batch file going until the opened folder window is closed?
- Server 2012 Windows keep freezing
- How to create new folder type for Windows 10 explorer
- d:/ will be some for no reason called av_quality_[a string of numbers] of files
- How to run Powershell from the Windows Explorer Address Bar
- Folder Last Modified Date Discrepancy in Windows Explorer due to Subfolder Changes
- VScode issue when trying to open a project with a big folder
- How do I get this property by using Power Shell?
- How to make Windows File Explorer appear in foreground every time called via Node.js
- PySide6 preocessing of dropped files/folders locks source Explorer window
- Set default windows app for common middle extension but different last extension
- Enumerating internals of a multi-tab shell window in Windows 11
Related Questions in WINDOWS-SHELL
- Windows ContextMenuHandler names - Document conflict?
- IContextMenu Handler - Should ShellExecute or CreateProcess be used to InvokeCommand?
- Windows Explorer Conditional Context Menu Item for Drive?
- COM context menu InvokeCommand not being called
- .NET cross-platform alternative to Microsoft.WindowsAPICodePack.Shell.ShellFile
- Drag and Drop Attachments from Outlook to Windows Filesystem
- How to extract overlay icon or its path from file in windows
- Can't get thumbnail from IShellItem using IThumbnailProvider
- SHChangeNotify for cloud folders fails with long paths
- Move files/folder from multiple source into one target path using windows shell script in autohotkey
- What does SHCONTF_FLATLIST actually mean in Shell folder enumeration?
- What is the difference between CMF_NODEFAULT and CMF_DONOTPICKDEFAULT?
- Have the shell display a different icon and file type based on file format version
- Programtically ask explorer to refresh Portable device folder contents
- Hiding visible columns in Windows Explorer via IColumnManager of Windows Shell doesn't work
Related Questions in SHELL-EXTENSIONS
- Windows shell extension file permissions
- Determine ordering of windows shell context menu extension entries
- Windows Shell: Add custom context menu to a specified position
- How to start a NamedPipeServer within a Windows Explorer ShellExtension in a correct way
- Limitations on the Number of Items and Nesting Levels in Windows 11 File Explorer Context
- Explorer is not querying IContextMenu interface from my ContextMenuHandler
- Overriding the thumbnail of a single file using WinAPI
- How to perform operations after the shell complete the drag&drop in a COM Drag&Drop Handler?
- How to get targeted file/folder information when implementing a COM object using IContextMenu interface
- Why is IExplorerCommand::Invoke() no longer being called?
- How to scale Windows context menu icons
- How to execute action on destination of copy-paste, move and drag-and-drop operations
- How do I retrieve / iterate Win11 IExplorerCommand context menu items?
- How to force Explorer use modern file operation dialog with Shell Namespace Extension
- IDropTarget registration not working on Windows 11
Related Questions in ICON-HANDLER
- What does _com_interfaces_ do?
- Icon Handler shows black icons
- 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
- How to restrict icon handler to be accessed by a particular process?
- My Icon Handler crashes Explorer
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 # Hahtags
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.