Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 9 Jul 2008 02:18:30 -0700 (PDT),    group: microsoft.public.platformsdk.mapi        back       


IMAPIOfflineMgr   
Hi

I seem to be having a problem with my declaration of IMAPIOfflineMgr.
My current declaration is:

#undef INTERFACE

#define INTERFACE IMAPIOfflineMgr

DECLARE_INTERFACE_(IMAPIOfflineMgr, IMAPIOffline )

{

public:

BEGIN_INTERFACE

STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;

STDMETHOD_(ULONG,AddRef)(THIS) PURE;

STDMETHOD_(ULONG,Release)(THIS) PURE;



STDMETHOD(SetCurrentState)(THIS_

ULONG ulFlags,

ULONG ulMask,

ULONG ulState,

void* pReserved) PURE;

STDMETHOD(GetCapabilities)(THIS_

ULONG *pulCapabilities) PURE;

STDMETHOD(GetCurrentState)(THIS_

ULONG* pulState) PURE;



STDMETHOD(Advise)(THIS_

ULONG ulFlags,

MAPIOFFLINE_ADVISEINFO* pAdviseInfo,

ULONG* pulAdviseToken

) PURE;

STDMETHOD(Unadvise)(THIS_

ULONG ulFlags,

ULONG ulAdviseToken

) PURE;

STDMETHOD(m1)(THIS);

STDMETHOD(m2)(THIS);

STDMETHOD(m3)(THIS);

STDMETHOD(m4)(THIS);

STDMETHOD(m5)(THIS);

STDMETHOD(m6)(THIS);

STDMETHOD(m7)(THIS);

END_INTERFACE

};

I can successfully call the IUnknown methods without any problems. But
calling Advise() results in a calling convtion error occurring (ESP
not being preserved between calls).

I also seem to be unable to find a declaration for this interface
anywhere on the net.

Could anyone tell me what's wrong with my interface declaration?

Also is there anyway of detecting the current Exchange/Outlook
connection state? Like when the connectivity to Exchange has been
lost? There doesn't appear to be any API capable of detecting this.

Thanks

Sharanga Dayananda
date: Wed, 9 Jul 2008 02:18:30 -0700 (PDT)   author:   unknown

Re: IMAPIOfflineMgr   
http://blogs.msdn.com/stephen_griffin/archive/2005/11/04/offline-state-sample.aspx

 wrote in message 
news:9e475fb0-3d4c-4c35-b0e7-e6406dd6c53f@m3g2000hsc.googlegroups.com...
> Hi
>
> I seem to be having a problem with my declaration of IMAPIOfflineMgr.
> My current declaration is:
>
> #undef INTERFACE
>
> #define INTERFACE IMAPIOfflineMgr
>
> DECLARE_INTERFACE_(IMAPIOfflineMgr, IMAPIOffline )
>
> {
>
> public:
>
> BEGIN_INTERFACE
>
> STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
>
> STDMETHOD_(ULONG,AddRef)(THIS) PURE;
>
> STDMETHOD_(ULONG,Release)(THIS) PURE;
>
>
>
> STDMETHOD(SetCurrentState)(THIS_
>
> ULONG ulFlags,
>
> ULONG ulMask,
>
> ULONG ulState,
>
> void* pReserved) PURE;
>
> STDMETHOD(GetCapabilities)(THIS_
>
> ULONG *pulCapabilities) PURE;
>
> STDMETHOD(GetCurrentState)(THIS_
>
> ULONG* pulState) PURE;
>
>
>
> STDMETHOD(Advise)(THIS_
>
> ULONG ulFlags,
>
> MAPIOFFLINE_ADVISEINFO* pAdviseInfo,
>
> ULONG* pulAdviseToken
>
> ) PURE;
>
> STDMETHOD(Unadvise)(THIS_
>
> ULONG ulFlags,
>
> ULONG ulAdviseToken
>
> ) PURE;
>
> STDMETHOD(m1)(THIS);
>
> STDMETHOD(m2)(THIS);
>
> STDMETHOD(m3)(THIS);
>
> STDMETHOD(m4)(THIS);
>
> STDMETHOD(m5)(THIS);
>
> STDMETHOD(m6)(THIS);
>
> STDMETHOD(m7)(THIS);
>
> END_INTERFACE
>
> };
>
> I can successfully call the IUnknown methods without any problems. But
> calling Advise() results in a calling convtion error occurring (ESP
> not being preserved between calls).
>
> I also seem to be unable to find a declaration for this interface
> anywhere on the net.
>
> Could anyone tell me what's wrong with my interface declaration?
>
> Also is there anyway of detecting the current Exchange/Outlook
> connection state? Like when the connectivity to Exchange has been
> lost? There doesn't appear to be any API capable of detecting this.
>
> Thanks
>
> Sharanga Dayananda
date: Wed, 9 Jul 2008 09:13:03 -0400   author:   Stephen Griffin

