RE: Errors

new topic     » goto parent     » topic index » view thread      » older message » newer message

Found out the answer to the first question:

>From mapi.h
/*# define MAPI_USE_DEFAULT     0x00000040     Use default profile in 
logon */

but being commented pretty much deprecates it as a valid flag.

Valid flags are:
flFlags 
[in] Bitmask of option flags. The following flags can be set: 
MAPI_FORCE_DOWNLOAD
#define MAPI_FORCE_DOWNLOAD     0x00001000  
An attempt should be made to download all of the user's messages before 
returning. If the MAPI_FORCE_DOWNLOAD flag is not set, messages can be 
downloaded in the background after the function call returns.
 
MAPI_NEW_SESSION
#define MAPI_NEW_SESSION        0x00000002  
An attempt should be made to create a new session rather than acquire 
the environment's shared session. If the MAPI_NEW_SESSION flag is not 
set, MAPILogon uses an existing shared session. 

MAPI_LOGON_UI 
#define MAPI_LOGON_UI           0x00000001  
A logon dialog box should be displayed to prompt the user for logon 
information. If the user needs to provide a password and profile name to 
enable a successful logon, MAPI_LOGON_UI must be set. 

MAPI_PASSWORD_UI 
#define MAPI_PASSWORD_UI        0x00020000
MAPILogon should only prompt for a password and not allow the user to 
change the profile name. Either MAPI_PASSWORD_UI or MAPI_LOGON_UI should 
not be set, since the intent is to select between two different dialog 
boxes for logon. 

Hope this helps...
-- Brian

Brian Broker wrote:
> Hi Vern,
> 
> That does not appear to be a valid return value for that function.  But 
> then again, MAPI_USE_DEFAULT doesn't appear to be a valid value for 
> flFlags.  What is the value of MAPI_USE_DEFAULT?  How did you define 
> MAPILogon?
> 
> -- Brian
> 
> 
> Vern wrote:
> > Hi, I recently upgraded to WinXP Pro and am having a little trouble with 
> > 
> > a
> > script I wrote as an Apache cgi script.  The script call MAPI functions 
> > and
> > uses Outlook Express default user to relay form input ... this script 
> > work
> > well under Win98.  Now I get an error number -2147467259
> > when the
> > 
> > error = c_func(MAPILogon, {0, 0, 0, MAPI_USE_DEFAULT, 0, session}) call 
> > is
> > made
> > 
> > if error then
> >  printf(1,"Error sending Message %d",error)
> >   abort(error)
> > end if
> > 
> > Any ideas what this error number represents??
> > 
> > Thanks
> > Vern
> > 
> >

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu