ToggleDesktop in VB.NET on XP

  • Thread starter Thread starter dencdr
  • Start date Start date
I would like to use this function on XP : IShellDispatch4.ToggleDesktop()

Option Strict Off
Imports System

Class ToggleDesktop
Shared Sub Main()
Dim clsidShell As New Guid("13709620-C279-11CE-A49E-444553540000")
Dim shell As Object = Activator.CreateInstance( _
Type.GetTypeFromCLSID( clsidShell ) )
shell.ToggleDesktop()
End Sub
End Class



Mattias
 
Back
Top