Coming from VB6 to .NET VarPtr not supported

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have the following code and was wondering what the .NET equivalent is for
VarPtr & ByVal....it seems .NET also dislikes ByVal in this code. Perhaps it
is now redundant?

Any help appreciated!

JW

CopyMemory ByVal VarPtr(p_SwapEndian) + 3, dw, 1
CopyMemory ByVal VarPtr(p_SwapEndian) + 2, ByVal VarPtr(dw) + 1, 1
CopyMemory ByVal VarPtr(p_SwapEndian) + 1, ByVal VarPtr(dw) + 2, 1
CopyMemory p_SwapEndian, ByVal VarPtr(dw) + 3, 1


.