Mapi32 and Vista

This is a discussion on Mapi32 and Vista within the Clipper forums in Programming Languages category; In my application use MAPI32 functions to send mail. On windows Vista if I run the application normally works, if I start the program as administrator the mail is not sent. Any idea? Thanks Danilo...

Go Back   Application Development Forum > Programming Languages > Clipper

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-06-2008, 03:11 AM
Danilo Giuliani
Guest
 
Default Mapi32 and Vista

In my application use MAPI32 functions to send mail.
On windows Vista if I run the application normally works, if I start the
program as administrator the mail is not sent.
Any idea?

Thanks

Danilo

Reply With Quote
  #2  
Old 09-06-2008, 04:21 AM
John Martens
Guest
 
Default Re: Mapi32 and Vista

Danilo,

Does the admin account have a valid mail-client installed ?

John


Danilo Giuliani schreef:
> In my application use MAPI32 functions to send mail.
> On windows Vista if I run the application normally works, if I start the
> program as administrator the mail is not sent.
> Any idea?
>
> Thanks
>
> Danilo

Reply With Quote
  #3  
Old 09-06-2008, 08:14 AM
Massimo Bighelli
Guest
 
Default Re: Mapi32 and Vista


Danilo,

If I recon well, different users have access to different identities sets

Massimo Bighelli



"Danilo Giuliani" <softdevo@tiscali.it> ha scritto nel messaggio
news:48c22d3a$0$11367$5fc30a8@news.tiscali.it...
> In my application use MAPI32 functions to send mail.
> On windows Vista if I run the application normally works, if I start the
> program as administrator the mail is not sent.
> Any idea?
>
> Thanks
>
> Danilo


Reply With Quote
  #4  
Old 09-06-2008, 10:56 AM
Danilo Giuliani
Guest
 
Default Re: Mapi32 and Vista


> If I recon well, different users have access to different identities sets
>


Yes but on the PC I have only one User "Danilo" that is the Administrator.

Si ma sul PC ho un solo utente Danilo che č l'amministratore.

Danilo

>
>
>
> "Danilo Giuliani" <softdevo@tiscali.it> ha scritto nel messaggio
> news:48c22d3a$0$11367$5fc30a8@news.tiscali.it...
>> In my application use MAPI32 functions to send mail.
>> On windows Vista if I run the application normally works, if I start the
>> program as administrator the mail is not sent.
>> Any idea?
>>
>> Thanks
>>
>> Danilo

>


Reply With Quote
  #5  
Old 09-06-2008, 12:10 PM
Michael Rubinstein
Guest
 
Default Re: Mapi32 and Vista

Danilo, I would try 'Run as administrator'. Ander Vista programs do not
inherit logged user rights. If running 'as administrator' works, then you
can change the manifest (if you supply one) to elevate your application to
administrative level. I never done this in VO, I do it for some of my .NET
applications.

Michael

"Danilo Giuliani" <softdevo@tiscali.it> wrote in message
news:48c29a33$0$11368$5fc30a8@news.tiscali.it...
>
>> If I recon well, different users have access to different identities sets
>>

>
> Yes but on the PC I have only one User "Danilo" that is the Administrator.
>
> Si ma sul PC ho un solo utente Danilo che č l'amministratore.
>
> Danilo
>
>>
>>
>>
>> "Danilo Giuliani" <softdevo@tiscali.it> ha scritto nel messaggio
>> news:48c22d3a$0$11367$5fc30a8@news.tiscali.it...
>>> In my application use MAPI32 functions to send mail.
>>> On windows Vista if I run the application normally works, if I start the
>>> program as administrator the mail is not sent.
>>> Any idea?
>>>
>>> Thanks
>>>
>>> Danilo

>>

>


Reply With Quote
  #6  
Old 09-07-2008, 02:38 AM
Danilo Giuliani
Guest
 
Default Re: Mapi32 and Vista


"Michael Rubinstein" <mSPAM_REMOVE@mŽubinstein.com> ha scritto nel messaggio
news:6ifob1FqhgscU1@mid.individual.net...
> Danilo, I would try 'Run as administrator'. Ander Vista programs do not
> inherit logged user rights. If running 'as administrator' works, then you
> can change the manifest (if you supply one) to elevate your application to
> administrative level. I never done this in VO, I do it for some of my .NET
> applications.
>
> Michael
>


At a point in my application I have to synchronize the time the internal
clock, and therefore my application must have administrator rights.

In. Net as you do it ? (to elevate your application to administrative level)

Thanks

Danilo

Reply With Quote
  #7  
Old 09-07-2008, 03:01 AM
Geoff Schaller
Guest
 
Default Re: Mapi32 and Vista

Danilo.

This is not correct. In Vista and XP you simply set the settings to the
correct time server (either your domain controller or for a stand alone
PC, the ISP's time server) and it happens for you.

You certainly should not be doing this from your application. It is a
Windows level thing and must be independent from applications. Look up
Net Time in google.

Geoff


>
> At a point in my application I have to synchronize the time the internal
> clock, and therefore my application must have administrator rights.
>
> In. Net as you do it ? (to elevate your application to administrative level)
>
> Thanks
>
> Danilo


Reply With Quote
  #8  
Old 09-07-2008, 07:53 AM
Ginny Caughey
Guest
 
Default Re: Mapi32 and Vista

Not always, Geoff. I have an app that syncs data between different servers,
and it also syncs the system times. This is necessary because the time
servers are not accurate enough.

--

Ginny Caughey
www.wasteworks.com



"Geoff Schaller" <geoffx@softxwareobjectives.com.au> wrote in message
news:48c37c1f$1@dnews.tpgi.com.au...
> Danilo.
>
> This is not correct. In Vista and XP you simply set the settings to the
> correct time server (either your domain controller or for a stand alone
> PC, the ISP's time server) and it happens for you.
>
> You certainly should not be doing this from your application. It is a
> Windows level thing and must be independent from applications. Look up Net
> Time in google.
>
> Geoff
>
>
>>
>> At a point in my application I have to synchronize the time the internal
>> clock, and therefore my application must have administrator rights.
>>
>> In. Net as you do it ? (to elevate your application to administrative
>> level)
>>
>> Thanks
>>
>> Danilo

>


Reply With Quote
  #9  
Old 09-07-2008, 08:02 AM
Geoff Schaller
Guest
 
Default Re: Mapi32 and Vista

But this is difficult.... certainly in a domain scenario. In essence it
should be the domain that is sync'd and then workstations with the DC.
Once you go EBS and SBS you risk significant problems if you time sync
in any other way.

But ok, if this is a totally standalone system then I guess there is
something in the original requirement but I wonder about your statement
about time servers. Mostly we should choose 7 or 8 servers to use on our
DC and set the comparator ranges appropriately. I don't see how they
could become inaccurate.

Geoff


"Ginny Caughey" <ginny.caughey.online@wasteworks.com> wrote in message
news:48c3c0ef$0$3376$c3e8da3@news.astraweb.com:

> Not always, Geoff. I have an app that syncs data between different servers,
> and it also syncs the system times. This is necessary because the time
> servers are not accurate enough.
>
> --
>
> Ginny Caughey
> www.wasteworks.com
>
>
>
> "Geoff Schaller" <geoffx@softxwareobjectives.com.au> wrote in message
> news:48c37c1f$1@dnews.tpgi.com.au...
>
> > Danilo.
> >
> > This is not correct. In Vista and XP you simply set the settings to the
> > correct time server (either your domain controller or for a stand alone
> > PC, the ISP's time server) and it happens for you.
> >
> > You certainly should not be doing this from your application. It is a
> > Windows level thing and must be independent from applications. Look up Net
> > Time in google.
> >
> > Geoff
> >
> >

>
> >>
> >> At a point in my application I have to synchronize the time the internal
> >> clock, and therefore my application must have administrator rights.
> >>
> >> In. Net as you do it ? (to elevate your application to administrative
> >> level)
> >>
> >> Thanks
> >>
> >> Danilo

>
> >


Reply With Quote
  #10  
Old 09-07-2008, 08:26 AM
Ginny Caughey
Guest
 
Default Re: Mapi32 and Vista

Geoff,

Just because you can't see how the servers could become inaccurate doesn't
mean it doesn't happen in practice.

--

Ginny Caughey
www.wasteworks.com



"Geoff Schaller" <geoffx@softxwareobjectives.com.au> wrote in message
news:48c3c2cd@dnews.tpgi.com.au...
> But this is difficult.... certainly in a domain scenario. In essence it
> should be the domain that is sync'd and then workstations with the DC.
> Once you go EBS and SBS you risk significant problems if you time sync in
> any other way.
>
> But ok, if this is a totally standalone system then I guess there is
> something in the original requirement but I wonder about your statement
> about time servers. Mostly we should choose 7 or 8 servers to use on our
> DC and set the comparator ranges appropriately. I don't see how they could
> become inaccurate.
>
> Geoff
>
>
> "Ginny Caughey" <ginny.caughey.online@wasteworks.com> wrote in message
> news:48c3c0ef$0$3376$c3e8da3@news.astraweb.com:
>
>> Not always, Geoff. I have an app that syncs data between different
>> servers,
>> and it also syncs the system times. This is necessary because the time
>> servers are not accurate enough.
>>
>> --
>>
>> Ginny Caughey
>> www.wasteworks.com
>>
>>
>>
>> "Geoff Schaller" <geoffx@softxwareobjectives.com.au> wrote in message
>> news:48c37c1f$1@dnews.tpgi.com.au...
>>
>> > Danilo.
>> >
>> > This is not correct. In Vista and XP you simply set the settings to the
>> > correct time server (either your domain controller or for a stand alone
>> > PC, the ISP's time server) and it happens for you.
>> >
>> > You certainly should not be doing this from your application. It is a
>> > Windows level thing and must be independent from applications. Look up
>> > Net
>> > Time in google.
>> >
>> > Geoff
>> >
>> >

>>
>> >>
>> >> At a point in my application I have to synchronize the time the
>> >> internal
>> >> clock, and therefore my application must have administrator rights.
>> >>
>> >> In. Net as you do it ? (to elevate your application to administrative
>> >> level)
>> >>
>> >> Thanks
>> >>
>> >> Danilo

>>
>> >

>


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:13 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.