مصدرك جيّدة من معلومة وأخبار حوالي سائقات, نافذات و برمجيّة على الإنترنت

[فيستا] مواد أعلى 50 [فيستا] [فيديو] [فيستا] ليّنة [فيستا] مساعدة

قشرة قذيفة [نمسبس] إمتداد: يمكّن بحث عميقة


نظرة عامّة

من موقعاتي سابقة حول يطبّق ك خاصّة قشرة قذيفة [نمسبس], قد كان هناك بعض أسئلة عظيمة يعيّن بقارئات. يترتّب كثير من هذا الحقيقة أنّ ال [نمسبس] مثال تماما بسيطة داخل أنّ هو لا يطبّق [ألّ وف ث] تصرف أنّ يكون يمكن في رجل التّنقيب. أتمّت هذا كان أن ركّز على على اللبن [ستبس] في يحصل يعمل [نمسبس] يطبّق. بعد, هناك [ا فو] [ستبس] إضافيّة أنت يستطيع أخذت أنّ لا يتطلّب [توو موش] كثير [كدينغ] على جزءك أن يضيف أكثر سمات مفيدة. واحدة سؤال [إين برتيكلر] أنّ تحت الى حدّ بعيد غالبا كيف أن يمكّن عميقا يبحث في [نمسبس] ك.

أنت ستلاحظ من الموجودة [نمسبس] مثال أنّ إن أنت تدخل بحر عبارة في البحر صندوق في رجل التّنقيب, ييصفّي البحر فقط مواد أنّ يكون حاليّا في المنظرة. هو لا يبحث داخل الملفات. في ال أدناه صور, يحاول نحن أن يبحث ل "اثنان" في البحث صندوق أيّ فقط ينتج في 1 مادة. لذلك, [ب] الملفات فرعيّة لم مدرجة.

مرشح بحث

مرشح نتيجات - ضحلة

ماذا [نمسبس] منفذ يضطرّ أتمّت [إين وردر تو] تضمّنت ملفات فرعيّة في هم [نمسبس] بحث نتيجات? هذا واقعيّا تماما بسيطة.

يطبّق [إيشلّفولدرفيوكب] و [إيفولدرفيوستّينغس]

في رمزنا سابقة, لم يطبّق نحن [إيشلّفولدرفيوكب] ل [نمسبس] نا. هذا يسمح [نمسبس] ك أن يكون أخطرت من حادثات يصحب مع المنظرة. تزويد [إيشلّفولدرفيوكب] يستطيع كنت عيّنت في دعوتك إلى [شكرتشلّفولدرفيو]. هذا اختياريّة وسابقا كان نحن صحيحة يمرّ [نولّ] ل هذا. نحن نحتاج أن يخلق صنف أنّ أداة تطبيق [إيشلّفولدرفيوكب] [أس ولّ س] [إيفولدرفيوستّينغس]. ل نا [إيفولدرفيوستّينغس] تزويد, يحتاج نحن فقط أن يزوّد مناولة ل ال [جتفولدرفلغس] طريقة. هو من خلال هذا طريقة أنّ يخطر نحن القشرة قذيفة أنّ نحن نريد أن ينجز بحوت عميقة ضمن [نمسبس] نا.

[إيفسمثوديمب] [كفولدرفيوكب]:: [جتفولدرفلغس] ([أوت] [فولدرفلغس] [بفولدرمسك], [أوت] [فولدرفلغس] [بفولدرفلغس])

{

إن ([بفولدرمسك])

{

[بفولدرمسك]=[فوفوسسرشفولدر];

}

إن ([بفولدرفلغس])

{

[بفولدرفلغس]=[فوفوسسرشفولدر];

}

[سوك] عائدة;

}

بما أنّ أنت يستطيع رأيت من التزويد آنفة [جتفولدرفلغس], يهتمّ نحن فقط أن يخطر القشرة قذيفة من ال [فوفوسسرشفولدر] صخر لوحيّ. هذا يقول القشرة قذيفة أنّ [نمسبس] نا سوفت استعملت البحث ملف ل ينجز يكدّس ويبحث. أنت استطعت أيضا عيّنت أخرى صخر لوحيّ أن يعدّل المظهر وتصرف من [نمسبس] ك.

اقترنت ال يعّدّل رمز ل هذا عينة أدناه. أنت ستلاحظ أنّ التزويد من [إيشلّفولدرفيوكب] و [إيفولدرفيوستّينغس] بالأحرى متفرّقة - كثير طرق عودة صحيحة [إنوتيمبل] بما أنّ نحن يكون لا نستعملهم هنا. You can implement these yourself if you see the need to extend your code.
Now that we have notified the Shell to use the Search Folder, we can perform deep searches within our Namespace. When we perform the same search we did previously, we now get the following results:

deep search

This Namespace simply generates 10 virtual items to a default depth of 5. The Search enumerates the contents of the Namespace to that depth. It should also be called out that we had to implement our namespace's ParseDisplayName method in order for our namespace to function in the Search folder.

*Please note that the method described here only works with the default shell view (Defview). It is not supported for custom IShellView implementations.

Building the FolderView SDK Sample

  1. To build the FolderViewImpl sample, be sure to download and install the Windows SDK.
  2. Download the modified FolderView SDK sample
  3. Launch FolderViewImpl.sln in Visual Studio (The solution file is for Visual Studio 2008)
  4. Open the properties for the project
  5. Add a path to the SDK includes to the C/C++ - General page
  6. Add a path to the SDK libs to the Linker – General page
  7. Build

Installing the FolderView SDK Sample

  1. Once you have built the sample, copy the FolderViewImpl.dll and FolderViewImpl.propdesc to the same directory
  2. From an elevated cmd window, regsvr32 FolderViewImpl.dll
  3. Restart explorer
  4. Open explorer to Computer
  5. There should be a list item named “FolderView SDK Sample”

Popularity: 1%


Written by chrdavis. Read more great feeds at is source WEBSITE
no comments.
Read more articles on namespace and otherSoftware and extension and Search and Organize and shell and Coding and Programming and vista and search and API and Windows Vista.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .