Jump to content
Sign in to follow this  

.NET 05 C# kode til VB. API, Declare?

Recommended Posts



Jeg trenger å få gjort om noe kode fra C#.NET til VB.NET.


 public static extern Int32 CloseHandle(IntPtr hObject);

 public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress,[In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);


Jeg skjønner sikkert tegningen, hvis noen viser meg med de to der.

Den koden over gjort om til VB.NET kode altså.


Tusen takk for hjelpen.


Share this post

Link to post

Public Declare Auto Function CloseHandle Lib "kernel32" (obj As IntPtr) As Integer
Public Declare Auto Function ReadProcessMemory Lib "kernel32" (process As IntPtr, lpBaseAddress As IntPtr, buffer As Byte(), size As UInt32, ByRef lpNumberOfBytesRead As IntPtr) As Integer


tror det blir noe slik

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...