천객만래 [千客萬來] (It has an interminable succession of visitors)

MFC Active 생성





1. Workspace 생성

    MFC ActiveX control wizard를 선택.

2. Property 생성(메뉴 View > ClassWizard)

    1) ClassWizard의 Automation tab에서 선택
    2) Class name에서 Control class 선택(...Ctrl)
    3) (Add Property...) 버튼 클릭
    3) External name: ActiveX를 사용하는 프로그램에서 사용할 property name
    4) Type: property type
    5) Variable name: ActiveX 내부에서 사용할 property 변수명
    6) Notification function: property 값이 변경되면 실행되는 함수. 별로 사용하지 않는다.
    7) Implementation:
        - Member variable: 외부에서 ActiveX.propertyName = value 형태로 사용하는 방법
        - Get/Set methods: GetPropertyName(), SetPropertyName() 형태로 사용하는 방법

    ☞ 이렇게 하면,
        Conrol class에 해당 member 변수가 생성되는데, 변수명은
        Variable name에 설정된 이름으로 생성된다.

3. Method 생성

    1) ClassWizard의 Automation tab에서 선택
    2) Class name에서 Control class 선택(...Ctrl)
    3) (Add Method...) 버튼 클릭
    4) External name: ActiveX를 사용하는 프로그램에서 사용할 method 이름
    5) Internal name: ActiveX 내부에서 사용할 때 사용할 이름
    6) Return type: method를 호출했을 때, 결과로 넘겨줄 값의 type
    7) Parameter list: method에 넘겨줄 parameter와 그 type
    
    ☞ 이렇게 하면,
        Conrol class에 해당 method가 member함수로 생성되는데,
        함수 이름은 "Internal name"으로 생성된다.
        이 함수에 필요한 logic을 코딩하면 되며,
        ActiveX를 사용하는 프로그램에서 "External name"으로 설정된
        함수를 call하면, ActiveX에서는 "Internal name"으로 설정된
        함수가 실행된다.

4. Event 생성

    1) ClassWizard의 ActiveX Events tab 선택
    2) Class name: Control class 선택(...Ctrl)
    3) (Add Event...) 버튼 클릭
    4) External name: ActiveX를 사용하는 program에서 사용할 event name
    5) Internal name: ActiveX 내부에서 사용할 event name
    6) Parameter list: event도 하나의 함수다. 이 함수에 넘겨줄 parameter와
        그 type을 정의한다.

    ☞ 이렇게 하면,
        Conrol class의 Header file에 "Internal name"으로 설정된 void type의 함수가
        "AFX_EVENT(CSamAxCtrl)" event map으로 생성된다.
        ActiveX의 원하는 곳에서 이 함수를 call하면,
        ActiveX를 사용하는 프로그램에서 해당 event가 발생하게 된다.
    
5. 필요한 code 작성

    4번까지 하면, 기본적으로 ActiveX control이 작성된 것이다.
    여기에 필요한 logic을 작성한 다음 compile하면 ocx 파일이 생성된다.
    
6. CLSID 알아내기

    만들어진 ActiveX control을 웹에서 사용하기 위해서는 기본적으로 CLSID를 알아야 한다.
    이것은 VC++의 FileView에서 ".odl" 파일을 살펴보면 알 수 있다.
    ".odl" 파일의 맨 하단을 보면 다음과 같은 주석을 볼 수 있다.
    
         //  Class information for CExActiveX2Ctrl
    
    그리고, 그 밑에 아래와 같은 코드를 볼 수 있다.
    
        [ uuid(4AA8A54C-8F74-4F9F-8D3C-BD1079A73AD8),
          helpstring("ExActiveX2 Control"), control ]
    
    위 코드에서 "uuid"가 바로 CLSID 이다.

참고 : http://cafe.naver.com/swnara/145

Posted by SB패밀리






