Hi All,
I am really stuk on this and would require some help on this.I am trying to
syn contact change on Pocket PC for Windows Mobile 5.0 with a remote server.
I am using C# and the SNAPI API does not provide the event on contact
change.Also i tried List change event on Outlook Session but it does not
work.Can you guide me on this.

Thanks in advance
Vikas

Re: Event capture on a contact change by Peter

Peter
Fri Oct 20 05:36:54 CDT 2006

In WM5.0 POOM provides a notification mechanism based on Windows Messages.
You must set some custom properties on folders to enable them to raise
events, and then these will be sent to the window handle which you used in
the IPOutlookApp->Logon call. There isn't a direct way to do this from
managed code without P/Invoke and COM interop from .NETCF v2.0 or you can
use this library - www.inthehand.com/WindowsMobile.aspx

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com


"vminda" <vminda@discussions.microsoft.com> wrote in message
news:DD920085-75BC-4B48-93A3-BC75922B8BAA@microsoft.com...
> Hi All,
> I am really stuk on this and would require some help on this.I am trying
> to
> syn contact change on Pocket PC for Windows Mobile 5.0 with a remote
> server.
> I am using C# and the SNAPI API does not provide the event on contact
> change.Also i tried List change event on Outlook Session but it does not
> work.Can you guide me on this.
>
> Thanks in advance
> Vikas



Re: Event capture on a contact change by Ertan

Ertan
Fri Oct 20 08:26:19 CDT 2006

Hi Peter,
I have same problem. in earlier version f wm like wm2003 I have used
"Contact Database" file ypdate time to dedect Contact database has changed.
but in WM5.0 contact database doesn't exist.I just read your suggeston and
I already faced before in msdn

Is there any anothar way to achieve this like a callback mechanism or
controlling a registry value rather than window messages ? because of my
application is a background process and I don't want to create a windows to
only get notifed when contact database has changed.

thanks
Ertan

"Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
news:%23D8ArOD9GHA.2364@TK2MSFTNGP02.phx.gbl...
> In WM5.0 POOM provides a notification mechanism based on Windows Messages.
> You must set some custom properties on folders to enable them to raise
> events, and then these will be sent to the window handle which you used in
> the IPOutlookApp->Logon call. There isn't a direct way to do this from
> managed code without P/Invoke and COM interop from .NETCF v2.0 or you can
> use this library - www.inthehand.com/WindowsMobile.aspx
>
> Peter
>
> --
> Peter Foot
> Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
>
>
> "vminda" <vminda@discussions.microsoft.com> wrote in message
> news:DD920085-75BC-4B48-93A3-BC75922B8BAA@microsoft.com...
>> Hi All,
>> I am really stuk on this and would require some help on this.I am trying
>> to
>> syn contact change on Pocket PC for Windows Mobile 5.0 with a remote
>> server.
>> I am using C# and the SNAPI API does not provide the event on contact
>> change.Also i tried List change event on Outlook Session but it does not
>> work.Can you guide me on this.
>>
>> Thanks in advance
>> Vikas
>
>



Re: Event capture on a contact change by ctacke/>

ctacke/>
Fri Oct 20 09:15:40 CDT 2006

A window is the only way to do it. The window doesn't have to be visible or
even have any size, so there's no problem with using it with a background
process.

-Chris


"Ertan EFE" <ertanefe@hotmail.com> wrote in message
news:e1J3rqE9GHA.3916@TK2MSFTNGP04.phx.gbl...
> Hi Peter,
> I have same problem. in earlier version f wm like wm2003 I have used
> "Contact Database" file ypdate time to dedect Contact database has
> changed. but in WM5.0 contact database doesn't exist.I just read your
> suggeston and I already faced before in msdn
>
> Is there any anothar way to achieve this like a callback mechanism or
> controlling a registry value rather than window messages ? because of my
> application is a background process and I don't want to create a windows
> to only get notifed when contact database has changed.
>
> thanks
> Ertan
>
> "Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
> news:%23D8ArOD9GHA.2364@TK2MSFTNGP02.phx.gbl...
>> In WM5.0 POOM provides a notification mechanism based on Windows
>> Messages. You must set some custom properties on folders to enable them
>> to raise events, and then these will be sent to the window handle which
>> you used in the IPOutlookApp->Logon call. There isn't a direct way to do
>> this from managed code without P/Invoke and COM interop from .NETCF v2.0
>> or you can use this library - www.inthehand.com/WindowsMobile.aspx
>>
>> Peter
>>
>> --
>> Peter Foot
>> Device Application Development MVP
>> www.peterfoot.net | www.inthehand.com
>>
>>
>> "vminda" <vminda@discussions.microsoft.com> wrote in message
>> news:DD920085-75BC-4B48-93A3-BC75922B8BAA@microsoft.com...
>>> Hi All,
>>> I am really stuk on this and would require some help on this.I am trying
>>> to
>>> syn contact change on Pocket PC for Windows Mobile 5.0 with a remote
>>> server.
>>> I am using C# and the SNAPI API does not provide the event on contact
>>> change.Also i tried List change event on Outlook Session but it does not
>>> work.Can you guide me on this.
>>>
>>> Thanks in advance
>>> Vikas
>>
>>
>
>



Re: Event capture on a contact change by Peter

Peter
Fri Oct 20 10:08:02 CDT 2006

The database engine used changed to eDB in WM5.0 - database is now stored in
an edb database volume rather than the object store. The POOM notifications
replace the CEDB notifications you had to use in prior versions - POOM has
been extended to better support a number of operations where you previously
had to open the underlying databases directly which were never documented.

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com


"Ertan EFE" <ertanefe@hotmail.com> wrote in message
news:e1J3rqE9GHA.3916@TK2MSFTNGP04.phx.gbl...
> Hi Peter,
> I have same problem. in earlier version f wm like wm2003 I have used
> "Contact Database" file ypdate time to dedect Contact database has
> changed. but in WM5.0 contact database doesn't exist.I just read your
> suggeston and I already faced before in msdn
>
> Is there any anothar way to achieve this like a callback mechanism or
> controlling a registry value rather than window messages ? because of my
> application is a background process and I don't want to create a windows
> to only get notifed when contact database has changed.
>
> thanks
> Ertan
>
> "Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
> news:%23D8ArOD9GHA.2364@TK2MSFTNGP02.phx.gbl...
>> In WM5.0 POOM provides a notification mechanism based on Windows
>> Messages. You must set some custom properties on folders to enable them
>> to raise events, and then these will be sent to the window handle which
>> you used in the IPOutlookApp->Logon call. There isn't a direct way to do
>> this from managed code without P/Invoke and COM interop from .NETCF v2.0
>> or you can use this library - www.inthehand.com/WindowsMobile.aspx
>>
>> Peter
>>
>> --
>> Peter Foot
>> Device Application Development MVP
>> www.peterfoot.net | www.inthehand.com
>>
>>
>> "vminda" <vminda@discussions.microsoft.com> wrote in message
>> news:DD920085-75BC-4B48-93A3-BC75922B8BAA@microsoft.com...
>>> Hi All,
>>> I am really stuk on this and would require some help on this.I am trying
>>> to
>>> syn contact change on Pocket PC for Windows Mobile 5.0 with a remote
>>> server.
>>> I am using C# and the SNAPI API does not provide the event on contact
>>> change.Also i tried List change event on Outlook Session but it does not
>>> work.Can you guide me on this.
>>>
>>> Thanks in advance
>>> Vikas
>>
>>
>
>