4 posts about DllImport attribute by 3 contributors.
Know DllImport attribute? Share what you know with developers who are learning it.
Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
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().
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article