Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In C#:

 

[DllImport ("user32.dll")]
	public static extern void mouse_event(
		int dwFlags,		// flags specifying various motion/click variants
		float dx,
		float dy,
		int dwData			// amount of wheel movement
		);

 

and remember to include:

using System.Runtime.InteropServices;

  • *Experts*
Posted

Assuming you are using VB.NET, you do it the same as you did in VB6, with

Public Declare Function SomeFunction Lib "netapi32.dll" (argument As Integer, argument2 As Integer)

At which point use SomeFunction as usual. Remember, if you are translating the definitions from VB6 to change all Longs to Integers in VB.NET.

 

If you are using C#, do what BrianHanson said.

  • *Experts*
Posted

If you reference a DLL then you should be able to see what It contains using the Object Browser.

You can view it by going to the menu:

View, Object Browser

Guest
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.

×
×
  • Create New...