Chsfld.cli: MAPI Container Hierarchy Viewer Sample

Click to open or copy the files for the Chsfld.cli sample.

Click to open or copy the common files (required).

This sample illustrates implementing a MAPI container hierarchy viewer. It uses standard Win32 Tree View Control to display the folder hierarchy of a message store and to allow a user to choose a particular folder. Chsfld32.dll exports a single entry point, HrPickFolder. See Chsfld.h, located in Common directory, for the exact description of arguments and return values.

Building SDK Samples

This sample uses the following keywords:

addoneitem; addref; align4; assert; assertsz; catch; cchsflddlg; chsflddlgproc; compareentryids; copymemory; createfolder; ctistack; ctvnode; ctvnodefactory; debugtrace; debugtracearg; debugtraceresult; debugtracesc; delete; dialogboxparam; edit_gettextlength; enablewindow; enddialog; failed; freeprows; get_wm_command_cmd; get_wm_command_id; getcb; getdlgitem; gethierarchytable; getlevel; getmodulehandle; getmsgstorestable; getname; getwindowlong; getwindowtext; hinst; hr_failed; hr_succeeded; hrcreatenode; hrexpand; hrgetfolder; hrgetnewname; hrgetoneprop; hrinittree; hrinsertroot; hrloadroots; hrnewfolder; hropenfolder; hropenmdb; hrpick; hrpickfolder; hrqueryallrows; hrrestoretreestate; hrsavetreestate; hrsavetreestateex; hrsetlasterror; htifindchild; hwdialog; hwtreectl; imagelist_addicon; imagelist_create; imagelist_destroy; imagelist_getimagecount; indallstores; indclsdfld; indopenfld; indrootfld; initcommoncontrols; insert; isbadwriteptr; isempty; istreeroot; iswindow; loadicon; lstrcpy; lstrlen; makeintresource; mapiallocatebuffer; mapiallocatemore; mapifreebuffer; messagebox; newnamedlgproc; openentry; openmsgstore; pickdlg; pop; push; release; resultfromscode; session; seterror; setfocus; setfolder; sethandle; setkidsloaded; setwindowlong; setwindowtext; showerror; sizedsproptagarray; succeeded; switch; treeview_expand; treeview_getchild; treeview_getitem; treeview_getnextsibling; treeview_getroot; treeview_getselection; treeview_insertitem; treeview_setimagelist; treeview_setitem; ulrelease; zeromemor