Click here to Skip to main content
13,800,290 members
Click here to Skip to main content

Stats

12.5K views
702 downloads
12 bookmarked
Posted 15 Apr 2012
Licenced CPOL

VB.NET wrappers for much of the Windows API

, 15 Apr 2012
Includes most API functions except for graphics.
UtilitiesLib
bin
Debug
sclib.dll
sclib.pdb
Release
sclib.dll
sclib.pdb
My Project
Application.myapp
vssver2.scc
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache
Salience.Library.Resources.resources
sclib.dll
sclib.pdb
TempPE
My Project.Resources.Designer.vb.dll
UtilitiesLib.vbproj.GenerateResource.Cache
Release
DesignTimeResolveAssemblyReferencesInput.cache
GenerateResource-ResGen.read.1.tlog
GenerateResource-ResGen.write.1.tlog
Salience.Library.Resources.resources
sclib.dll
sclib.pdb
TempPE
My Project.Resources.Designer.vb.dll
UtilitiesLib.suo
Imports Microsoft.Win32

Public Class RegConstants

    Public Const Key_NTCurrentVersion As String = "SOFTWARE\Microsoft\Windows NT\CurrentVersion"
    Public Const Key_Run As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
    Public Const Key_GP_System As String = "SOFTWARE\Policies\Microsoft\Windows\System"
    Public Const Key_AppPaths As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
    Public Const Key_ProfileList As String = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
    Public Const Key_Winlogon As String = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
    Public Const Key_SpecialAccounts_UserList As String = Key_Winlogon + "\SpecialAccounts\UserList"
    Public Const Key_Policies_System As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system"
    Public Const Key_Explorer As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"
    Public Const Key_InternetExplorer As String = "SOFTWARE\Microsoft\Internet Explorer"
    Public Const Key_GroupPolicy As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy"
    Public Const Key_SessionData As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData"
    Public Const Key_Lsa As String = "SYSTEM\CurrentControlSet\Control\Lsa"
    Public Const Key_SharedDlls As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls"
    Public Const Key_Services As String = "SYSTEM\CurrentControlSet\Services"
    Public Const Key_SystemControl As String = "SYSTEM\CurrentControlSet\Control"
    Public Const Key_ShellFolders As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"

    Public Const Value_AllowFUS_xp As String = "AllowMultipleTSSessions"
    Public Const Value_HideFUS_vista As String = "HideFastUserSwitching"
    Public Const Value_LimitBlankPasswordUse As String = "LimitBlankPasswordUse"


    Public Shared Sub AddServicesPipeTimeout()
        Using key As RegistryKey = Registry.LocalMachine.OpenSubKey(Key_SystemControl, True)
            key.SetValue("ServicesPipeTimeout", 60000, RegistryValueKind.DWord)
        End Using
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

andrewbb@gmail.com
Architect
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web03 | 2.8.181214.1 | Last Updated 15 Apr 2012
Article Copyright 2012 by andrewbb@gmail.com
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid