What are DShellFolderViewEvents and DShellFolderViewEvents_Event?

时间:2015-06-25 18:39:22

标签: vb.net windows-shell

The names make it sound like some sort of event handler.
Both were identified as an interface from Shell32 using the code below: I can't find either of these in the MSDN libraries. Google returned some pages with code where they appeared, but I didn't see anything that really described the interface.

Public Sub ListTypes()
    Dim NS As String = "Shell32"
    For Each t As Type In Assembly.GetExecutingAssembly().GetTypes()
        If (t.IsClass Or t.IsInterface) And t.Namespace = NS Then
            Debug.Print(t.Name)
        End If
    Next
End Sub 

1 个答案:

答案 0 :(得分:0)

根据ShlDisp.h中的定义,它似乎只是一个围绕IDispatch的薄包装器,具有不同的GUID。

MIDL_INTERFACE("62112AA2-EBE4-11cf-A5FB-0020AFE7292D")
DShellFolderViewEvents : public IDispatch
{
};

它似乎用于从shell获取事件通知 - Raymond Chen's blog有一些示例代码。