Win32 API Reference

Win32 API Functions

Process Management

Memory Management

  • VirtualAlloc

    Reserves or commits a region of pages in the virtual address space of the calling process.

  • GlobalAlloc

    Allocates the specified number of bytes from the heap.

  • LocalAlloc

    Allocates the specified number of bytes from the local heap.

File Management

  • CreateFile

    Creates or opens a handle to a specified file or device.

  • ReadFile

    Reads data from a file or input/output (I/O) device.

  • WriteFile

    Writes data to a file or device.

  • CloseHandle

    Closes an open object handle.

Window Management

Graphics

  • CreateFont

    Creates a logical font with the specified characteristics.

  • CreateDC

    Creates a Device Context (DC) for a specified device.

  • GdiSetPixel

    Sets the pixel at the specified coordinates to the specified color.

Networking

  • socket

    Creates a socket that is bound to a specific transport service provider.

  • connect

    Establishes a connection to a specified remote computer.

Security

  • GetCurrentUser

    Retrieves the SID of the user associated with the current thread.

System Services