C# Corner

Related resources for DllImport
  • Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#9/12/2013 5:16:00 PM. Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
  • Native Windows Dynamic Link Libraries (DLLs)5/6/2013 4:47:20 AM. This article briefly explains what a native Windows Dynamic Link Library (DLL) is, shows how to create a DLL using C++, how to consume it in C# and then explains how DLLs work.
  • Calling WinINet API from VB.NET 12/1/2012 4:23:57 AM. This is an API which connects with the remote server . Inputs are the user name and password which are needed to connect with the server. For demonstration purpose an API called “FtpGetFile” is illustrated. Other API’s for deleting, putting , renaming and moving can be tried out. Please contact the author for any problems.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC in VB.NET11/10/2012 9:59:24 AM. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Password Hacking in VB.NET11/10/2012 3:57:03 AM. This code when run gets the password from a password window of any application. To try it out use the following procedure to get the password.
  • Using GDI in the Managed Environment10/5/2012 7:33:28 AM. In this article you will learn how to use GDI in the Managed Environment.
  • Sub classing a C# window in a DLL created using embedded VC++5/19/2012 6:22:44 AM. This article explains how to subclass a C# window in an eMbedded VC++ DLL.
  • CUDA integration with C#11/26/2010 3:15:39 AM. This article will focus on how to create an unmanaged dll with CUDA code and use it in a C# program. The example will show some differences between execution times of managed, unmanaged and new .NET 4 parallel versions of for() loops used to do computations on arrays.
  • Using GDI in the Managed Environment10/21/2010 1:48:23 AM. In this article you will learn how to use GDI in the Managed Environment.
  • Usage of system hotkeys and window messages in C#6/11/2010 4:28:36 AM. This article will show how to register a system hotkey for a currently running application and how to handle window messages for altering controls functionality or adding new functions to them.
  • Attributes in C#1/14/2010 12:28:35 AM. In this article I will explain about attributes in C#.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC 1/30/2007 6:05:48 AM. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC 1/30/2007 6:05:48 AM. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC1/23/2007 1:24:47 AM. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC1/23/2007 1:24:47 AM. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Password Hacking in VB.NET4/20/2006 6:55:51 AM. This code when run gets the password from a password window of any application. To try it out use the following procedure to get the password.
  • Password Hacking in VB.NET4/20/2006 6:55:51 AM. This code when run gets the password from a password window of any application. To try it out use the following procedure to get the password.
  • Calling WinINet API from VB.NET 4/20/2006 6:20:41 AM. This is an API which connects with the remote server . Inputs are the user name and password which are needed to connect with the server. For demonstration purpose an API called “FtpGetFile” is illustrated. Other API’s for deleting, putting , renaming and moving can be tried out. Please contact the author for any problems.
  • Calling WinINet API from VB.NET 4/20/2006 6:20:41 AM. This is an API which connects with the remote server . Inputs are the user name and password which are needed to connect with the server. For demonstration purpose an API called “FtpGetFile” is illustrated. Other API’s for deleting, putting , renaming and moving can be tried out. Please contact the author for any problems.
  • Screen capturing of a Form using GDI+3/23/2006 1:45:04 AM. In most cases, GDI+ speeds up your programming of Graphics because (1) It is not a thin veneer over the Windows SDK (2) It makes sense. However, whenever you lose granularity to create a simpler to use architecture, you tend to lose some functionality. Form Capture is one of these cases. In the cases where you say to yourself: "Hey! I could do that in GDI, why can't I do that in GDI+??". The answer is you can.
  • Screen capturing of a Form using GDI+3/23/2006 1:45:04 AM. In most cases, GDI+ speeds up your programming of Graphics because (1) It is not a thin veneer over the Windows SDK (2) It makes sense. However, whenever you lose granularity to create a simpler to use architecture, you tend to lose some functionality. Form Capture is one of these cases. In the cases where you say to yourself: "Hey! I could do that in GDI, why can't I do that in GDI+??". The answer is you can.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC 1/31/2006 12:24:03 AM. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Screen Capturing a Form in .NET - Using GDI and GDI+12/26/2005 6:53:55 AM. This article shows way to do form capture in GDI is to get the device context to the screen and bit blast it to a Bitmap in memory.
  • Screen Capture and Save as an Image12/26/2005 2:18:41 AM. The following example source code shows how to capture the screen and save it to an image.
  • Coloring the Console in C# 12/26/2005 12:57:22 AM. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download