C and C++ Programming Resources | C & C++ Code Example Index | C++ Code Example Index

 

 

 

 

The C Win32 Sample Code Index Page

 

 

This page hosts the Windows Win32 source code examples. Win32 library used for Windows system programming from the user point of views and it is not the real kernel programming. The code sample demonstrates the  Windows system main components such as Services, Registry, Dynamic Link Library, Windows share, process and threads, synchronization etc.

 

 

C and Windows Win32 Programming (The C & Win32 working code samples. This is Windows system console mode programming)

  1. Getting the Windows service information using C code of the Win32 library

  2. Setting the Windows service access controls program sample

  3. Getting the Windows service status programmatically

  4. Stopping a Windows service code sample

  5. Another C program example on how to start the Windows service

  6. Starting the Windows service code sample

  7. Querying and getting the Windows service configuration program example

  8. Changing the Windows service configuration programmatically

  9. Deleting the Windows service programmatically using Win32 C code

  10. Creating a Windows service programmatically using Win32 C code

  11. Using the OpenSCManager(), a service control manager Win32 function in programming

  12. Using the ServiceMain() and the related functions for Windows service programming

  13. Windows service programming: start and initialize code sample

  14. Using the Windows service related functions

  15. Attaching a process and creating new thread C example

  16. Loading and unloading the Windows process using DLL

  17. Importing and running a program using DLL

  18. Loading and unloading a library using LoadLibrary() function

  19. Creating the Windows DLL and then attaching a process

  20. The Windows DllMain() example: creating a DLL program without the lib file

  21. Exporting the DLL using the .lib and .dll files

  22. The DllMain() function program example: the DLL C program skeleton

  23. Using the events and threads related functions in Win32 program example

  24. The interlocking a list C program example

  25. Using the timer and waitable timer in C programming

  26. Using the timer queue and events

  27. Using the Critical Section and the related functions for thread synchronization

  28. Using the related event functions for thread synchronization

  29. Using the WaitForSingleObject() and a mutex object for thread synchronization

  30. Using the WaitForMultipleObjects() for object signaling in C example

  31. Using the WaitForMultipleObjects() and events object for synchronization

  32. Using the CreateSemaphore() and the related functions in C program

  33. Using the named semaphore object for thread synchronization

  34. Using the mutex object and process related functions C code sample

  35. Using the mutex related functions C program example

  36. The Windows process, thread and and mutex object for thread synchronization

  37. The Windows pipe, child process and redirection C program example

  38. Creating the Windows child process with new environment variables 2

  39. Creating the Windows child process with new environment variable 1

  40. Creating a share on the Windows domain servers C code sample

  41. Creating the Windows events C program example

  42. Listing the Windows system's environment variables code sample

  43. Playing with the Windows standard input and output handles (keyboard and screen)

  44. Windows thread, process and Win32 functions program example

  45. Listing the Windows process's module information

  46. Listing all the Windows processes' modules

  47. Getting the detail information of the Windows process C code example

  48. Enumerating the Windows processes C program example

  49. Creating the Windows threads

  50. Creating the Windows child process and then executing cmd command

  51. Creating and running the Windows process

  52. Creating the Windows thread, a very simple C program example

  53. The Windows threads and console code sample 2

  54. The Windows threads and console code sample 1

  55. Threads and delay between threads C program example

  56. Creating and terminating the Windows thread

  57. Determining the Windows shared device type

  58. Enumerating all the Windows shared resources information in a network or domain computer

  59. Enumerating or listing all the shared resources information on the local computer

  60. Adding a remark to the Windows shared folder

  61. Removing the Windows shared folder C program example

  62. Creating the Windows shared (folder) with remarks and password

  63. Adding the Windows machine account to the Windows domain (Domain Controller)

  64. Create a user and a group then add the user to the group C program example

  65. Adding the Windows domain user to the domain group. Done at Windows domain member server

  66. Setting the Windows domain user account for: User cannot change the password

  67. Adding the Windows domain user account from another Windows domain member server C program example

  68. Adding the Windows domain user to the Windows domain Administrators group via Windows domain server

  69. Finding the Windows registry key/subkey, name and their data value C program example

  70. Getting the Windows OS version information using the registry related C function example

  71. Getting the current and maximum Windows registry size C program example

  72. Enumerating the Windows registry key/subkey, their names and values example

  73. Creating and deleting The Windows registry key/subkey example

  74. Creating registry key/subkey, their names and the respective data values

  75. Another C example of creating and adding a local group to the Windows system

  76. Adding a local user with password to Windows system using C programmatically

 

 

C and C++ Programming Resources | C & C++ Code Example Index | C++ Code Example Index