# 미디어 플레이어의 화면구조
ⓐ ShowTracker : 진행도를 알 수 있는 패널조절바를 보여줄 지 설정합니다.
ⓑ ShowControls : 실행, 중지, 일시중지가 있는 조절판을 보여줄지 설정합니다.
ⓒ ShowPositionControls : 이전, 이후 탐색이 있는 조절판을 보여줄 지 설정합니다.
ⓓ ShowAudioControls : 소리와 볼륨조절기를보여줄 지 설정합니다.
ⓔ ShowGotoBar : 실행바를 보여줄 지 설정합니다.
ⓕ ShowDisplay : 하단정보창을 보여줄 지 설정합니다.
ⓖ ShowStatusBar : 하단 상태바를 보여줄 지 설정합니다.

각 속성은 부울(Boolean:True, False와 같이 논리적인 값)값을 이용하여 설정합니다. True이면 보여주고 False이면 사라집니다. Param태그의 value속성이 0이면 False를 의미하고, -1이면 True를 의미합니다.

:: object태그 :: ActiveXControl을 사용하기위해 사용됩니다.
- classid : 해당연결프로그램의 레지스트리 고유인식번호를 설정합니다.
- codeBase : 해당연결프로그램의 버전을 검색하고 필요시 업그레이드하는 정보를 담고 있습니다.
대표적인 ActiveXControl인 MediaPlayer와 FlashPlayer의 codeBase는 MicroSoft ActiveX Controls Gallery에서 검색할 수 있습니다.
:: param태그 :: 해당 ActiveXControl의 정보/설정기능을 제공합니다.

* classid는 다음과 같이 확인할 수 있습니다.






----------------------------------------------------------------------------------------



<html>
<body>
<div align="center">


<object classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" id="mmp"
style="width:315; height:430;">
<param name="Filename" value="king_1118.asf">
<param name="ShowTracker" value=-1>
<param name="ShowControls" value=-1>
<param name="ShowPositionControls" value=-1>
<param name="ShowAudioControls" value=-1>
<param name="ShowGotoBar" value=-1>
<param name="ShowDisplay" value=-1>
<param name="ShowStatusBar" value=-1>
</object>


</div>
</body>
</html>



출처: 인터넷

Posted by SB패밀리

번역 : 쌈꼬쪼려 소백촌닭

AppID 가 도대체 뭐꼬?

출처 : http://blogs.msdn.com/b/jigarme/archive/2007/10/09/what-is-appid.aspx

What is AppID?


If you have got chance to work with DCOM /COM+ frequently; you might have come across the term called AppID (if you are not able to recollect, take a look here, HKEY_CLASSES_ROOT\AppID). Many people are confused about what AppID is?? If you are one of them, go on... read the following part.

The AppID concept was introduced as part of the security support in COM. The AppID essentially represents a process that is shared by multiple CLSIDs. All objects in this process share the same default security settings.

DCOM provides mechanisms to externally configure security settings for objects and clients. In the current implementations of DCOM all security policies are enforced at the process level. All objects in a process share the same security policies, unless they programmatically override them. To match this process-wide security configuration, DCOM introduces the concept of an AppID.

AppIDs group the configuration options for one or more DCOM objects into one centralized location in the registry. COM objects hosted by the same executable must map into the same AppID. In-process COM objects that are run in a surrogate process can be forced into the same process by assigning the same AppID to their CLSID entries.

AppIDs are 128-bit GUIDs. Individual classes are mapped onto their AppIDs by adding a named value, "AppID" under their CLSID key in the registry:

[HKEY_CLASSES_ROOT\CLSID\{<clsid>}]
    "AppID" = "{<appid>}"


A named-value "AppID" of type REG_SZ contains the string representation of the AppID. This mapping is used during activation to obtain the default launch permissions.

The actual configurations for an AppID are stored in a newly created registry key hierarchy under:

[HKEY_CLASSES_ROOT\AppID\{<AppID>}]


Applications or their setup programs can directly modify registry keys under the AppID key. Administrators can use the DCOM Configuration utility (DCOMCNFG.EXE) to manually configure default security settings.

Access security

DCOM enforces access security on every method call on an object. If the process does not programmatically override security settings, DCOM reads a security descriptor from the registry. When a call arrives, DCOM authenticates the caller (using whatever security provider is configured) and obtains an access token. It then performs an access check on the security descriptor with the access token.

The content of the value in the registry is a simple copy of the in-memory representation of a self-relative security descriptor:

[HKEY_CLASSES_ROOT \AppId\{<Appid>}]
    "AccessPermission" = hex: [self-relative security descriptor]


Launch security

Launch security is enforced whenever a new process needs to be created as part of object activation. DCOM finds the AppID corresponding to the activation request and reads a security descriptor from the registry. It then authenticates the activator and checks the activator's access token against the security descriptor.

The launch security settings are stored in the following registry key:

[HKEY_CLASSES_ROOT \AppId\{<Appid>}]
    "LaunchPermission" = hex: [self-relative security descriptor]


Identity

DCOM chooses the identity of an object at the time it launches the process containing the object. It determines, again, the AppID of the process being created and obtains the identity setting from the registry. Three choices are available:

•Run as Activator. The process is created in a new Window Station under the credentials of the caller. Although this option is the default, it is not typically recommended. If multiple users create the same object on a machine, independent Window Stations and processes are created for each user. Window Stations consume a significant amount of resources and their number is limited on current versions of Windows NT.
•Run as Interactive User. The process is created in the Window Station of the locally logged on user. If no user is logged on, the object creation fails. This option is useful for interactive distributed applications as well as during debugging or troubleshooting.
•Run as a fixed user account. The process is created in a non-interactive Window Station corresponding to a specific user account. If a non-interactive Window Station for the account exists, DCOM reuses it. In order to obtain security credentials, DCOM needs the current password for the user account. This password is stored separately in a secured section of the registry.
The security identity is indicated using the following registry entries:

[HKEY_CLASSES_ROOT \AppId\{<Appid>}]
    "RunAs" = "InteractiveUser"
[HKEY_CLASSES_ROOT \AppId\{<Appid>}]
    "RunAs" = "mydomain\myaccount"


Absence of the RunAs value indicates Run as Activator.

How to create AppIDs OR Who creates AppID?

So, you would be wondering who creates this AppID? Are you supposed to create it yourself or that gets generated by regsvr32 or some other tool? Here is how it happens.

While you can modify AppIDs in the Registry by hand, it's better to use the configuration utility called Dcomcnfg.exe, which is on all machines that run Distributed COM. You run this utility by choosing the Run command from the system's Start menu. When you run Dcomcnfg.exe, you see a list of all the registered AppIDs on the local machine. (It might take a few seconds to start up Dcomcnfg.exe the first time you launch it because the utility walks through the list of out-of-process CLSIDs and creates an AppID for each one that needs one.) So, when your component (out of process COM server) is registered with registry, CLSIDs of components in the Server are registered, AppIDs are not generated that time, but when you open DCOMCNFG, it will look for all the CLSID and ask you to create AppID for all components who doesnt have already.

If you have any other question, feel free to ping me.

Posted by SB패밀리

Adding Toolbar Buttons

This tutorial explains how to add a toolbar button to the Windows Internet Explorer user interface. The toolbar button can either run a Microsoft Win32 application, run a script, or open an Explorer Bar. If you also want to create a menu item for the Win32 application or script, see the Adding Menu Items tutorial.

Requirements and Dependencies

Developers who want to add toolbar buttons to Internet Explorer must be familiar with the registry and globally unique identifiers (GUID).

This feature is only available in Microsoft Internet Explorer 5 and later. Internet Explorer 4.0 allows you to add a custom Explorer Bar, but there is no method for adding a toolbar button to access your Explorer Bar.

Toolbar buttons require two sets of icons: one set with the active (color) icons and one set with the default (grayscale) icons. These icons can be stored in two .ico files or inside a resource (like a .dll or .exe file). Icons and strings stored inside a resource can be referenced by providing the path to the resource and reference identification in the format, "path, resource_id". For example, if you wanted to use string resource 123 in Example.dll, you would use "Example.dll, 123". For more information about what icons are required and for tips on designing icons for Internet Explorer, see Toolbar Button Style Guide.

General Steps

The steps in this section must be followed when adding any toolbar buttons to the Internet Explorer user interface. If any information is omitted, the toolbar button will not be displayed.

Note  This tutorial describes how to add a menu item for all users. You can substitute HKEY_CURRENT_USER for HKEY_LOCAL_MACHINE in the steps below for settings that you want to make per user. Duplicate items found in HKEY_CURRENT_USER override those in HKEY_LOCAL_MACHINE .
  1. Create a valid GUID.

    You can use Guidgen.exe from Microsoft Visual Studio, or Uuidgen.exe from the Windows Software Development Kit (SDK).

  2. Create a new key (using the GUID as the name) in the registry under:
    HKEY_LOCAL_MACHINE
         Software
              Microsoft
                   Internet Explorer
                        Extensions
                             {GUID}

    {GUID} is the valid GUID that you created in step 1.

  3. Required. Create the following string values in the registry under the new key:
    • ButtonText - Set the value to the label you want for the toolbar button.
      HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\ButtonText
      
    • HotIcon - Set the full path of the .ico file that contains the three color icons.
      HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\HotIcon
      
    • Icon - Set the full path of the .ico file that contains the three grayscale icons.
      HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\Icon
      
  4. Optional. The following values determine if the icon is initially visible.
    • Default Visible - To make the toolbar button to appear on the Internet Explorer toolbar by default, set Default Visible to "Yes", otherwise set Default Visible to "No".
      HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\Default Visible
      
      Note  If the user has customized the toolbar, the button will not appear on the toolbar automatically. The toolbar button will be added to the choices in the Customize Toolbar dialog box and will appear if the toolbar is reset.
  5. Optional. To provide support for multiple native languages (like French or Japanese), complete the following steps to support different native languages:
    1. Determine the LCID of the native language you want to support. See Language Identifier Constants and Strings for a complete list.
    2. Create a new key, Lang####, using the LCID from the previous step in place of "####" in the registry as follows:
      HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\Lang####
      

      For example, the key name should be Lang0411 for a Japanese implementation, since the LCID for Japanese is 0411.

Adding the Details

To complete the setup of the custom command, you must provide details of the action that takes place when the button is clicked. The values that you need depend on what the toolbar button is going to run. The following list contains links to the sections with the steps required to complete the addition of a toolbar button.

COM Objects

In order to invoke a Component Object Model (COM) object from Internet Explorer, it must implement IOleCommandTarget. Only one command is supported per object; the COM object's IOleCommandTarget::Exec is always called with nCmdID=0 and with VARIANT arguments set to NULL. Additionally, the implementation of IOleCommandTarget::QueryStatus is always called with cCmds=1.

If the COM object needs to access the browser or Dynamic HTML (DHTML) Object Model of the active page, it must implement IObjectWithSite. Internet Explorer calls IObjectWithSite::SetSite with a pointer to IShellBrowser.

The following steps are required to complete the creation of a toolbar button that implements a COM object.

  1. Register the COM object.
  2. Create a new string value, CLSID, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\CLSID
    

    Set the value of CLSID equal to {1FBA04EE-3024-11d2-8F1F-0000F87ABD16} to specify the CLSID_Shell_ToolbarExtExec extension class.

  3. Create a new string value, ClsidExtension, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\ClsidExtension
    

    Set the value of ClsidExtension equal to the GUID of the COM object.

Explorer Bars

