Click here to Skip to main content
15,884,298 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 Score

Win32 

2 Sep 2013 by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
15 Jun 2022 by Ayush Swiss
C++, WebView2, Edge Browser, Edge in MFC application
1 Mar 2011 by Tim Stevens
An updated version of the code in David A Jones' article "Memory Leak Detection"
28 Mar 2014 by Alex Culea
Shows how to create a window that behaves like a context menu
19 May 2015 by Yohamnes Hernandez
How to free blocked files, inclusive if they are mapped in memory. Something that many tools are missing.
26 Nov 2016 by JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
23 Jan 2020 by Steffen Ploetz
Another fully functional ownerdraw menu with minimal effort - this time based on Win32, with icons instead of bitmaps, with accelerators and tested for ReactOS and WinNT 4.0 to Windows 10
5 Mar 2017 by Jose A Pascoa
2 Oct 2012 by Clifford Nelson
This article presents a way to display totally dynamic data in a windows grid using a dictionary.
1 Dec 2015 by Farhad Reza
This tip describes how we can create a simple window in Go programming language using Win32 API functions.
27 Jun 2011 by charles henington
31 Oct 2013 by Debopam Pal
How to bring data from Entity model to Excel file using LINQ.
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)
6 Apr 2014 by Prabakaran T
Ultimate USB Reset Attribute with powerful option
20 Nov 2011 by Bernhard Hiller
That's far too obscure.All you need to do is store a reference to the TabPage instance which was removed from the TabPages collection of the TabControl. You may use the form where the TabControl is placed for that purpose.You could also create your own TabControl which has an extra property...
5 Jul 2012 by Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
10 Jun 2014 by Anamera
This XSLT will output an Excel worksheet containing a CSV type of record collection in a more usable XML format.
10 Oct 2014 by Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
6 Oct 2015 by Maxim Komlev
.NET classes to enumerate applications associated with protocol
10 Dec 2015 by JinWenQiang
Get started with your own SDN (Software Defined Network) simulation network
27 Jun 2018 by Clifford Nelson
These are some methods I created to help with creating and deleting Windows shared directories.
27 Dec 2022 by Bruno van Dooren
What to do when you want to use the current thread handle
24 May 2020 by User 5250478
Application to show how to zigzag order a matrix
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...
28 Jul 2013 by Mike Meinz
How to use .NET Framework to determine the drive letter of the CD/DVD (optical) drive.
24 Jan 2022 by peterswinkels
A Visual Basic 6 program demonstrating how to access databases using Microsoft ADO and how to automate Outlook and Excel.
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
26 Sep 2015 by Piyush Manharlal
Using integer instead of Enum for ComboBox and Radio Button in XAML
15 Dec 2016 by Farhad Reza
This tip describes how we can design application interface using Win32 API in Rust Programming language.
6 Jun 2017 by Nick Tziamihas
In this article, we show how you can execute asynchronous code on the main thread without async, by replicating Unity's coroutine framework.
23 Jan 2020 by Steffen Ploetz
The Win32++ class library sample collection does not contain a sample, that creates the frame menu via API instead of via resources. Here is the missing part.
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.
31 Oct 2022 by flyhigh
By implementing a UI library and exporting its necessary components to lua script, we can create a beautiful UI and implement relevant logic in Lua script completely.
3 Oct 2011 by Karthik Kalyanasundaram
Do you really need an explicit call to _endthreadex() in your thread function created using _beginthreadex()
15 Apr 2012 by andrewbb@gmail.com
Includes most API functions except for graphics.
24 Sep 2013 by Mike Meinz
PartnerTech provides a 32-bit DLL and a 64-bit DLL for communicating with the CD-7220 Series Customer Display in true USB mode. This tip demonstrates a .NET class that can be used to provide an easy way to access the PartnerTech-provided 32-bit DLL.
27 Jun 2015 by Pedram_Niloufari
C# .Gif viewer / Snipper control
21 Oct 2019 by Steffen Ploetz
How to embed icons into Win32 programs without utilizing resources - useful for platforms without resource editor/resorce compiler, e.g., ReactOS. Learn the missing things about the .ico format.
15 Apr 2010 by Joshua Tully
So I’m playing around with DX10 and decide to do some input work.  After much research apparently no one can decide what the best way to handle keyboard input so I’m just going to use WM_KEYDOWN/UP and store the state in a bool[] and check that in the rendering code.  Also, instead of using...
3 Feb 2011 by Menuki
This solution works in Windows environment under Visual Studio.I don't know if there is a Linux equivalent.I use a counter common for all processes.#pragma data_seg("counter") // counter common for all processesLONG gs_nCtApp = -1; #pragma data_seg()#pragma comment(linker,...
6 Jul 2011 by Mukit, Ataul
This tip, taken from MSDN tells the basic of ownership in windows.
20 Jul 2011 by Mukit, Ataul
this tip tells about a tool that converts a win32 rc file to XML
7 May 2012 by emranallan
Lock Device Screen ,to prevent an one working on the device
17 Jul 2012 by Jake Franta
8 Oct 2012 by djdynamix
A little workaround to enable a VB.NET application to read and alter the WPC settings for any user.
4 Oct 2012 by Ritesh_Singh
C++ code to connect/access DB2 database using DB2 call level interface(CLI)
25 Jan 2013 by Cinchoo
This article show how to consume Windows registry information using Cinchoo Configuration Manager.
31 Jul 2013 by Thomas B Dignan
Getting the text of Win32 Error codes for 99% of cases.
30 Jun 2014 by Keith Balaam
Run multiple instances of a Windows service on the same machine.
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.
5 Apr 2015 by Chris Jorna
Communication library files - UDP broadcast
16 Apr 2015 by Chris Jorna
Communication Library Files - LMS5lib | Connection and structure
24 Jun 2015 by maratoni
This is a brief tutorial on how to sign a Windows device driver with WDK 7.1
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.
6 Nov 2012 by PJ Arends
I needed to disable the Sleep button on my keyboard, here's how.
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
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
9 Mar 2012 by Grigory Avdyushin
Short description how to create a sexy badge for windows 7 taskbar
5 Jul 2012 by Pasan Eeriyagama
how to get gridview selected row value to text box which is in another windows form
25 Aug 2012 by Rich Turner
Free space cleaner to overwrite empty space on logical disks
26 Sep 2012 by himanshupareek
Parse the PCAP dump and extract NETBIOS and DNS queries.
5 Feb 2013 by Lars [Large] Werner
Use the standard GDI API to load an HBITMAP into SFML.
3 Jun 2013 by LarryCharlton
Using system, named, and hex color values
28 Jul 2014 by Muhammad Muddasar Yamin
The article is about launching elevated processes through command line
2 Jun 2016 by Eric Payne
The simplest, fastest way to send a file from your computer using Bluetooth!
24 Jan 2024 by Allegra Angelo
Save, read and text recognition of network parameters
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, ...
22 Jun 2011 by ugavnholt
How to invoke foreign remoting interfaces in remote hosts.
1 Sep 2011 by Jose David Pujo
With SendInput:void SetNumLock (bool active){ BYTE keyState[256]; GetKeyboardState((LPBYTE)&keyState); bool active0= keyState[VK_NUMLOCK] & 1; if (active0!=active) { INPUT inp[2]; ZeroMemory(inp, sizeof(inp)); inp[0].type=INPUT_KEYBOARD; ...
7 Sep 2012 by zippy1981
This is an alternative for "ODBCTracer"
12 Sep 2012 by sam stokes
How to implement live tile notification in just a few lines of code
11 Sep 2012 by sam stokes
This sample demonstrates how to use the Tile Template, specifically the TileSquareImage and an image.
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.
22 Oct 2012 by FlyersWeb
This article present how to make async HTTP Request in a command line application
13 May 2013 by Douglas de Alvarenga Silva
Add-in Word for PrintScreen
3 Jul 2013 by Emmery Chrisco
18 Jul 2013 by Mircea Sirghi
Jacob for Excel, pivot tables, VBA functions, etc.
2 Sep 2014 by Mike Hankey
A simple solution to rolling up a Custom ComboBox list on mouse leave.
18 Dec 2014 by Brisingr Aerowing
This is an alternative for "Security Blackout Window"
15 Apr 2015 by Chris Jorna
Communication Library Files - NetTools | IsSameSubnet
16 Mar 2019 by WhiskeyBeforeWater
A nodular Singely Linked List for VBA with some basic functions
20 Nov 2013 by Richard MacCutchan
Obscure a window or the screen and show a dialog.
24 Mar 2014 by pasztorpisti
A custom implementation of the FindResource() and LoadString() functions with better error indication. Pointing the direction for those who want to learn the binary PE resource format.
15 Dec 2017 by Laurie Stearn
Dialogex with Listbox to manipulate long paths in Windows
7 May 2014 by ehab_nour
Fast algorithm
19 Dec 2014 by OKarpov
How to use ASM in C#.NET and most fast memory copy method
12 Dec 2016 by Farhad Reza
In this tip, we will see how we can use the Rust language to do GUI (Graphical User Interface) programming. As an example program, we will create a simple Window. Using Win32 API functions.
31 Dec 2020 by Kai Schtrom
Display smart messages on the Windows Desktop as XBOX360 achievements
23 Mar 2013 by Dejan Mauer
Probably the easiest way to detect faces in images by using Accord.net framework
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!
29 Aug 2013 by Max Methot
This little simple and easy to read program will help you understand how to print to a specific printer, local or shared on a network.
6 Mar 2013 by Ahmed Elkafrawy
An easy way to simulate keyboard press & release keys to another application
29 Jul 2013 by Johnny J.
How to do a program whose main graphic interface consists of an icon in system tray