Click here to Skip to main content
13,591,628 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


10 bookmarked
Posted 6 May 2012
Licenced CPOL

VB.NET wrappers for much of the Windows API

, 7 May 2012
Rate this:
Please Sign up or sign in to vote.
Includes most API functions except for graphical ones.


This might not be classified as an article as it is simply a collection of Windows API wrappers written in VB.NET.   It was originally part of shrink-wrapped security software deployed on XP and Vista.  Some minor updates might be required on Windows 7 (int -> long, etc.), however, the code has been proven to work.  


Nearly every Windows API is included in this library with the exception of graphical functions.  Some of the code was originally sourced from various sites on the internet, however, nearly every line of code was rewritten to fix memory leaks or other bugs.

Using the code  

The major libraries included are: 

- ACLs 

- Active Directory 

- File IO 

- Kernel 

- Net (User and groups) 

- User profiles 

- Windows services 

- Shell 

- Time and date 

- User (Windows, desktop, screensaver) 

- Windows (child windows, parent, positioning) 

- WTS (terminal services, desktop switching) 

Points of Interest  

A few interesting things in the ACL that can be used to lock users out of folders or files or registry.

The Kernel is interesting in its process management and impersonation.  SIDs for Administrator and even system can be employed.  A few helper functions are in there that should be descriptive.  The file IO might shed some light on the underpinnings of .NET's streams. 


Understanding that level of low-level Windows API was beyond my initial undertaking and desire.  However, due to the rather rigorous requirements of applications beyond initial scope the library grew to include much of Windows.  Some of the functions are undocumented by Microsoft although part of their core system.


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


About the Author
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionUsing the code Pin
ledtech324-Nov-12 9:56
memberledtech324-Nov-12 9:56 
AnswerRe: Using the code Pin
andrewbb@gmail.com16-Oct-13 8:19
memberandrewbb@gmail.com16-Oct-13 8:19 
GeneralRe: Using the code Pin
ledtech316-Oct-13 10:02
memberledtech316-Oct-13 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04 | 2.8.180618.1 | Last Updated 7 May 2012
Article Copyright 2012 by
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid