|
Can't register for PIM notifications in WM 5 OS: msg#00027windows.ce.devel
I'm having some trouble getting the WM 5 OS to notify my application when a task has been created, altered, or deleted. From the limited SDK documentation, it explains that in need to register for such notifications which I did using the code below (following the provided sample code). However, when I make the SetProps() method call I get hr = E_ACCESSDENIED. Now, I seem to be able to other operations with this coding (such as using the GetProps() to retrieve category labels), but I just can't seem to use SetProps() to register for notifications. Can anyone help with some advice? Thanks, ppcinfo ------------------------------------------ HRESULT hr = E_FAIL; IFolder *pFolder = NULL; IItem *pFolderIItem = NULL; CEPROPVAL propval = {0}; if ( WM5_InitPoom(g_hWnd) == FALSE ) return (FALSE); hr = g_WM5polApp->GetDefaultFolder(olFolderTasks,&pFolder); if (FAILED(hr) || NULL == pFolder) { WM5_ShutdownPoom(); return FALSE; } // Get IItem from IFolder hr = pFolder->QueryInterface(IID_IItem,(LPVOID*)&pFolderIItem); if(FAILED(hr) || NULL == pFolderIItem) { pFolder->Release(); pFolder = NULL; WM5_ShutdownPoom(); return FALSE; } propval.propid = PIMPR_FOLDERNOTIFICATIONS; propval.val.ulVal = PIMFOLDERNOTIFICATION_ALL; hr = pFolderIItem->SetProps(0,1,&propval); //- SetProps() always returns E_ACCESSDENIED ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Mailing list addresses: Post message: windowsce-dev@xxxxxxxxxxxxxxx Unsubscribe: windowsce-dev-unsubscribe@xxxxxxxxxxxxxxx List owner: windowsce-dev-owner@xxxxxxxxxxxxxxx Website: http://groups.yahoo.com/group/windowsce-dev Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/windowsce-dev/ <*> To unsubscribe from this group, send an email to: windowsce-dev-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Bug in GetSystemMetrics(SM_CYMENU) for WM 5.0 OS?: 00027, pocketpcinfo |
|---|---|
| Next by Date: | 501 Website Secrets Unleash - Wiley and Sons: 00027, zoma |
| Previous by Thread: | RE: Re: Bug in GetSystemMetrics(SM_CYMENU) for WM 5.0 OS?i: 00027, Freeman Ng |
| Next by Thread: | Re: Can't register for PIM notifications in WM 5 OS: 00027, pocketpcinfo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |