Click here to Skip to main content
12,405,653 members (59,819 online)
Click here to Skip to main content

Stats

47.3K views
3.3K downloads
61 bookmarked
Posted

.NET Shell Extensions - Shell Preview Handlers

, 20 May 2014 MIT
Quickly create Shell Preview Handlers for Windows or Outlook using .NET!
SharpShell.dll
SharpShell Source Code
Dependencies
Apex
Apex.WinForms.dll
SharpShell
packages
Apex.1.5.0
Apex.1.5.0.nupkg
lib
net35
Apex.dll
net40
Apex.dll
sl30
Apex.Silverlight.dll
sl3-wp
Apex.WP7.dll
sl40
Apex.Silverlight4.dll
sl4-wp71
Apex.WP7.dll
sl50
Apex.Silverlight.dll
ILMerge.2.12.0803
ILMerge.2.12.0803.nupkg
ILMerge.doc
ILMerge.exe
NUnit.2.6.2
lib
nunit.framework.dll
NUnit.2.6.2.nupkg
NUnit.2.6.2.nuspec
Samples
ContextMenu
ContextMenuComponent
Properties
ContextMenuSample
Properties
CountLinesExtension
CountLinesExtension.csproj.vspscc
Key.snk
Properties
Resources
CountLines.bmp
DllContextMenuExtension
DllContextMenuExtension.csproj.vspscc
Key.snk
Properties
IsolatedContextMenuComponent
Diagnostics
Interop
Properties
ServerRegistration
SharpContextMenu
DropHandler
XsdDropHandler
ExampleFiles
Key.snk
Properties
XsdDropHandler.csproj.vspscc
IconHandler
DllIconHandler
DllIconHandler.csproj.vspscc
Key.snk
Properties
Resources
ManagedDll.ico
NativeDll.ico
IconOverlayHandler
ReadOnlyFileIconOverlayHandler
Key.snk
Properties
ReadOnlyFileIconOverlayHandler.csproj.vspscc
Resources
ReadOnly.ico
InfoTipHandler
FolderInfoTipHandler
FolderInfoTipHandler.csproj.vspscc
Key.snk
Properties
PreviewHandler
IconPreviewHandler
Dependencies
IconLib.dll
IconLib.dll
IconPreviewHandler.csproj.user
IconPreviewHandler.csproj.vspscc
Key.snk
Properties
PropertySheet
DrivePropertySheet
DrivePropertySheet.csproj.vspscc
Key.snk
Properties
ResourcesPropertySheet
Key.snk
Properties
ResourcesPropertySheet.csproj.vspscc
TextFilePropertySheet
Key.snk
Properties
TextFilePropertySheet.csproj.vspscc
SharpShell
Attributes
Diagnostics
Extensions
Interop
Key.snk
NativeBridge
SharpShellNativeBridge32.dll
SharpShellNativeBridge64.dll
Properties
ServerRegistration
SharpContextMenu
SharpDropHandler
SharpIconHandler
SharpIconOverlayHandler
SharpInfoTipHandler
SharpPreviewHandler
SharpPropertySheet
SharpShell.csproj.user
SharpShell.csproj.vspscc
SharpShellNativeBridge
SharpShellNativeBridge.aps
SharpShellNativeBridge.vcxproj.filters
SharpShellNativeBridge.vcxproj.user
SharpShellNativeBridge.vcxproj.vspscc
SharpShellNativeBridge1.aps
Tools
ExtensionManager
Properties
Resources
xsd.ico
ServerInspector
Properties
ServerInspector.csproj.vspscc
Servers
ServerManager
About
LogView
Properties
Resources
ChangeYourView.png
ContextMenu.png
Icon.png
IconOverlayHandler.png
InfoTip.png
openHS.png
PlayHS.png
PropertySheet.png
View_Details.png
View_LargeIcons.png
View_List.png
View_SmallIcons.png
View_Tiles.png
ServerDetails
ServerManager.csproj.user
ServerManager.csproj.vspscc
SharpShell.ico
TestShell
ShellExtensionManager
Properties
ShellExtensionManager.csproj.vspscc
SharpShell.dll
Apex.WinForms.dll
ServerManager.exe
Apex.dll
ServerInspector.exe
namespace SharpShell.Interop
{
    internal class WindowStyles
    {
        public const uint WS_OVERLAPPED       = 0x00000000;
        public const uint WS_POPUP        = 0x80000000;
        public const uint WS_CHILD        = 0x40000000;
        public const uint WS_MINIMIZE     = 0x20000000;
        public const uint WS_VISIBLE      = 0x10000000;
        public const uint WS_DISABLED     = 0x08000000;
        public const uint WS_CLIPSIBLINGS     = 0x04000000;
        public const uint WS_CLIPCHILDREN     = 0x02000000;
        public const uint WS_MAXIMIZE     = 0x01000000;
        public const uint WS_CAPTION      = 0x00C00000;     /* WS_BORDER | WS_DLGFRAME  */
        public const uint WS_BORDER       = 0x00800000;
        public const uint WS_DLGFRAME     = 0x00400000;
        public const uint WS_VSCROLL      = 0x00200000;
        public const uint WS_HSCROLL      = 0x00100000;
        public const uint WS_SYSMENU      = 0x00080000;
        public const uint WS_THICKFRAME       = 0x00040000;
        public const uint WS_GROUP        = 0x00020000;
        public const uint WS_TABSTOP      = 0x00010000;

        public const uint WS_MINIMIZEBOX      = 0x00020000;
        public const uint WS_MAXIMIZEBOX      = 0x00010000;

        public const uint WS_TILED        = WS_OVERLAPPED;
        public const uint WS_ICONIC       = WS_MINIMIZE;
        public const uint WS_SIZEBOX      = WS_THICKFRAME;
        public const uint WS_TILEDWINDOW      = WS_OVERLAPPEDWINDOW;

        // Common Window Styles

        public const uint WS_OVERLAPPEDWINDOW = 
            ( WS_OVERLAPPED  | 
              WS_CAPTION     | 
              WS_SYSMENU     | 
              WS_THICKFRAME  | 
              WS_MINIMIZEBOX | 
              WS_MAXIMIZEBOX );

        public const uint WS_POPUPWINDOW = 
            ( WS_POPUP   | 
              WS_BORDER  | 
              WS_SYSMENU );

        public const uint WS_CHILDWINDOW = WS_CHILD;

        //Extended Window Styles

        public const uint WS_EX_DLGMODALFRAME     = 0x00000001;
        public const uint WS_EX_NOPARENTNOTIFY    = 0x00000004;
        public const uint WS_EX_TOPMOST       = 0x00000008;
        public const uint WS_EX_ACCEPTFILES       = 0x00000010;
        public const uint WS_EX_TRANSPARENT       = 0x00000020;

//#if(WINVER >= 0x0400)
        public const uint WS_EX_MDICHILD      = 0x00000040;
        public const uint WS_EX_TOOLWINDOW    = 0x00000080;
        public const uint WS_EX_WINDOWEDGE    = 0x00000100;
        public const uint WS_EX_CLIENTEDGE    = 0x00000200;
        public const uint WS_EX_CONTEXTHELP       = 0x00000400;

        public const uint WS_EX_RIGHT         = 0x00001000;
        public const uint WS_EX_LEFT          = 0x00000000;
        public const uint WS_EX_RTLREADING    = 0x00002000;
        public const uint WS_EX_LTRREADING    = 0x00000000;
        public const uint WS_EX_LEFTSCROLLBAR     = 0x00004000;
        public const uint WS_EX_RIGHTSCROLLBAR    = 0x00000000;

        public const uint WS_EX_CONTROLPARENT     = 0x00010000;
        public const uint WS_EX_STATICEDGE    = 0x00020000;
        public const uint WS_EX_APPWINDOW     = 0x00040000;

        public const uint WS_EX_OVERLAPPEDWINDOW  = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE);
        public const uint WS_EX_PALETTEWINDOW     = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST);
//#endif /* WINVER >= 0x0400 */

//#if(_WIN32_WINNT >= 0x0500)
        public const uint WS_EX_LAYERED       = 0x00080000;
//#endif /* _WIN32_WINNT >= 0x0500 */

//#if(WINVER >= 0x0500)
        public const uint WS_EX_NOINHERITLAYOUT   = 0x00100000; // Disable inheritence of mirroring by children
        public const uint WS_EX_LAYOUTRTL     = 0x00400000; // Right to left mirroring
//#endif /* WINVER >= 0x0500 */

//#if(_WIN32_WINNT >= 0x0500)
        public const uint WS_EX_COMPOSITED    = 0x02000000;
        public const uint WS_EX_NOACTIVATE    = 0x08000000;
//#endif /* _WIN32_WINNT >= 0x0500 */
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Dave Kerr
Software Developer
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 20 May 2014
Article Copyright 2013 by Dave Kerr
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid