Shell Namespace Extension: Adding Custom Command Module Items 셸 네임 스페이스를 확장 : 사용자 정의 명령을 모듈 항목을 추가
Overview 개요
In my 내 earlier post 이전 게시물 , I showed how to create a Shell Namespace Extension using the default IShellView implementation (also known as DefView). One thing you might have noticed from the sample is that the Commands Module is void of even the default items such as “Organize” and “Views”. , 나는 셸 네임 스페이스를 확장 기능을 만드는 방법을 보여 기본 ishellview를 사용하여 구현 (defview라고도 함). 한가지 당신의 챗겠지만의 명령 모듈은 무효의 샘플은 기본 항목 등 심지어는 "정리"와 " 보기 "합니다.
If you are developing your own Namespace and want to include the default buttons and/or add your own elements to the Commands Module as well, how do you accomplish this? The answer: you must implement the 자신의 네임 스페이스를 개발하는 경우의 기본 버튼을 포함하고 싶은거 및 / 또는 추가의 명령 모듈을 자신의 요소를도 달성할 어떻게 이것?에 대한 답변 :를 구현해야합니다 IExplorerCommand iexplorercommand , , IExplorerCommandProvider iexplorercommandprovider and 및 IEnumExplorerCommand ienumexplorercommand interfaces. 인터페이스를합니다.
Below I describe what each of the interfaces is used for and what you need to do to properly implement them in your code. 각각의 인터페이스를 아래에 나는 무엇을 설명하는 데 사용에 대한 그리고 당신이 그들을 필요합니다 귀하의 코드를 제대로 구현합니다.
IExplorerCommandProvider iexplorercommandprovider
After your Namespace is loaded, the Shell will ask your Namespace for an instance of an IExplorerCommandProvider. This interface exposes two methods: GetCommand and GetCommands. The Shell calls the GetCommand method to retrieve a specific IExplorerCommand object that matches the supplied GUID (Each command is identified by a GUID). The 귀하의 네임 스페이스가 로드된 후, 쉘은 iexplorercommandprovider의 인스턴스에 대한 네임 스페이스를 물어보십시오.이 인터페이스를 제공합니다 두 개의 방법 : getcommand 및 getcommands. getcommand 방법을 검색하는 쉘을 호출합니다와 일치하는 특정 iexplorercommand 개체와 함께 제공된 guid (각 명령은 에 의해 발견 guid). the
…
Written by chrdavis on chrdavis에 의해 쓰여진 September 5th, 2007 2007년 9월 5일 with 와 no comments 코멘트가없습니다 . 합니다.
Read more articles on 더 많은 기사를 읽고 shell 쉘 and 및 namespace 네임 스페이스를 and 및 Coding 코딩 and 및 API api and 및 Programming 프로그래밍 and 및 vista 비스타 and 및 Windows Vista windows 비스타 . 합니다.














