Chapter 11 & 12 Flashcards
Text-oriented Console Functions
Read character streams from input buffer
Write character streams from input buffer
Redirect I/O
Event-oriented Console Functions
Retrieve keyboard and mouse events
Detect user interactions with console window
Control window size, position, text colors
API
Application Programming Interface
- collection of types, constants, and functions
SDK
Software Development Kit
- collection of tools, libraries, sample code, and documentation
Handle
Unsigned 32-bit integer
Win32 Console Programs
Run in protected mode
Emulate MS-DOS
Console Input Buffer
Contain queue of input records, each containing data about an input event
Console Screen Buffer
Two-dimensional array of character and color data that affects the appearance of text in the console window
GetStdHandle
Returns a handle to a console stream
- handle returned to EAX
WinMain Procedure
Start up procedure for windows application
WinProc
Retrieves and processes all event messages relating to a window
Dynamic Memory Allocation
AKA heap allocation
- reserving memory at runtime for objects
Segments
Variable-sized areas of memory used by a program containing code/data
Segmentation
Provides a way to isolate memory segments from each other
Lets programs run without interfering with each other
Logical Address
Combination of a segment selector and a 32-bit offset