Click here to Skip to main content
15,892,965 members
Everything / Desktop Programming / Win32

Win32

Win32

Great Reads

by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Martin Mitáš
How to support scrolling within your controls.
by Hans Dietrich
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.

Latest Articles

by Michael Chourdakis
An introduction to machine learning with working C++ code that trains a linear regression model.
by Ștefan-Mihai MOGA
Task Manager shows you the programs, processes, and services that are currently running on your computer. You can use Task Manager to monitor your computer’s performance or to close a program that is not responding.
by Ștefan-Mihai MOGA
This article is about the IntelliFile application which is a free alternative Windows version to Total Commander and uses many components that have been published on CodeProject.
by Michael Chourdakis
DirectX hardware screen capture and encoding with audio mixing capabilities. H264/H265/VP80/VP90/FLAC/MP3. HDR supported.

All Articles

Sort by Title

Win32 

27 Jun 2015 by Pedram_Niloufari
C# .Gif viewer / Snipper control
23 Oct 2014 by BrokenEvent
.NET WinForms Tray icon implemenation with Win7 and Vista features: GUID identification, large custom icons, custom UI instead of the hint, etc.
7 Sep 2012 by zippy1981
This is an alternative for "ODBCTracer"
26 Sep 2015 by Southmountain
Some take-away to improve the quality of desktop software
16 Aug 2012 by AshakiranBhatter
ScreensSaver through fullscreen mode using Win32 APIs in C.
16 Mar 2019 by WhiskeyBeforeWater
A nodular Singely Linked List for VBA with some basic functions
26 Nov 2012 by nilotpalbarpujari
VS 2010 style toolbox written in C#
4 Oct 2012 by Ritesh_Singh
C++ code to connect/access DB2 database using DB2 call level interface(CLI)
25 Sep 2012 by sam stokes
This is a really simple implementation of JavaScript and HTML5 to be used in a Windows 8 Store app.
13 May 2013 by Douglas de Alvarenga Silva
Add-in Word for PrintScreen
6 Jul 2011 by Mukit, Ataul
This tip, taken from MSDN tells the basic of ownership in windows.
9 Dec 2015 by U_IO
Consider possibility of alternative syntax usage to refer and access to last anonymous objective variables in C# instead of using construction in code.
20 Aug 2023 by Ștefan-Mihai MOGA
How to download files from an HTTP server.
27 Dec 2020 by Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.
15 Jan 2016 by veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
9 Mar 2012 by Grigory Avdyushin
Short description how to create a sexy badge for windows 7 taskbar
15 Dec 2017 by Laurie Stearn
Dialogex with Listbox to manipulate long paths in Windows
6 Jul 2013 by hirosht
Step by step method of thresholding a image using the EmguCV API in C#
5 Jul 2012 by Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
10 Dec 2015 by JinWenQiang
Get started with your own SDN (Software Defined Network) simulation network
19 Dec 2014 by OKarpov
How to use ASM in C#.NET and most fast memory copy method
18 Aug 2014 by Emiliarge
Read and write data to Access databases without limitations caused by the use of the SQL.
17 Jan 2016 by Ahmed Amer Jaf
Downloading files from the Internet with one line without Freezing Form
7 May 2014 by ehab_nour
Fast algorithm
2 Sep 2013 by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
27 Mar 2013 by metastruct
When WebClient, HttpRequest, and all else fail, BITSadmin solves your download woes
30 Aug 2014 by Emiliarge
2 ways to read and write data to *.xls and *.xls files and display it on DataGridView.
15 Dec 2016 by Farhad Reza
This tip describes how we can design application interface using Win32 API in Rust Programming language.
26 May 2013 by maftahur
Capturing web screen in different formats without any browser(PhantomJS)
13 Jan 2011 by DaveyM69
How to prevent a CD/DVD drive from being opened.
13 Jan 2011 by Steve Maier
To get this to work in .NET 4, you have to change the DLLImport signature.[DllImport("kernel32.dll", SetLastError = true)]private static extern IntPtr CreateFile( string lpFileName, uint dwDesiredAccess, int dwShareMode, ref SECURITY_ATTRIBUTES lpSecurityAttributes, ...
19 Jan 2011 by Dave Kreskowiak
This is probably why your global keyboard and mouse hooks stopped working on Windows 7
24 Jun 2013 by Tejashwi Kalp Taru
Ever wanted to change the Windows Aero color without restarting the DWM?
8 Oct 2012 by djdynamix
A little workaround to enable a VB.NET application to read and alter the WPC settings for any user.
25 Jan 2013 by Cinchoo
This article show how to consume Windows registry information using Cinchoo Configuration Manager.
16 Apr 2015 by Chris Jorna
Communication Library Files - LMS5lib | Connection and structure
15 Apr 2015 by Chris Jorna
Communication Library Files - NetTools | IsSameSubnet
2 Apr 2015 by Chris Jorna
Source code and demo on general TCP client & server library mainly usable for / tested on SICK lidar devices
5 Apr 2015 by Chris Jorna
Communication library files - UDP broadcast
1 Feb 2013 by aaverian
A very simple console progress bar.
20 Jul 2011 by Mukit, Ataul
this tip tells about a tool that converts a win32 rc file to XML
15 Sep 2011 by Mukit, Ataul
This tip shows you how to convert the dimension values in the .rc file of a dialog into pixels
10 Apr 2015 by El_Codero
Convert doc/docx documents to pdf with Foxit Reader Printer. Works without use of Word Interop/SharePoint.
27 Nov 2017 by Altaf Ansari
Converting XML Data into DataTable and Exporting DataTable into Excel File
15 Jan 2011 by Mukit, Ataul
This tip shows how to create a service
1 Dec 2015 by Farhad Reza
This tip describes how we can create a simple window in Go programming language using Win32 API functions.
15 Sep 2011 by Mukit, Ataul
This is not so much of a trick, just a little tip about how CTRL+I is interpretated in a window
2 Sep 2014 by Mike Hankey
A simple solution to rolling up a Custom ComboBox list on mouse leave.
28 Mar 2014 by Alex Culea
Shows how to create a window that behaves like a context menu
1 Aug 2014 by Gautham Prabhu K
Perform custom disk clean up when hard disk free space goes low
20 Sep 2023 by Javad Taheri (drjackool)
Show or hide, reorder, save and restore list view column headers
12 Aug 2014 by Gihan Liyanage
Simple Dapper.NET Example with MVC
26 Jul 2016 by Yochai Timmer
Debugging C++ projects in release. Finding the lost object information
20 Aug 2014 by slaon77
Setting APM level for SATA hard drive
22 Jan 2013 by Vinod Viswanath
Are you annoyed of the "Restart now" message in Windows? Here is a solution for that.
30 Jun 2010 by Niklas L
This tip show how to display all entries from a C++ vtable in the VS debugger.
5 Mar 2017 by Jose A Pascoa
29 Jul 2013 by Johnny J.
How to do a program whose main graphic interface consists of an icon in system tray
23 Feb 2015 by Sujith Karivelil
This article Describes Connectivity to Gmail using IMAP, and also guide you to download and save mail content along with attachment.
2 Oct 2012 by Clifford Nelson
This article presents a way to display totally dynamic data in a windows grid using a dictionary.
6 Mar 2013 by Ahmed Elkafrawy
An easy way to simulate keyboard press & release keys to another application
28 Jul 2014 by Muhammad Muddasar Yamin
The article is about launching elevated processes through command line
23 Jul 2014 by Brandon Rohrer
Embed HTML in a Word Document
27 Jun 2011 by charles henington
28 Jun 2011 by George Swan
Couldn't the class RegEdit be replaced by one simple method?private void SetKey(bool enableTaskManager) { using ( var mKey = Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System")) {...
27 Jun 2012 by Brady Kelly
A quick and easy way to ensure that your Code First DB Initializer is always run when your app starts, not just on the first data access operation
31 Oct 2013 by Debopam Pal
How to bring data from Entity model to Excel file using LINQ.
23 Mar 2013 by Dejan Mauer
Probably the easiest way to detect faces in images by using Accord.net framework
10 Oct 2012 by pavan1361
adding require blocking site in hosts file
29 Aug 2014 by Ștefan-Mihai MOGA
A quick solution to transform binary data to plain text
2 Jun 2016 by Eric Payne
The simplest, fastest way to send a file from your computer using Bluetooth!
6 Sep 2012 by Suraj S Koneri
Test whether your remote server rebooted or not from C# code.
13 Aug 2010 by Not Active
Plagiarized from http://msdn.microsoft.com/en-us/library/ms724429(VS.85).aspx[^]
30 Sep 2014 by Vahid_N
Microsoft has not updated Iran's daylight saving time information since 2009. Let's find out how it works and then fix it for the next 100 years!
24 Jun 2013 by Tejashwi Kalp Taru
When we have to scroll some text in the dialog box with a background image, you can see flicker. Here's the technique of double buffer to solve this problem
20 Oct 2010 by Ajay Vijayvargiya
Need to Format/sprintf a string before displaying a messagebox? Here is solution!
21 Oct 2010 by Aescleal
printf is so 1980s. If you don't want to dig out your shoulder pads and big hair why not go for a more modern C++ approach?Instead of a function try a stream buffer:class message_box_stream_buf : public std::basic_streambuf{ public: message_box_stream_buf( const...
25 Aug 2012 by Rich Turner
Free space cleaner to overwrite empty space on logical disks
30 Nov 2014 by David O'Neil
I needed an 'Update' solution for a project, and modified Geert van Horrik's 'Updater' to do so. This is the solution in Visual Studio Community Edition
10 Mar 2017 by Southmountain
Gems for typedef and namespace in C
12 Jan 2012 by Ștefan-Mihai MOGA
How to get temporary files with any extension.
26 Nov 2016 by JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
8 Jun 2012 by pdoxtader
Use DeviceIoControl, QueryDosDevice and WNetOpenEnum to get information about your system.
31 Jul 2013 by Thomas B Dignan
Getting the text of Win32 Error codes for 99% of cases.
19 Oct 2012 by Orjan Westin
Simple function to get the text message corresponding to a system error.
27 Dec 2010 by Mr Nukealizer
Ideal for finding LoadLibrary() in 32 bit programs from a 64 bit program but it works for any function in any DLL and supports forwarded functions and ordinals.
10 Nov 2015 by John Torjo
Want to automatically let your users know when you've posted an update of your application? If your project is hosted on github, you're in luck!
15 Jan 2020 by Steffen Ploetz
A solution for: If the toolbar is created button by button with single TB_ADDBUTTONS calls, the width of the separators is not calculated correctly.
29 Sep 2015 by HP2M
This tip covers handling two Excel lists using Interop.
27 Jun 2018 by Clifford Nelson
These are some methods I created to help with creating and deleting Windows shared directories.
27 Jun 2020 by honey the codewitch
Extensive performance and API improvements for streaming MIDI and more
28 Sep 2012 by Dr. Vinayak Ashok Bharadi
Homomorphic filtering is a generalized technique for signal and image processing, involving a nonlinear mapping to a different domain in which linear filter techniques are applied, followed by mapping back to the original domain.
24 Jan 2013 by Simon-Benyo
Hooking unmanaged processes using VB.NET.
27 Sep 2010 by bleedingfingers
I want to share a simple class I use for this purpose. The class operates on kernel objects.