Index
C
C library I/O functions, 817
c parameter, 1122
C++ exception handling, 549–552
C#, 1116–1118, 1122
cache, 510, 877, 1116
calendar control, 5
Calendar item, 875
calendars, 286–289
CALLBACK, 25
callback function, 66
callbacks, OBEX, 714–716
calling, phone. See cell phones
CallingConvention field, 1142
CALLLOGENTRY structure, 960
CALLLOGSEEK_BEGINNING, 961
CALLLOGSEEK_END, 961
CallWindowProc function, 134
Cancel buttons, 300, 304, 308, 313, 865, 947
Capacity method, 1146
CapEdit control, 207, 294
capitalization, 294
Caps Lock key, 94
CAPTION, 301
caret, 41, 98
Carrier Detect, 597
cascading menus, 179
catch keyword, 549–552
CB_ADDSTRING, 142
cbBufferSize parameter, 533
cbCachedData field, 877
cbClsExtra field, 21
CB_FINDSTRING, 142
CB_GETDROPPEDSTATE, 142
CB_GETEDITSELECT, 142
cbInput parameter, 763
cbInQue field, 597
CB_INSERTSTRING, 142
cBitspPerPel parameter, 67
cbMaxMessage field, 532
cBmpImages field, 263, 941
cbOutQue field, 597
CB_SETEDITSELECT, 142
CBS_EX_CONSTSTRINGDATA, 142
CB_SHOWDROPDOWN, 142
cbSize fieldapplication launching, 808
bands, 239
device discovery, 674
input methods, 898
menu bars, 263
MenuBar control, 941
RAPI initialization, 750
right-button clicks, 118
scroll bars, 146
SIP changes, 846
SIP state queries, 873
SMS system, 973
cbStruct field, 861
cbStructure field, 620
cBufferSize parameter, 580
cbWndExtra field, 21, 132
cbxPitch field, 999, 1001
cbyPitch field, 999, 1001
cCharacters parameter, 99
CCS_VERT, 238
cDayState field, 288
CDDB_VALIDDBFLAGS, 444
CDDB_VALIDMODTIME, 444
CDDB_VALIDNAME, 444
CDDB_VALIDSORTSPEC, 444
CDDB_VALIDTYPE, 444
CEBLOB data type, 440
CeCheckPassword function, 752
CeClearUserNotification function, 562
CeCloseHandle function, 752
CeCopyFile function, 752
CeCreateDatabase function, 755
CeCreateDatabaseEx function, 445, 447, 755
CeCreateDatabaseEx2 function, 443–447, 452
CeCreateDirectory function, 752
CeCreateFile function, 752
CeCreateProcess function, 752
CeDatabaseSeekEx function, 452
CEDB_ALLOWREALLOC, 453
CEDBASEINFO structure, 756
CEDBASEINFOEX structure, 444, 452, 458
CEDB_AUTOINCREMENT, 447
CEDB_EXNOTIFICATION, 448
CEDB_FIND_DATA structure, 756
CEDB_MAXPROPDATASIZE, 441
CEDB_MAXRECORDSIZE, 441
CEDB_NOCOMPRESS, 444
CEDB_PROPDELETE, 455
CEDB_PROPNOTFOUND, 455
CEDB_SEEK_BEGINNING, 450
CEDB_SEEK_CEOID, 450
CEDB_SEEK_CURRENT, 450
CEDB_SEEK_END, 450
CEDB_SEEK_VALUEFIRSTEQUAL, 450
CEDB_SEEK_VALUEGREATER, 450
CEDB_SEEK_VALUENEXTEQUAL, 450
CEDB_SEEK_VALUESMALLER, 450
CEDB_SORT_CASESENSITIVE, 446
CEDB_SORT_DESCENDING, 446
CEDB_SORT_IGNOREKANATYPE, 446
CEDB_SORT_IGNORENONSPACE, 446
CEDB_SORT_IGNORESYMBOLS, 446
CEDB_SORT_IGNOREWIDTH, 446
CEDB_SORT_NONNULL, 446
CEDB_SORT_UNIQUE, 445
CEDB_SORT_UNKNOWNFIRST, 446
CEDB_SYSTEMDB, 444
CeDeleteDatabaseEx function, 455, 755
CeDeleteFile function, 752
CeDeleteRecord function, 455, 755
CEDEVICE_POWER_STATE, 1043, 1068–1069
CEDIRINFO structure, 458
CeEnumDBVolumes function, 442, 755
CEFILEINFO structure, 457
CeFindAllDatabases function, 755–757
CeFindAllFiles function, 752–755, 762
CeFindClose function, 752
CE_FIND_DATA structure, 754, 762
CeFindFirstDatabase function, 755
CeFindFirstDatabaseEx function, 456, 755
CeFindFirstFile function, 752
CeFindNextDatabase function, 755
CeFindNextDatabaseEx function, 456, 755
CeFindNextFile function, 752
CE_FRAME, 597
CeGetCallerTrust function, 527
CeGetClassname function, 758
CeGetCurrentTrust function, 526
CeGetDesktopDeviceCaps function, 752
CeGetFileAttributes function, 752
CeGetFileSize function, 752
CeGetFileTime function, 752
CeGetLastError function, 751
CeGetOidGetInfo function, 754
CeGetSpecialFolderPath function, 757
CeGetStorageInformation function, 762
CeGetStoreInformation function, 751–752
CeGetSystemInfo function, 752
CeGetSystemMetrics function, 752
CeGetSystemPowerStatusEx function, 752
CeGetTempPath function, 757
CeGetThreadPriority function, 505
CeGetThreadQuantum function, 506
CeGetUserNotification function, 580
CeGetUserNotificationHandles function, 580
CeGetUserNotificationPreferences function, 561, 567
CeGetVersionEx function, 749, 752
CeGetWindow function, 758
CeGetWindowLong function, 758
CeGetWindowText function, 758
CeGlobalMemoryStatus function, 752
CEGUID, 441, 443, 447, 452, 456
CeHandleAppNotifications function, 562
cell phones. See also device-to-device communication; Short Message Service (SMS); Smartphone
dialing, 958
logs, 959–961
Pocket PC, 832–833
celt parameter, 717
CeMountDBVol function, 441, 755
CeMoveFile function, 752
CEM_UPCASEALLWORDS, 294
CENOTIFICATION structure, 448
CE_NOTIFICATION_INFO_HEADER structure, 580
CE_NOTIFICATION_TRIGGER structure, 559, 562, 580
CENOTIFYREQUEST structure, 448
centering text, 43
cEntries parameter, 71
CEOID, 447
CeOidGetInfo function, 444, 755
CeOidGetInfoEx function, 755
CeOidGetInfoEx2 function, 457
CEOIDINFOEX structure, 457
CeOpenDatabase function, 755
CeOpenDatabaseEx function, 755
CeOpenDatabaseEx2 function, 447–449
CE_OVERRUN, 597
CEPROPID structure, 453
CEPROPVAL structure, 451, 455
CeRapiFreeBuffer function, 751, 755–756, 762
CeRapiGetError function, 751
CeRapiInit function, 750, 761, 777
CeRapiInitEx function, 750, 761
CeRapiInvoke function, 752, 762, 766–767, 776
CeRapiUninit function, 750–751, 762
CeReadFile function, 752
CeReadRecordProps function, 755, 757
CeReadRecordPropsEx function, 452–455, 755
CERECORDINFO structure, 458
CeRegCloseKey function, 757
CeRegCreateKeyEx function, 757
CeRegDeleteKey function, 757
CeRegDeleteValue function, 757
CeRegEnumKeyEx function, 757
CeRegEnumValue function, 757
CeRegOpenKeyEx function, 757
CeRegQueryInfoKey function, 757
CeRegQueryValueEx function, 757
CeRegSetValueEx function, 757
CeRemoveDirectory function, 752
CeRunAppAtEvent function, 557, 565
CeRunAppAtTime function, 557
CE_RXPARITY, 597
CeSeekDatabase function, 451, 755
CeSeekDatabaseEx function, 449
CeSetDatabaseInfo function, 755
CeSetDatabaseInfoEx function, 755
CeSetDatabaseInfoEx2 function, 452
CeSetEndOfFile function, 752
CeSetFileAttributes function, 752
CeSetFilePointer function, 752
CeSetFileTime function, 752
CeSetPowerOnEvent function, 1060
CeSetThreadPriority function, 505
CeSetThreadQuantum function, 506
CeSetUserNotification function, 557
CeSetUserNotificationEx function, 557–560, 563–565
CeSHCreateShortcut function, 757
CeSHGetShortcutTarget function, 757
CESVC_CUSTOM_MENU, 778
CeSvcDeleteVal function, 781
CESVC_DEVICES, 778
CESVC_DEVICE_SELECTED, 778
CESVC_DEVICEX, 778
CeSvcEnumProfiles function, 779
CESVC_FILTERS, 778
CeSvcGetBinary function, 781
CeSvcGetDword function, 781
CeSvcGetString function, 780–781
CeSvcOpen function, 777, 782
CeSvcOpenEx function, 779
CESVC_ROOT_MACHINE, 778
CESVC_ROOT_USER, 778
CESVC_SERVICES_COMMON, 778
CESVC_SERVICES_USER, 778
CeSvcSetBinary function, 781
CeSvcSetDword function, 781
CeSvcSetString function, 781–782
CESVC_SYNC, 778
CESVC_SYNC_COMMON, 778
CE_TXFULL, 597
CeUnmountDBVol function, 443, 755
CE_USER_NOTIFICATION structure, 560–561, 580
CeUtil DLL functions, 777–780
CEVT_LPWSTR constant, 446
CeWriteFile function, 752
CeWriteRecordProps function, 455, 755
cFindData parameter, 756
cHandles parameter, 580
channel field, 689
char fields, 639
character sets, fonts, 54
characters. See also SIP (soft input panel)
cell distances, 44
clipping, 54
combined, 98
filenames, 387
Unicode, 4
virtual keys, 93–100, 185
widths, 53
wildcards, 410
CharSet field, 1141
check boxes, 138
check marks, 180
checked boxes or buttons, 138, 215
CheckMenuItem function, 180
CheckPassword function, 752
child controls, 147
child driver power management, 1069
child windows, 129, 878
Choose Color dialog boxes, 315
Chord function, 74
chzAppName, 669
cidt field, 960
CIL (Common Intermediate Language), 1113, 1116
circles, 79
class field, 302
class library, Compact Framework, 1125
class registration, Today screen, 878
class styles, 20
Clear key, 94
Clear to Send (CTS) signal, 597
ClearCommBreak function, 595–596
ClearCommError function, 597
clearing notifications, 562, 565–566
ClearType, 54
CLEARTYPE_COMPAT_QUALITY, 54
CLEARTYPE_QUALITY, 54
client window areas, 26
clipping characters, 54
clipping rectangles, 44
clipping regions, 41
Clone method, 717
Close buttons, 300, 304, 308, 313–314, 834
Close commands, 834
Close function, 1058, 1091
Close method, 1138
CloseHandle function, 391, 514, 519, 521, 586, 692, 1058
CloseMsgQueue function, 534
closesocket function, 645
closingapplications for low memory, 382
files, 391
phone logs, 961
Pocket PC application copies, 843
ports, 586, 1096
processes, 497–498
property sheets, 314
registry keys, 420
sockets, 644
CLR (common language runtime), 1120–1125
clrBack field, 240
clrBk field, 941
CLRBREAK, 596
CLRDTR, 596
clrFore field, 240
CLRIR, 596
CLRRTS, 596
clsid field, 861
CMDBAR_HELP, 220
CMDBAR_OK, 220
CNS_SIGNALLED, 581
CNT_CLASSICTIME, 562
CNT_PERIOD, 559
CNT_TIME, 559
CoCreateInstance function, 714, 784–785
code fragments, Hello World applications, 28–37
code pitching, 1116
CoInitialize function, 784
color backlit displays, 1036–1038
COLOR_BTNFACE, 140
COLOR_BTNSHADOW, 140
COLORREF, 76, 287
colorsbitmaps, 67, 70
brushes, 77
controls, 178
month calendar control, 287
number supported, 44
overview, 4
owner-draw buttons, 140
Today screen items, 879
COLOR_STATIC, 178
COM connection notifications, 783–786
COM in-proc servers, 896
combined characters, 98
combo boxesadding, 219
controls, 141
Smartphone, 950
comma key, 95
command bands controladding, 238–242
configuring, 242–243
creating, 237–238
examples, 246–260
height, 245
hiding, 246
image lists, 237
messages, 245
overview, 236
saving layout, 243–245
command bar controlbitmaps, 211–212
buttons, 211–218
combo boxes, 219
creating, 209
design guidelines, 221
destroying, 221
examples, 221–236
height, 220
hiding, 220
image references, 213–215
initializing, 206
vs. menu bar, 260
menus, 209–210
overview, 209
resizing, 220
resources, 210
tooltips, 219
visibility, 221
CommandBands_AddAdornments function, 243
CommandBands_AddBands function, 238
CommandBands_Create function, 237, 242
CommandBands_GetCommandBar function, 242
CommandBands_GetRestoreInformation function, 243, 260
CommandBands_Height function, 245
COMMANDBANDSRESTOREINFO structure, 244, 259
CommandBands_Show function, 246
CommandBar_AddAdornments function, 220
CommandBar_AddBitmap function, 211, 213, 216
CommandBar_AddButtons function, 213
CommandBar_AddToolTips function, 219
CommandBar_Align_Adornments function, 220
CommandBar_Create function, 209
CommandBar_Destroy function, 221
CommandBar_DrawMenuBar function, 210
CommandBar_GetMenu function, 210
CommandBar_InsertButton function, 214
CommandBar_InsertComboBox function, 219
CommandBar_InsertMenubar function, 209
CommandBar_InsertMenubarEx function, 210
CommandBar_IsVisible function, 221
CommandBar_Show function, 220
command-line interface services, 1098
command-line parameters, 9
CommCrtl.h file, 207
COMMTIMEOUTS structure, 592, 1061
committed virtual pages, 360
common controls. See also menu bar control
CapEdit, 294
date and time picker, 289–291
initializing, 206
list view, 292–294
month calendar, 286–289
overview, 205
programming, 206–208
progress bar, 295
status bar, 295
tab, 295
toolbar, 296
trackbar, 295
tree view, 296
unsupported, 296
up-down, 295
common dialog boxes, 314
Common Intermediate Language (CIL), 1113, 1116
common language runtime (CLR), 1120–1125
COMMPROP structure, 594
communication. See device-to-device communication; interprocess communication; serial communication
Compact Framework. See .NET Compact Framework
comparing Windows CE to standard Windows, 3–7
compile targets, Hello World applications, 11
compile-time versioning, 1030–1031
componentization, 5
compression, 70, 393
COMSTAT structure, 597
concatenation, 968
concurrent versions, Hello World applications, 14
CONNDLG_RO_PATH, 618
connect function, 640, 643
Connect method, 669, 718, 1138
CONNECTDLGSTRUCT structure, 618
connectionless sockets, 644
connection-oriented connections. See stream sockets
connectivity. See also desktop connectivity; networks
datagram, 639, 645
enumeration, 965
Hello World applications, 11
Smartphone connection manager, 961–965
status, 964–965
stream, 639–645
CONNECT_UPDATE_PROFILE, 618–619
CONNMGR_CONNECTIONINFO structure, 962
ConnMgrConnectionStatus function, 963–964
CONNMGR_DESTINATION_INFO structure, 965
ConnMgrEnumDestinations function, 962, 965
ConnMgrEstablishConnection function, 961, 962
CONNMGR_PARAM_DESTNETID, 962
CONNMGR_PRIORITY_LOWBKGND, 962
CONNMGR_PRIORITY_VOICE, 962
ConnMgrRegisterScheduledConnection function, 963
ConnMgrUnregisterScheduledConnection function, 964
consoleapplications, 817–823
drivers, 818, 822–823
Hello World applications, 11
services, 1093, 1098
windows, 818
Console class, 1117–1118
const keyword, 378
Context registry value, 1086, 1095
CONTEXT structure, 555
CONTROL, 953, 955
Control class, 1127, 1134
CONTROL keyword, 185, 301
CONTROL statement, 301
ControlBox property, 1133
control-break processing, 93
CONTROL_C_EXIT, 555
ControlCollection class, 1131
controls. See also dialog boxes; soft keyboards
buttons, 137–140
colors, 178
combo boxes, 141
edit, 140
examples, 147–178
group boxes, 138
order, 950
overview, 5, 135–137
scroll bar, 143–147
Smartphone, 950–956
static, 142
Windows Forms applications, 1130–1131
Controls property, 1131
convertingASCII and Unicode, 639
font point size, 53
thread to fiber, 507
ConvertThreadToFiber function, 507
coordinate transformations, 40
coordinates, text formatting, 44–45
CopyFile function, 409
copying files, 409
cPlanes parameter, 67
cPropID parameter, 455
CPUs, 3, 10, 501
crColor parameter, 76–77
Create method, 1134
CREATE_ALWAYS, 388–389, 442
CreateBitmap function, 67, 70
CreateCompatibleBitmap function, 67
CreateCompatibleDC function, 72
CreateDialog function, 307, 880
CreateDialogIndirect function, 307
CreateDialogIndirectParam function, 307
CreateDialogParam function, 307
CreateDIBPatternBrushPt function, 77, 89
CreateDIBSection function, 69–70
CreateDirectory function, 409
CreateEvent function, 512, 559
CreateFiber function, 508
CreateFile function, 388–390, 405, 586, 690, 1052
CreateFileForMapping function, 406–408
CreateFileMapping function, 529, 546
CreateFontIndirect function, 53, 54
CreateHatchBrush function, 78, 89
CREATE_INVALIDGUID macro, 442
CreateMenu function, 179
CreateMsgQueue function, 531
CreateMutex function, 520
CREATE_NEW, 388, 442
CREATE_NEW_CONSOLE, 495
CreateNewItem method, 850
CreatePen function, 76
CreatePenIndirect function, 76
CreatePopupMenu function, 179
CreateProcess function, 494–497, 516, 806
CreatePropertySheetPage function, 311
CreateSemaphore function, 519
CreateSolidBrushes function, 77
CREATESTRUCT structure, 127
CREATE_SUSPENDED, 495, 503
CREATE_SYSTEMGUID macro, 443, 456
CreateThread function, 376, 502–504, 670
CreateWindow function, 22–23, 130, 136, 177, 286, 845, 956
CreateWindowEx function, 22–23, 130, 136
cRegEnts parameter, 1049
critical memory state, 381–384
critical sections, 521–523
CRITICAL_SECTION structure, 522
cross-platform applicationsoverview, 1028
power managementchanging, 1036–1039
overview, 1033
Power Manager, 1039–1043
querying state, 1033–1035
versionscompile-time, 1030–1031
explicit linking, 1032
overview, 1028–1030
run-time checking, 1032–1033
CSADDR_INFO structure, 675
CS_DBLCLKS, 20, 109
csDuration field, 861
CS_GLOBALCLASS, 20
CS_HREDRAW, 20, 847
CSIDL_APPDATA, 956
CSIDL_BITBUCKET, 801
CSIDL_DESKTOP, 801
CSIDL_DRIVES, 802
CSIDL_FAVORITES, 802
CSIDL_FONTS, 802
CSIDL_PERSONAL, 802
CSIDL_PROGRAMS, 802, 805
CSIDL_RECENT, 802
CSIDL_STARTMENU, 805
CSIDL_STARTUP, 802
CS_NOCLOSE, 20
CS_PARENTDC, 20
CS_VREDRAW, 20, 847
CTL_CODE macro, 1061
CtlID field, 139
CtlType field, 139
Ctrl key, 94, 98, 109
Ctrl+Q, 847
CTS (Clear to Send) signal, 597
currentconsole settings, 822
databases, 456
directory, 385
file positions, 391
driver power state, 1069
memory state, 360–362
mounted database volumes, 442
point functions, 75
services running, 1088
SIP, 872, 874
time displays, 834
time estimates, 973
cursors. See mouse; touch screens
custom button appearance, 139
custom commands, service, 1093
custom controls, 866
custom date and time picker format, 290–291
custom pens, 76
custom Pocket PC input methodscomponents, 896
examples, 905–928
IIMCallback interface, 896–897, 902–905, 928
IIMCallback2 interface, 896, 902–905, 928
IInputMethod interface, 895–901, 907
IInputMethod2 interface, 895–902, 928
overview, 895
threads, 896
custom RAPI functions, 762–768
custom Start menu, 805
custom Today screen itemsdebugging, 881
examples, 881–895
implementing, 876–880
item window, 878–879
options dialog, 880
overview, 875
refreshing, 880
registering, 880
user interaction, 879
custom windows, 1128
CustomItemOptionsDlgProc function, 876, 894
customizing Windows CE, 5
Cut bitmap image, 268
CW_USEDEFAULT, 23, 845
cxIdeal field, 241
cxMinChild field, 240
cxWidth field, 999
cyHeight field, 999
cyMinChild field, 240
cyp field, 877–878, 894