Re: IMAPIOfflineMgr   
Cheers for that. That works perfectly!

"Stephen Griffin"  wrote in message 
news:%238kGGWc4IHA.2072@TK2MSFTNGP04.phx.gbl...
> http://blogs.msdn.com/stephen_griffin/archive/2005/11/04/offline-state-sample.aspx
>
>  wrote in message 
> news:9e475fb0-3d4c-4c35-b0e7-e6406dd6c53f@m3g2000hsc.googlegroups.com...
>> Hi
>>
>> I seem to be having a problem with my declaration of IMAPIOfflineMgr.
>> My current declaration is:
>>
>> #undef INTERFACE
>>
>> #define INTERFACE IMAPIOfflineMgr
>>
>> DECLARE_INTERFACE_(IMAPIOfflineMgr, IMAPIOffline )
>>
>> {
>>
>> public:
>>
>> BEGIN_INTERFACE
>>
>> STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
>>
>> STDMETHOD_(ULONG,AddRef)(THIS) PURE;
>>
>> STDMETHOD_(ULONG,Release)(THIS) PURE;
>>
>>
>>
>> STDMETHOD(SetCurrentState)(THIS_
>>
>> ULONG ulFlags,
>>
>> ULONG ulMask,
>>
>> ULONG ulState,
>>
>> void* pReserved) PURE;
>>
>> STDMETHOD(GetCapabilities)(THIS_
>>
>> ULONG *pulCapabilities) PURE;
>>
>> STDMETHOD(GetCurrentState)(THIS_
>>
>> ULONG* pulState) PURE;
>>
>>
>>
>> STDMETHOD(Advise)(THIS_
>>
>> ULONG ulFlags,
>>
>> MAPIOFFLINE_ADVISEINFO* pAdviseInfo,
>>
>> ULONG* pulAdviseToken
>>
>> ) PURE;
>>
>> STDMETHOD(Unadvise)(THIS_
>>
>> ULONG ulFlags,
>>
>> ULONG ulAdviseToken
>>
>> ) PURE;
>>
>> STDMETHOD(m1)(THIS);
>>
>> STDMETHOD(m2)(THIS);
>>
>> STDMETHOD(m3)(THIS);
>>
>> STDMETHOD(m4)(THIS);
>>
>> STDMETHOD(m5)(THIS);
>>
>> STDMETHOD(m6)(THIS);
>>
>> STDMETHOD(m7)(THIS);
>>
>> END_INTERFACE
>>
>> };
>>
>> I can successfully call the IUnknown methods without any problems. But
>> calling Advise() results in a calling convtion error occurring (ESP
>> not being preserved between calls).
>>
>> I also seem to be unable to find a declaration for this interface
>> anywhere on the net.
>>
>> Could anyone tell me what's wrong with my interface declaration?
>>
>> Also is there anyway of detecting the current Exchange/Outlook
>> connection state? Like when the connectivity to Exchange has been
>> lost? There doesn't appear to be any API capable of detecting this.
>>
>> Thanks
>>
>> Sharanga Dayananda
>
>
date: Wed, 9 Jul 2008 15:07:46 +0100   author:   Sharanga Dayananda

Re: IMAPIOfflineMgr   
I realise this is most probably not possible, but is there any way to detect 
when Outlook's having trouble connecting to Exchange? Like the status row 
being set to something abnormal.


"Sharanga Dayananda"  wrote in message 
news:OiUqo0c4IHA.5112@TK2MSFTNGP05.phx.gbl...
> Cheers for that. That works perfectly!
>
> "Stephen Griffin"  wrote in message 
> news:%238kGGWc4IHA.2072@TK2MSFTNGP04.phx.gbl...
>> http://blogs.msdn.com/stephen_griffin/archive/2005/11/04/offline-state-sample.aspx
>>
>>  wrote in message 
>> news:9e475fb0-3d4c-4c35-b0e7-e6406dd6c53f@m3g2000hsc.googlegroups.com...
>>> Hi
>>>
>>> I seem to be having a problem with my declaration of IMAPIOfflineMgr.
>>> My current declaration is:
>>>
>>> #undef INTERFACE
>>>
>>> #define INTERFACE IMAPIOfflineMgr
>>>
>>> DECLARE_INTERFACE_(IMAPIOfflineMgr, IMAPIOffline )
>>>
>>> {
>>>
>>> public:
>>>
>>> BEGIN_INTERFACE
>>>
>>> STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
>>>
>>> STDMETHOD_(ULONG,AddRef)(THIS) PURE;
>>>
>>> STDMETHOD_(ULONG,Release)(THIS) PURE;
>>>
>>>
>>>
>>> STDMETHOD(SetCurrentState)(THIS_
>>>
>>> ULONG ulFlags,
>>>
>>> ULONG ulMask,
>>>
>>> ULONG ulState,
>>>
>>> void* pReserved) PURE;
>>>
>>> STDMETHOD(GetCapabilities)(THIS_
>>>
>>> ULONG *pulCapabilities) PURE;
>>>
>>> STDMETHOD(GetCurrentState)(THIS_
>>>
>>> ULONG* pulState) PURE;
>>>
>>>
>>>
>>> STDMETHOD(Advise)(THIS_
>>>
>>> ULONG ulFlags,
>>>
>>> MAPIOFFLINE_ADVISEINFO* pAdviseInfo,
>>>
>>> ULONG* pulAdviseToken
>>>
>>> ) PURE;
>>>
>>> STDMETHOD(Unadvise)(THIS_
>>>
>>> ULONG ulFlags,
>>>
>>> ULONG ulAdviseToken
>>>
>>> ) PURE;
>>>
>>> STDMETHOD(m1)(THIS);
>>>
>>> STDMETHOD(m2)(THIS);
>>>
>>> STDMETHOD(m3)(THIS);
>>>
>>> STDMETHOD(m4)(THIS);
>>>
>>> STDMETHOD(m5)(THIS);
>>>
>>> STDMETHOD(m6)(THIS);
>>>
>>> STDMETHOD(m7)(THIS);
>>>
>>> END_INTERFACE
>>>
>>> };
>>>
>>> I can successfully call the IUnknown methods without any problems. But
>>> calling Advise() results in a calling convtion error occurring (ESP
>>> not being preserved between calls).
>>>
>>> I also seem to be unable to find a declaration for this interface
>>> anywhere on the net.
>>>
>>> Could anyone tell me what's wrong with my interface declaration?
>>>
>>> Also is there anyway of detecting the current Exchange/Outlook
>>> connection state? Like when the connectivity to Exchange has been
>>> lost? There doesn't appear to be any API capable of detecting this.
>>>
>>> Thanks
>>>
>>> Sharanga Dayananda
>>
>>
>
>
date: Wed, 9 Jul 2008 16:29:06 +0100   author:   Sharanga Dayananda

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us