The following steps are required to complete the creation of a toolbar button that opens an Explorer Bar.

  1. Create a new string value, CLSID, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\CLSID
    

    Set the value of CLSID equal to {E0DD6CAB-2D10-11D2-8F1A-0000F87ABD16} to specify the CLSID_Shell_ToolbarExtBand extension class.

  2. Create a new string value, BandCLSID, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\BandCLSID
    

    Set the value of BandCLSID to the CLSID of the Explorer Bar to open.

Note   All Explorer Bars have a menu item added to the View menu automatically.

Scripts

The following steps are required to complete the creation of a toolbar button that runs a script.

  1. Create a new string value, CLSID, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\CLSID
    

    Set the value of CLSID equal to {1FBA04EE-3024-11D2-8F1F-0000F87ABD16} to specify the CLSID_Shell_ToolbarExtExec extension class.

  2. Create a new string value, Script, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\Script
    

    Set the value of Script to the full path of the script to run.

To add a menu item in the Tools menu with the same functionality, see the Adding Menu Items tutorial.

Executable Files

The following steps are required to complete the creation of a toolbar button that runs an executable file.

  1. Create a new string value, CLSID, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\CLSID
    

    Set the value of CLSID equal to {1FBA04EE-3024-11D2-8F1F-0000F87ABD16} to specify the CLSID_Shell_ToolbarExtExec extension class.

  2. Create a new string value, Exec, in the registry as follows:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\{GUID}\Exec
    

    Set the value of Exec to the full path of the .exe file to run.

To add an item to the Tools menu with the same functionality, see the Adding Menu Items tutorial.

Related Topics

Community ContentAdd
plz Give Me Answer My Question
You can look at this articles
http://cgeers.wordpress.com/2008/02/16/internet-explorer-toolbar/
http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx

Hope it helps

How To Adding Toolbar Buttons Internet Explorer using C#.Net()...


PLZ Help Me Friends... ... .( In Slides Way)... ... .


출처: http://msdn.microsoft.com/en-us/library/aa753588(v=VS.85).aspx
Posted by SB패밀리

Adding Explorer Bars 란 IE에 DeskBand bar를 추가하는 것을말한다.
툴바도 될 수 있고.....

Adding Explorer Bars

This tutorial explains how to add an Explorer Bar in Windows Internet Explorer. If you also want to create a toolbar button for the Explorer Bar, see the Adding Toolbar Buttons tutorial.

Requirements and Dependencies

Developers who want to add menu items to the Tools menu in Internet Explorer must be familiar with the registry. Developers should also be familiar with band objects. For more information on band objects, see the Windows Shell API documentation in the Windows Software Development Kit (SDK).

The implementation described here is valid for Microsoft Internet Explorer 5 or later. To learn how to implement Explorer Bars in Internet Explorer 4.0, see the band objects documentation in the Windows Software Development Kit.

Implementation Steps

The following list contains the steps for adding an Explorer Bar to Internet Explorer.

Icons and strings stored inside a resource can be referenced by providing the path to the resource and reference identification in the format "path, resource_id". For example, if you wanted to use string resource 123 in Example.dll, you would use "Example.dll, 123".

Note  

