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: Tue, 30 Oct 2007 15:42:39 +0100,    group: microsoft.public.platformsdk.mapi        back       


spoolerlogon   
Hi,

How i can call the IMSProvider::spoolerlogon with a client application? when 
i call OpenMsgStore this functions calls the IMSProvider::Logon(...)  but i 
will the call  IMSProvider::SpoolerLogon(...).

What I doing wrong?

the code:
hr = MAPIInitialize(NULL);

hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);

hr = pSession->GetMsgStoresTable(0, &pTable);

hr = pTable->QueryRows(1, 0, &pSRowSet);

hr = pSession->OpenMsgStore(0,
               pSRowSet->aRow[0].lpProps[0].Value.bin.cb,
               (ENTRYID *)pSRowSet->aRow[0].lpProps[0].Value.bin.lpb,
               NULL,
               0,
               &pStore);

Regards,

Michel
date: Tue, 30 Oct 2007 15:42:39 +0100   author:   Michel de Ron

Re: spoolerlogon   
I don't think you can. *Why* do you need to do that?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

"Michel de Ron"  wrote in message 
news:OvwHkNwGIHA.1324@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> How i can call the IMSProvider::spoolerlogon with a client application? 
> when i call OpenMsgStore this functions calls the IMSProvider::Logon(...) 
> but i will the call  IMSProvider::SpoolerLogon(...).
>
> What I doing wrong?
>
> the code:
> hr = MAPIInitialize(NULL);
>
> hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);
>
> hr = pSession->GetMsgStoresTable(0, &pTable);
>
> hr = pTable->QueryRows(1, 0, &pSRowSet);
>
> hr = pSession->OpenMsgStore(0,
>               pSRowSet->aRow[0].lpProps[0].Value.bin.cb,
>               (ENTRYID *)pSRowSet->aRow[0].lpProps[0].Value.bin.lpb,
>               NULL,
>               0,
>               &pStore);
>
> Regards,
>
> Michel
>
date: Tue, 30 Oct 2007 10:28:13 -0700   author:   Dmitry Streblechenko

Re: spoolerlogon   
To sent email without outlook and have some control with the spooler 
functions like  IMsgStore::SetLockState and  FinishedMsg eg.
The MAPI documention say that it's possible but i can't find how. Do I 
missing a flag?

Michel

"Dmitry Streblechenko"  schreef in bericht 
news:uFPrCoxGIHA.1316@TK2MSFTNGP02.phx.gbl...
>I don't think you can. *Why* do you need to do that?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
>
> "Michel de Ron"  wrote in message 
> news:OvwHkNwGIHA.1324@TK2MSFTNGP06.phx.gbl...
>> Hi,
>>
>> How i can call the IMSProvider::spoolerlogon with a client application? 
>> when i call OpenMsgStore this functions calls the IMSProvider::Logon(...) 
>> but i will the call  IMSProvider::SpoolerLogon(...).
>>
>> What I doing wrong?
>>
>> the code:
>> hr = MAPIInitialize(NULL);
>>
>> hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);
>>
>> hr = pSession->GetMsgStoresTable(0, &pTable);
>>
>> hr = pTable->QueryRows(1, 0, &pSRowSet);
>>
>> hr = pSession->OpenMsgStore(0,
>>               pSRowSet->aRow[0].lpProps[0].Value.bin.cb,
>>               (ENTRYID *)pSRowSet->aRow[0].lpProps[0].Value.bin.lpb,
>>               NULL,
>>               0,
>>               &pStore);
>>
>> Regards,
>>
>> Michel
>>
>
>
date: Tue, 30 Oct 2007 23:37:56 +0100   author:   Michel de Ron

Re: spoolerlogon   
The spooler (mapisp32.exe) was removed in Outlook 2002.
The only way to flush teh pending messages (unless you are using a tightly 
coupled store/transport, e.g. Exchange in the online mode) is to either 
simulate a click on teh Send/Receive button in Outlook or use the 
Namespace.SyncObjects collection to start a sync.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

