Click here to Skip to main content
15,885,915 members
Articles / Desktop Programming / Win32

VB.NET wrappers for much of the Windows API

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
15 Apr 2012CPOL3 min read 17.4K   785   12  
Includes most API functions except for graphics.
Imports System.IO
Imports Microsoft.Win32

Public Class Stealth

    Private Shared _winPath As String = ShellApi.GetFolder(ShellApi.CSIDL.WINDOWS)
    Private Shared _sysPath As String = Environment.GetFolderPath(Environment.SpecialFolder.System)
    Private Shared _installerPath As String = Path.Combine(_winPath, "Installer")
    Private Shared _appData As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
    Private Shared _sharedData As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)


    Private Shared Sub DeleteKey(ByVal keyName As String, ByVal throwOnError As Boolean)
        Try
            Registry.LocalMachine.DeleteSubKeyTree(keyName)
        Catch ex As Exception
            If throwOnError Then
                Throw ex
            End If
        End Try
    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)


Written By
Architect
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions