´ë·«°ú ´º½º ´ç½ÅÀÇ Á¦ÀÏ Á¤º¸ Ãâó BIOS, ºñ¹Ð ±×¸®°í â Àü¸Á ÀÎÅͳݿ¡

ºñ½ºÅ¸ ±â»ç Á¤»ó 50 ºñ½ºÅ¸ ¿µ»ó ¿¬¾àÇÑ ºñ½ºÅ¸ ºñ½ºÅ¸ µµ¿ò

Æ÷ź Namespace ¿¬Àå: ±íÀº ¼ö»öÀ» °¡´ÉÇÏ°Ô Çϱâ


°³°ü

´ç½ÅÀÇ ÀÚ½ÅÀÇ Æ÷ź Namespace ½ÇÇà¿¡ °üÇÏ¿© ³ªÀÇ °ú°Å Æ÷½ºÆ®¿¡¼­, µ¶ÀÚ°¡ ¹èÄ¡ÇÑ ¸î¸î ÈǸ¢ÇÑ Áú¹®ÀÌ °è¼Ó ÀÖ´Ù. ŽÇè°¡¿¡¼­ °¡´ÉÇÑ Çൿ ÀüºÎ¸¦ ½ÇÇàÇÏÁö ¾Ê´Â´Ù Namespace º¸±â°¡ »ó´çÈ÷ °£´ÜÇÏ´Ù ¿¡¼­ ´Â »ç½ÇÀÌ À̵éÀÇ ¸¹Àº °Í¿¡ ÀÇÇÏ¿© À¯·¡ÇÑ´Ù. À̰ÍÀº ÀÛµ¿ Namespace¸¦ ½ÇÇàµÇ¾î ¾ò±â¿¡ ÀÖ´Â ÁßÇÙ ´Ü°è¿¡ ÁýÁßÇϱâ À§ÇÏ¿© ÇàÇØÁ³´Ù. ¾ÆÁ÷, ´ç½ÅÀÌ ÃëÇÒ ¼ö ÀÖ´Â ´ç½ÅÀÇ ºÎºÐ¿¡ ³Ê¹« ¸¹Àº ÄÚµùÀÌ ´õ ´õ À¯¿ëÇÑ Æ¯Â¡À» Ãß°¡ÇÒ °ÍÀ» ¿ä±¸ÇÏÁö ¾Ê´Â ¾à°£ ¿©ºÐ Á¶Ä¡°¡ ÀÖ´Ù. È®½ÇÈ÷ »ý±â´Â 1°³ÀÇ Áú¹®Àº ƯÈ÷ ¼ö½Ã·Î ´ç½ÅÀÇ Namespace¿¡¼­ ±íÀº °÷¿¡¼­ ã±â °¡´ÉÇÏ°Ô ÇÏ´Â ¹æ¹ý ÀÌ´Ù.

´ç½ÅÀº ±âÁ¸ÇÏ´Â Namespace º¸±â¿¡¼­ ´ç½ÅÀÌ Å½Çè°¡¿¡ ÀÖ´Â ¼ö»ö »óÀÚ¿¡ ÀÖ´Â ¼ö»ö ±â°£¿¡ µé¾î°¡´Â °æ¿ì¿¡, ¼ö»öÀº Àü¸Á¿¡¼­¸¸ ÇöÀç Àִ ǰ¸ñÀ» °Å¸¥¤¤´Ù´Â °ÍÀ» ÁÖÀÇÇÒ °ÍÀÌ´Ù. ±×°ÍÀº Æú´õ·Î ãÁö ¾Ê´Â´Ù. ¾Æ·¡ ½É»ó¿¡¼­´Â, ¿ì¸®´Â 1°³ÀÇ Ç°¸ñ ¼­¸¸ ±ÍÂøµÇ´Â ¼ö»ö »óÀÚ¿¡¼­ "2¸¦" ã´Â °ÍÀ» ½ÃµµÇÑ´Ù. µû¶ó¼­, ÀÌÇÏ Æú´õ´Â Æ÷ÇÔÇÏÁö ¾Ê¾Ò´Ù.

¿©°ú±â ¼ö»ö

¿©°ú±â´Â - ¾èÀº À¯·¡ÇÑ´Ù

±×µéÀÇ namespace ¼ö»ö °á°ú¿¡ ÀÖ´Â ÀÌÇÏ Æú´õ¸¦ Æ÷ÇÔÇϱâ À§ÇÏ¿© Namespace ÀÌÇàÀÚ´Â ¹«¾ùÀ» ÇØ¾ß Çϴ°¡? À̰ÍÀº ½ÇÁ¦·Î »ó´çÈ÷ °£´ÜÇÏ´Ù.

IShellFolderViewCB¿Í IFolderViewSettings ½ÇÇà

¿ì¸®ÀÇ ÀÌÀü ºÎÈ£¿¡¼­´Â, ¿ì¸®´Â ½ÇÇàÇÏÁö ¾Ê¾Ò´Ù IShellFolderViewCB ¿ì¸®ÀÇ Namespace¸¦ À§ÇØ. À̰ÍÀº ´ç½ÅÀÇ Namespace°¡ Àü¸Á°ú °ü·ÃµÇ¾ú´ø »ç°ÇÀÇ ÅëÁöµÇ´Â °ÍÀ» Çã¿ëÇÑ´Ù. IShellFolderViewCBÀÇ ½Ç½Ã´Â ´ç½ÅÀÇ ¿Üħ¿¡¼­¿¡ ÁöÁ¤µÉ ¼ö ÀÖ´Ù SHCreateShellFolderView. À̰ÍÀº ¼±Åà À̰í ÀÌÀü¿¡ ¿ì¸®´Â Á¤´çÇÏ À̰ÍÀ» À§ÇÑ ¿µÀ» Åë°úÇÑ. ¿ì¸®´Â ¹æ¾È IShellFolderViewCB »Ó¸¸ ¾Æ´Ï¶ó Àú Á¾·ù¸¦ âÁ¶ÇÒ Çʿ䰡 ÀÖ´Ù IFolderViewSettings. IFolderViewSettings ¿ì¸®ÀÇ ½Ç½Ã¸¦, ¿ì¸®´Â¸¸ À» À§ÇÑ ´Ù·ç°³¿¡°Ô Á¦°øÇÒ Çʿ䰡 ÀÖ´Ù GetFolderFlags ¹æ¹ý. ¿ì¸®°¡ ¿ì¸®ÀÇ Namespace ³»ÀÇ ±íÀº ¼ö»öÀ» ½ÇÇàÇÏ°í ½Í´Ù ¿ì¸®°¡ Æ÷źÀ» ÅëÁöÇÑ´Ù ÀÌ ¹æ¹ýÀ» ÅëÇØ ÀÌ´Ù.

IFACEMETHODIMP CFolderViewCB:: GetFolderFlags (__out FOLDERFLAGS *pfolderMask, __out FOLDERFLAGS *pfolderFlags)

{

¸¸¾à¿¡ (pfolderMask)

{

*pfolderMask = FWF_USESEARCHFOLDER;

}

¸¸¾à¿¡ (pfolderFlags)

{

*pfolderFlags = FWF_USESEARCHFOLDER;

}

¹Ýȯ S_OK;

}

´ç½ÅÀÌ GetFolderFlagsÀÇ À§ ½Ç½Ã¿¡¼­ º¼ ¼ö ÀÖ´ø ´ë·Î, ¿ì¸®´Â ´ÜÁö FWF_USESEARCHFOLDER ±ê¹ßÀÇ Æ÷źÀ» ÅëÁöÇϱâ À§ÇÏ¿© °ÆÁ¤ÇÑ´Ù. À̰ÍÀº ¿ì¸®ÀÇ Namespace°¡ °ãÃÄ ½×À̰í ã±â ½ÇÇàÀ» À§ÇØ ¼ö»ö Æú´õ¸¦ ÀÌ¿ëÇØ¾ß ÇѤ¤´Ù´Â °ÍÀ» Æ÷ź¿¡°Ô ¸»ÇÑ´Ù. ´ç½ÅÀº ¶ÇÇÑ ÇÒ ¼ö ÀÖ¾ú´Ù ´Ù¸¥ ±ê¹ßÀ» ÁöÁ¤ÇϽʽÿÀ ´ç½ÅÀÇ namespaceÀÇ ¿Ü°ü ±×¸®°í ÇൿÀ» º¯°æÇϱâ À§ÇÏ¿©.

ÀÌ °ßº»À» À§ÇÑ º¯°æµÈ ºÎÈ£´Â ¾Æ·¡¿¡ ¿¬°áµÈ´Ù. ´ç½ÅÀº ¿ì¸®°¡ ±×µéÀ» ¿©±â¿¡¼­ ¸¦ »ç¿ëÇÏÁö ¶§¹®¿¡ IShellFolderViewCB¿Í IFolderViewSettingsÀÇ ½Ç½Ã°¡ ¿ÀÈ÷·Á ºÎÁ·ÇÏ´Ù´Â °ÍÀ» - ÃÖ´ë ¹æ¹ý Á¤´çÇÑ ¹Ýȯ E_NOTIMPL ÁÖÀÇÇÒ °ÍÀÌ´Ù. 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> .