Chris De Herrera's Windows CE Website

About
Discuss.Pocket PC FAQ Forum
Add Pocket PC FAQ to your Favorites
RSS    RSS Feeds
Wiki    Lost?
Subscribe    Print

Developer

Miscellaneous
Table of Contents
Mobile Format

[an error occurred while processing this directive]


 
Pocket PC Magazine Best Site

Website Awards
Website Updates

By Chris De Herrera 
Copyright 1998-2007
 All Rights Reserved
A member of the Talksites Family of Websites

Windows and Windows CE are trademarks of Microsoft
Corporation
and are used
under license from owner.
CEWindows.NET is not
associated with Microsoft 
Corporation.

All Trademarks are owned
by their respective companies.

POOM
By Terence "Dr. CE" Goggin
Copyright 2000, 2001 Terence Goggin
 Version 1.00  Revised 4/20/01

[an error occurred while processing this directive]

Topics

1. What is POOM?
2. Where can I find some POOM samples?
3. How can my app be notified when Pocket Outlook data has been changed?
4. Do I need to install the pimstore.dll file when installing my POOM-dependent application?
5. Can I use POOM to send email or work with the Inbox?



1. What is POOM?
POOM stands for "Pocket Outlook Object Model".

It is a COM dll and several COM-interfaces for connecting
to and manipulating data used by Pocket Outlook. This
includes Contacts, Tasks, and Appointments.

POOM can not be used to manipulate the Inbox. (For more
on the Inbox, see the Mail API FAQ.)



2. Where can I find some POOM samples?


For more information: http://www.conduits.com/ce/dev/poomsamp.htm

3. How can my app be notified when Pocket Outlook data has been changed?
Officially, through POOM at least, there is no way to do this.

However, there is an approach which I've never tried (never had to, either)
which might just work... Be warned, however that < b> this is a hack!< /b>

If you are willing to monkey around "under the covers", you'll notice
that CeOpenDatabase()/-Ex() both allow for the caller to pass in
an HWND to receive notifications whenever contents of the database
change.

< b> < i> Theoretically, < /b> < /i>   it should be possible to, say, keep the
Contacts database open in your app and have it quietly running in
the background... when the user changes some part of the Contacts
database, your app can magically "come to life" and report the change.

Again, this is just a hack, and therefore, even if it did work, it might very
well be entirely unreliable. On the other hand, it's the first and best way
to do this that occurs to me.





4. Do I need to install the pimstore.dll file when installing my POOM-dependent application?
Ideally, you should configure the pimstore.dll file to be copied
**only** if it's not already on the device.

I have noticed some issues arising out of writing over the pimstore.dll
that ships with most PocketPCs, even though the date stamp of the
files on the device preceeded those of the ones in my install.



5. Can I use POOM to send email or work with the Inbox?
No. That's not something POOM offers.

If you want to work with the Inbox, there's a MsgStore API just for that.



[an error occurred while processing this directive]

Terence Goggin's DoctorCE.com site - Custom Windows CE development/consulting services.

Return to Chris De Herrera's Windows CE Website


Questions? Comments? Suggestions? Email Terence "Dr. CE" Goggin.