Index
M
main window creation, Hello World applications, 22–23
MainMessages table, 35
MainWndProc, 24, 34–35
MAKEINTRESOURCE macro, 184, 302
MAKELONG macro, 446
MAKELPARAM macro, 945
MAKEWORD macro, 638
managed applications
advantages, 1114–1115
common language runtime, 1120–1125
described, 1113
examples, 1117
namespaces, 1118–1119
overview, 1116–1117
Visual Basic .NET, 1119
Visual C#, 1117
managed types vs. unmanaged types, 1142
manual
driver interface advertisements, 1066
driver loading, 1049
event resets, 513
file pointer adjustments, 391
file time setting, 394
service loading, 1085
map files, static data, 377–379
mapping
files to memory, 406–408
modes, 39
physical memory, 1026
remote drives, 616–619
virtual pages, 359
MapPtrToProcess function, 1063
MapViewOfFile function, 407, 546
MapVirtualKey function, 99
MapWindowPoints function, 218
MARKPARITY, 591
Marshal class, 1146
marshaling support, 1142
MaskBlt function, 74
masking image, 74
matching fonts, 54
MAX_PATH, 386, 801
MB_ABORTRETRYIGNORE, 13, 947
MB_DEFBUTTON1, 13
MB_DEFBUTTON2, 13
MB_DEFBUTTON3, 13
MB_ICONASTERISK, 13, 948
MB_ICONERROR, 13
MB_ICONEXCLAMATION, 13, 948
MB_ICONHAND, 13, 948
MB_ICONINFORMATION, 13
MB_ICONQUESTION, 13, 948
MB_ICONSTOP, 13
MB_ICONWARNING, 13
MB_OK, 13, 947
MB_OKCANCEL, 13, 947
MB_RETRYCANCEL, 13, 947
MB_SETFOREGROUND, 14
MB_TOPMOST, 14
MB_YESNO, 13, 947
MB_YESNOCANCEL, 13, 947
MCM_GETMINREQRECT, 287
MCM_SETCOLOR, 287
MCM_SETFIRSTDAYOFWEEK, 287
MCM_SETMAXSELCOUNT, 287
MCM_SETRANGE, 287
MCN_GETDAYSTATE, 288
MCN_SELCHANGE, 288
MCN_SELECT, 288
MCS_DAYSTATE, 287
MCS_MULTISELECT, 287
MCS_NOTODAY, 287
MCS_NOTODAYCIRCLE, 287
MCS_WEEKNUMBERS, 287
MEM_AUTO_COMMIT, 366
MEM_COMMIT, 365
memcopy function, 72
MEM_DECOMMIT, 368
MEM_IMAGE, 370
MEM_MAPPED, 370
memory. See also memory allocation; memory management
application launch keys, 829
architecture confirmation, 362
asynchronous driver I/O, 1080
code fragments, 35
device context, 72
fibers, 509
file system, 386–387, 393
fonts, 57
footprints, 381
fragmentation, 373, 379
frame buffer, 997, 999, 1001–1003
freeing, 368, 372, 374, 871
input method, 900
managed applications, 1116
mutexes, 520
Out Of Memory Error dialog box, 817
overview, 4
paged, 359–360
registry organization, 416
Smartphone, 956–957
states, 381–384
string resources, 186
Today screen items, 877
Windows CE architecture, 1025–1027
memory allocation
heaps, 371–375
hibernate mode, 380–381
low-memory conditions, 380–384
overview, 364
stack, 375–376
static data, 376–379
thresholds, 381–384
type selection, 379–380
strings, 379
virtual, 365–371
memory management
application address space, 362–364
current state, 360–362
overview, 357
RAM, 357–358, 361, 363, 376, 380
ROM, 358, 364, 377
virtual, 359–362
memory maps, device, 586
memory-mapped files, 406–408, 1026
memory-mapped objects, 406–408, 529–530
MEM_PRIVATE, 370
MEM_RELEASE, 368
MEM_RESERVE, 365
MEM_TOP_DOWN, 366
menu bar control
bitmaps, 268
vs. command bar, 260
configuring, 268
creating, 262–263
examples, 269–286
height, 262
menus, 269
overview, 5, 260–262
Pocket PC, 834, 844
resources, 263–268
MenuBar control
buttons, 939–947
creating, 940–942
described, 930
menus, 942–944
overview, 939
MENUITEM keyword, 183
menus. See also New menu
adding, 209–210
commands, 181
Document, 805
examples, 187–204
overview, 21, 179–181
Smartphone, 942–944
Start, 805
merging data streams, GAPI, 1002
message boxes, 12–14, 944, 947
message class values, 968
message structure, 1134
MessageBox function, 12–14, 947
messages. See also Short Message Service (SMS)
accelerators, 185
code fragments, 28–37
concatenation, 968
debug zones, 1070–1071
hibernation, 380–381
keyboards, 92–98, 100–108
loops, 23–24, 303, 307, 514, 517
mouse, 109–110, 116–117
queues, 16–17, 185, 531–534
scroll bar, 143–145
stylus, 110
waiting on, 517–518
window notifications, 15–17
MessageWindow class, 1127, 1134–1135, 1162
MF_BYCOMMAND, 179
MF_BYPOSITION, 179
MF_CHECKED, 179
MF_GRAYED, 179
MF_POPUP, 180
MF_STRING, 179
microprocessor identification, 360
middle mouse button, 93
minimal power state, requesting, 1043
Minimize buttons, 262, 1133
MinimizeBox property, 1133
minimized windows, 844
minus key, 95
MIPS, 3
MM_TEXT mapping mode, 40
mobile devices. See also device-to-device communication
colors supported, 44
Windows CE vs. standard Windows, 3–7
modal dialog boxes, 298, 303, 307–308, 944
MOD_CONTROL, 828
modeless dialog boxes, 298, 307–308
modeless property sheets, 309
modem control signal status, 597
MOD_KEYUP, 828, 947
MOD_SHIFT, 828
module-level security, 995
modules
overview, 489–493
run-level, 995
security, 525–527
trusted, 995
MOD_WIN, 828
monitoring driver interfaces, 1067
monitoring TCP/IP ports. See super service
monospaced fonts, 54
month calendar control, 206, 286–289
MONTHCAL_CLASS, 286
MONTHDAYSTATE, 288
mounted database volumes, 441–443
mouse
messages, 109–110, 116–117
overview, 4, 91
right button clicks, 117–118
vs. touch screens, 110
wheel rolls, 109
MOVEABLE, 265
MoveFile function, 409
MoveToEx function, 75
moving file pointers, 391
moving files and directories, 409
moving seek pointers, 961
MS_CTS_ON, 597
MS_DSR_ON, 597
MSG structure, 23–24
MSG_PEEK, 644
MSGQUEUE_ALLOW_BROKEN, 532–534
MSGQUEUEINFO structure, 533
MSGQUEUE_MSGALERT, 533
MSGQUEUE_NOPRECOMMIT, 532, 534
MSGQUEUEOPTIONS structure, 531
MsgWaitForMultipleObjects function, 514
MsgWaitForMultipleObjectsEx function, 517–518
MS_RING_ON, 597
MS_RLSD_ON, 597
multibyte strings, 639
MultiByteToWideChar function, 639, 753
multilevel sort indexes, 440
multilingual considerations, 54, 98
multiple. See also cross-platform applications
objects waiting, 516
Smartphone instances, 939
text lines, 43
threads, input method, 896
using directives, 1118
multitap text input mode, 951
multitasking system. See interprocess communication
multithreaded system. See threads
mutexes, 520–521, 546
MyCreateHatchBrush function, 89
MyIInputMethod object, 928
MYMSG_METHCALL, 928
MyPowerEventHandler method, 1123