"Michel de Ron"  wrote in message 
news:OaS3IW0GIHA.1164@TK2MSFTNGP02.phx.gbl...
> To sent email without outlook and have some control with the spooler 
> functions like  IMsgStore::SetLockState and  FinishedMsg eg.
> The MAPI documention say that it's possible but i can't find how. Do I 
> missing a flag?
>
> Michel
>
> "Dmitry Streblechenko"  schreef in bericht 
> news:uFPrCoxGIHA.1316@TK2MSFTNGP02.phx.gbl...
>>I don't think you can. *Why* do you need to do that?
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy  - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Michel de Ron"  wrote in message 
>> news:OvwHkNwGIHA.1324@TK2MSFTNGP06.phx.gbl...
>>> Hi,
>>>
>>> How i can call the IMSProvider::spoolerlogon with a client application? 
>>> when i call OpenMsgStore this functions calls the 
>>> IMSProvider::Logon(...) but i will the call 
>>> IMSProvider::SpoolerLogon(...).
>>>
>>> What I doing wrong?
>>>
>>> the code:
>>> hr = MAPIInitialize(NULL);
>>>
>>> hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);
>>>
>>> hr = pSession->GetMsgStoresTable(0, &pTable);
>>>
>>> hr = pTable->QueryRows(1, 0, &pSRowSet);
>>>
>>> hr = pSession->OpenMsgStore(0,
>>>               pSRowSet->aRow[0].lpProps[0].Value.bin.cb,
>>>               (ENTRYID *)pSRowSet->aRow[0].lpProps[0].Value.bin.lpb,
>>>               NULL,
>>>               0,
>>>               &pStore);
>>>
>>> Regards,
>>>
>>> Michel
>>>
>>
>>
>
>
date: Tue, 30 Oct 2007 16:43:40 -0700   author:   Dmitry Streblechenko

Re: spoolerlogon   
I know but outlook can also do a spoolerlogon so it is possible todo. I 
won't run outlook and i use native mapi (c++). So
calling namespace.SyncObjects isn't a option.

When I do a login, I never got an object IMSProvider to call the 
Spoolerlogon. This object is handled by MAPI.
the documentation: "Loading Message Store Providers"
http://msdn2.microsoft.com/en-us/library/ms529130.aspx

the documentation says: "9. IMSProvider::SpoolerLogon returns the same 
IMSLogon object and IMsgStore object from step 5."
But i think it isn't thrue, You get a object IMsgStore with other possible 
functions like SetLockState, FinishedMsg, NotifyNewMail and 
GetOutgoingQueue. This isn't posible with the normal logon.

The documentation isn't complet or I do miss something, The MSDN says it is 
possible but not how you can do it.
I think it isn't strange to sent email with another mapiclient then outlook.

So hopefully know someone this,

Michel

"Dmitry Streblechenko"  schreef in bericht 
news:OWNU250GIHA.5228@TK2MSFTNGP05.phx.gbl...
> The spooler (mapisp32.exe) was removed in Outlook 2002.
> The only way to flush teh pending messages (unless you are using a tightly 
> coupled store/transport, e.g. Exchange in the online mode) is to either 
> simulate a click on teh Send/Receive button in Outlook or use the 
> Namespace.SyncObjects collection to start a sync.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
>
> "Michel de Ron"  wrote in message 
> news:OaS3IW0GIHA.1164@TK2MSFTNGP02.phx.gbl...
>> To sent email without outlook and have some control with the spooler 
>> functions like  IMsgStore::SetLockState and  FinishedMsg eg.
>> The MAPI documention say that it's possible but i can't find how. Do I 
>> missing a flag?
>>
>> Michel
>>
>> "Dmitry Streblechenko"  schreef in bericht 
>> news:uFPrCoxGIHA.1316@TK2MSFTNGP02.phx.gbl...
>>>I don't think you can. *Why* do you need to do that?
>>>
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy  - Outlook, CDO
>>> and MAPI Developer Tool
>>>
>>> "Michel de Ron"  wrote in message 
>>> news:OvwHkNwGIHA.1324@TK2MSFTNGP06.phx.gbl...
>>>> Hi,
>>>>
>>>> How i can call the IMSProvider::spoolerlogon with a client application? 
>>>> when i call OpenMsgStore this functions calls the 
>>>> IMSProvider::Logon(...) but i will the call 
>>>> IMSProvider::SpoolerLogon(...).
>>>>
>>>> What I doing wrong?
>>>>
>>>> the code:
>>>> hr = MAPIInitialize(NULL);
>>>>
>>>> hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);
>>>>
>>>> hr = pSession->GetMsgStoresTable(0, &pTable);
>>>>
>>>> hr = pTable->QueryRows(1, 0, &pSRowSet);
>>>>
>>>> hr = pSession->OpenMsgStore(0,
>>>>               pSRowSet->aRow[0].lpProps[0].Value.bin.cb,
>>>>               (ENTRYID *)pSRowSet->aRow[0].lpProps[0].Value.bin.lpb,
>>>>               NULL,
>>>>               0,
>>>>               &pStore);
>>>>
>>>> Regards,
>>>>
>>>> Michel
>>>>
>>>
>>>
>>
>>
>
>
date: Wed, 31 Oct 2007 10:15:35 +0100   author:   Michel de Ron

Re: spoolerlogon   
Again, Outlook does not use a spooler. If you are not using OOM, there is no 
way to flush the outgoing queue.
More than that, POP3/SMTP transport provider is no longer MAPI based.
Most MAPI docs were written long time ago. While teh spooler removal won't 
cause your code to crush (all metheods are stil there), nothign will happen.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

"Michel de Ron"  wrote in message 
news:efy4b65GIHA.6044@TK2MSFTNGP04.phx.gbl...
>I know but outlook can also do a spoolerlogon so it is possible todo. I 
>won't run outlook and i use native mapi (c++). So
> calling namespace.SyncObjects isn't a option.
>
> When I do a login, I never got an object IMSProvider to call the 
> Spoolerlogon. This object is handled by MAPI.
> the documentation: "Loading Message Store Providers"
> http://msdn2.microsoft.com/en-us/library/ms529130.aspx
>
> the documentation says: "9. IMSProvider::SpoolerLogon returns the same 
> IMSLogon object and IMsgStore object from step 5."
> But i think it isn't thrue, You get a object IMsgStore with other possible 
> functions like SetLockState, FinishedMsg, NotifyNewMail and 
> GetOutgoingQueue. This isn't posible with the normal logon.
>
> The documentation isn't complet or I do miss something, The MSDN says it 
> is possible but not how you can do it.
> I think it isn't strange to sent email with another mapiclient then 
> outlook.
>
> So hopefully know someone this,
>
> Michel
>
> "Dmitry Streblechenko"  schreef in bericht 
> news:OWNU250GIHA.5228@TK2MSFTNGP05.phx.gbl...
>> The spooler (mapisp32.exe) was removed in Outlook 2002.
>> The only way to flush teh pending messages (unless you are using a 
>> tightly coupled store/transport, e.g. Exchange in the online mode) is to 
>> either simulate a click on teh Send/Receive button in Outlook or use the 
>> Namespace.SyncObjects collection to start a sync.
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy  - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Michel de Ron"  wrote in message 
>> news:OaS3IW0GIHA.1164@TK2MSFTNGP02.phx.gbl...
>>> To sent email without outlook and have some control with the spooler 
>>> functions like  IMsgStore::SetLockState and  FinishedMsg eg.
>>> The MAPI documention say that it's possible but i can't find how. Do I 
>>> missing a flag?
>>>
>>> Michel
>>>
>>> "Dmitry Streblechenko"  schreef in bericht 
>>> news:uFPrCoxGIHA.1316@TK2MSFTNGP02.phx.gbl...
>>>>I don't think you can. *Why* do you need to do that?
>>>>
>>>> Dmitry Streblechenko (MVP)
>>>> http://www.dimastr.com/
>>>> OutlookSpy  - Outlook, CDO
>>>> and MAPI Developer Tool
>>>>
>>>> "Michel de Ron"  wrote in message 
>>>> news:OvwHkNwGIHA.1324@TK2MSFTNGP06.phx.gbl...
>>>>> Hi,
>>>>>
>>>>> How i can call the IMSProvider::spoolerlogon with a client 
>>>>> application? when i call OpenMsgStore this functions calls the 
>>>>> IMSProvider::Logon(...) but i will the call 
>>>>> IMSProvider::SpoolerLogon(...).
>>>>>
>>>>> What I doing wrong?
>>>>>
>>>>> the code:
>>>>> hr = MAPIInitialize(NULL);
>>>>>
>>>>> hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);
>>>>>
>>>>> hr = pSession->GetMsgStoresTable(0, &pTable);
>>>>>
>>>>> hr = pTable->QueryRows(1, 0, &pSRowSet);
>>>>>
>>>>> hr = pSession->OpenMsgStore(0,
>>>>>               pSRowSet->aRow[0].lpProps[0].Value.bin.cb,
>>>>>               (ENTRYID *)pSRowSet->aRow[0].lpProps[0].Value.bin.lpb,
>>>>>               NULL,
>>>>>               0,
>>>>>               &pStore);
>>>>>
>>>>> Regards,
>>>>>
>>>>> Michel
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
date: Wed, 31 Oct 2007 13:25:26 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


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