Get The Address of An Object in Memory

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
There was function in VB6 that supplied you with the pointer for a variable in memory. This does not exist in VB.NET, so this function will return the offset of where a given object is located in memory.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: