4/28/11

[VB.NET][SNP] Disable Taskbar

 Dim intReturn As Integer = FindWindow("Shell_traywnd", "")  
     SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)  


And to enable it:
change SWP_HIDEWINDOW to SWP_SHOWWINDOW

[VB.NET][SNP] Disable Folder Options

 Shell("REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFolderOptions /t REG_DWORD /d 1 /f", vbNormalFocus)  


Change the 1 to 0 to enable it again.