This tutorial describes how to add an Explorer Bar for all users. You can substitute HKEY_CURRENT_USER for HKEY_LOCAL_MACHINE in the steps below for settings that you want to make per user.

  1. Create a valid GUID.
  2. Create a new key, with the GUID as the name, in the registry under:

    HKEY_CLASSES_ROOT\CLSID\

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>
    

    <Your GUID> is the valid GUID that you created in step 1.

    The default value of the key should be set to the name of the Explorer Bar in the View menu.

  3. Create a new key, Implemented Categories, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Implemented Categories
    
  4. Create a new key using the category identifier (CATID) of the type of Explorer Bar you are creating as the name of the key. This can be one of the following values:
    CATID Description
    {00021494-0000-0000-C000-000000000046} Defines a horizontal Explorer Bar.
    {00021493-0000-0000-C000-000000000046} Defines a vertical Explorer Bar.

    The result should look like:

    //for a horizontal Explorer Bar
    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\
        Implemented Categories\{00021494-0000-0000-C000-000000000046}
    
    //for a vertical Explorer Bar
    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\
        Implemented Categories\{00021493-0000-0000-C000-000000000046}
    
  5. Create a new key, InProcServer32, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\InProcServer32
    

    Set the default value of the key to the full path of the Shdocvw.dll for HTML pages or the .dll file of the Explorer Bar.

  6. Create a new string value, ThreadingModel, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\InProcServer32

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\InProcServer32\ThreadingModel
    

    Set the value of ThreadingModel to "Apartment".

  7. Create a new key, Instance, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance
    
  8. Required for Explorer Bars that display an HTML page, but optional otherwise. Create a new string value, CLSID, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance\

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance\CLSID
    

    Set the value of CLSID to {4D5C8C2A-D075-11d0-B416-00C04FB90376}.

  9. Create a new key, InitPropertyBag, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance\InitPropertyBag
    
  10. Required for Explorer Bars that display an HTML page, but optional otherwise. Create a new string value, Url, under:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance\InitPropertyBag

    The result should look like:

    HKEY_CLASSES_ROOT\CLSID\<Your GUID>\Instance\InitPropertyBag\Url
    

    Set the value of Url to the location of the HTML file that contains the content for the Explorer Bar.

  11. Remove the following registry entries:
    HKEY_CLASSES_ROOT\Component Categories\
        {00021493-0000-0000-C000-000000000046}\Enum
    
    HKEY_CLASSES_ROOT\Component Categories\
        {00021494-0000-0000-C000-000000000046}\Enum
    
  12. Optional. Create a new key, using the GUID you created in step 1 as the name, in the registry under:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Explorer Bars

    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Explorer Bars\<Your GUID>
    
  13. Optional. Create a new binary value, BarSize, under:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Explorer Bars\<Your GUID>

    The result should look like:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Explorer Bars\<Your GUID>\BarSize
    

    Set the value of BarSize to an 8-byte binary value in hexadecimal notation that sets the default size for the Explorer Bar. The value is interpreted in pixels, so the value "97 00 00 00 00 00 00 00" would be equivalent to setting the default size of the bar to 151 pixels.

Related Topics

Community ContentAdd
Step 11 Incorrect for Vista/IE7

At least with Vista/IE7+ (haven't tested on IE 6 or XP), you need to delete the following keys to get the Explorer Bar recognized:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\
Component Categories\{00021493-0000-0000-C000-000000000046}\Enum
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\
Component Categories\{00021494-0000-0000-C000-000000000046}\Enum


출처 : http://msdn.microsoft.com/en-us/library/aa753590(v=VS.85).aspx

Posted by SB패밀리

 ; Activex 사용안함 처리 (IE '추가기능 관리' 에 확인가능)
 HKCU "Software\Microsoft\Windows\CurrentVersion\Ext\Settings\$CAB_GUID_0"

            Flags = 1  (REG_DWORD)
            Version = *  (REG_SZ)


 

 ; Activex 사용안함 제거
 DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Ext\Settings\$CAB_GUID_0"


 

 ; Kill bit 처리 (IE '추가기능 관리' 에서 해당 activex항목표시 자체가 사라짐. 해당 activex 구동안됨)


 HKLM "SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\$CAB_GUID_0"

          Compatibility Flags = 0x400 (REG_DWORD)

 

 ; Kill bit 제거
 DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\$CAB_GUID_0"
 

 

 ; 레지스트리 등록 (실행 골드바 나오지 않도록)
 WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Ext\Stats\$CAB_GUID_0\iexplore" "Flags" 4

 

 


Killbit 관련 정보


http://support.microsoft.com/kb/240797/ko

Posted by SB패밀리