Calling an API Function From VB.NET
Category:
C#, VB.NET, ASP.NETType:
SnippetsDifficulty:
BeginningAuthor:
Intelligent Solutions Inc.Version Compatibility: Visual Basic.NET
More information:
This snippet calls the GetSystemDirectory API function in VB.NET and shows how to use the StringBuilder class to create a string buffer for API functions that require it. See comments within code for more information.
Originally developed for VB.NET Beta 2; verified to work in VB.NET version 1.0 03/17/02.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: