Click here to Skip to main content
15,884,099 members
Articles / Desktop Programming / ATL

Shell Extensions for .NET Assemblies

Rate me:
Please Sign up or sign in to vote.
4.98/5 (29 votes)
17 Nov 2005Ms-PL3 min read 184K   2.6K   81  
Shell extensions to distinguish between .NET assemblies and Win32 applications and libraries.
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Neutral resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
#ifdef _WIN32
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//

IDR_ASMSHELL            REGISTRY                "AsmShell.rgs"
IDR_ASSEMBLYICONOVERLAY REGISTRY                "AssemblyIconOverlay.rgs"
IDR_ASSEMBLYINFO        REGISTRY                "AssemblyInfo.rgs"

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_OVERLAY_DLL         ICON                    "overlay_dll.ico"
#endif    // Neutral resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//

IDR_ASSEMBLYCOLUMNS     REGISTRY                "AssemblyColumns.rgs"

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""winres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "1 TYPELIB ""AsmShell.tlb""\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,4,1993,0
 PRODUCTVERSION 1,4,1993,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "080004e4"
        BEGIN
            VALUE "Comments", "Icon overlay and details view columns for .NET assemblies."
            VALUE "CompanyName", "Heath Stewart <heaths@microsoft.com>"
            VALUE "FileDescription", "Shell Extensions for .NET Assemblies"
            VALUE "FileVersion", "1.4.1993.0"
            VALUE "InternalName", "AsmShell.dll"
            VALUE "LegalCopyright", "Copyright (c) 2005, Heath Stewart. All rights reserved."
            VALUE "OriginalFilename", "AsmShell.dll"
            VALUE "ProductName", "Shell Extensions for .NET Assemblies"
            VALUE "ProductVersion", "1.4.1993.0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x800, 1252
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_PROJNAME            "AsmShell"
    COL_TITLE_FORMAT        "Format"
    COL_TITLE_KEYTOKEN      "Public Key Token"
    COL_DESC_FORMAT         "Displays the file image format of an executable."
    COL_DESC_KEYTOKEN       "Displays the public key token for .NET assemblies."
    ERR_FILE_OPEN           "The file could not be opened."
    ERR_FILE_MAP            "The file could not be mapped into memory."
    ERR_FILE_DATA           "Could not determine file type."
END

STRINGTABLE 
BEGIN
    FT_WIN32_EXE            "Win32 Executable (x86)"
    FT_WIN32_DLL            "Win32 Library (x86)"
    FT_NET_EXE              ".NET Executable (x86)"
    FT_NET_DLL              ".NET Library (x86)"
    FT_NET_MOD              ".NET Module (x86)"
    FT_WIN64_EXE_I64        "Win64 Executable (ia64)"
    FT_WIN64_DLL_I64        "Win64 Library (ia64)"
    FT_NET_EXE_I64          ".NET Executable (ia64)"
END

STRINGTABLE 
BEGIN
    FT_NET_DLL_I64          ".NET Library (ia64)"
    FT_NET_MOD_I64          ".NET Module (ia64)"
    FT_WIN64_EXE_X64        "Win64 Executable (x64)"
    FT_WIN64_DLL_X64        "Win64 Library (x64)"
    FT_NET_EXE_X64          ".NET Executable (x64)"
    FT_NET_DLL_X64          ".NET Library (x64)"
    FT_NET_MOD_X64          ".NET Module (x64)"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "AsmShell.tlb"

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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 Microsoft Public License (Ms-PL)


Written By
Software Developer Microsoft
United States United States
Principal Software Engineer currently working on Azure SDKs at Microsoft. My opinions are my own. I work on a number of OSS projects for work and personally in numerous languages including C++, C#, JavaScript, Go, Rust, et. al. See a problem, fix a problem (or at least create an issue)!

Avid outdoor adventurer 🏔️❄️👞🚴‍♂️, husband, father.

Comments and Discussions