MAPI Verbindung öffnen ohne Bestätigung [erledigt]

Nutzung, Komponenten, .NET

Moderator: Moderatoren

Antworten
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

MAPI Verbindung öffnen ohne Bestätigung [erledigt]

Beitrag von AUGE_OHR »

hi,

ich habe für ein Project den Codejock Calendar, auf Wunsch, mit der MAPI Schnittstelle versehen.
Das funktioniert auch alles soweit bis auf eine Kleinigkeit die nervt :

Jedes mal wenn ich aus dem Codejock Calendar die MAPI Verbindung öffnen will kommt eine Combobox wo er (Outlook) wissen will welche ich will.
Es gibt aber nur die eine Verbindung : Outlook (XP oder 2007)

Nun gibt es da Optionen mit einer Checkbox das er sich das "merken"* soll, tut er aber nicht ... :(
*(Outlook soll "default" MAPI Programm werden)
Sicherlich ein Registry Eintrag ... hat den jemand ?

das selbe passiert übrigens auch mit SocMAPI, aber beides mal kommt die Combobox NICHT wenn ich Outlook schon geöffnet habe, also eine Verbindung besteht.

wer kann helfen ?
Zuletzt geändert von AUGE_OHR am Do, 17. Mär 2011 2:34, insgesamt 1-mal geändert.
gruss by OHR
Jimmy
Benutzeravatar
Muecke
1000 working lines a day
1000 working lines a day
Beiträge: 623
Registriert: Di, 24. Okt 2006 7:19
Wohnort: Samstagern CH
Hat sich bedankt: 3 Mal
Danksagung erhalten: 9 Mal
Kontaktdaten:

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von Muecke »

Jimmy,
ich glaube Olaf könnte dir da helfen. Es gibt da was, damit diese Meldung nicht mehr vorhanden ist.

Gruss Thomas
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

Muecke hat geschrieben:ich glaube Olaf könnte dir da helfen. Es gibt da was, damit diese Meldung nicht mehr vorhanden ist.
das hier meine ich
Outlook Abfrage
Outlook Abfrage
Outlook_Abfrage.jpg (14.37 KiB) 6530 mal betrachtet
weiss jemand sonst noch einen Rat ?
gruss by OHR
Jimmy
Benutzeravatar
Martin Altmann
Foren-Administrator
Foren-Administrator
Beiträge: 16517
Registriert: Fr, 23. Sep 2005 4:58
Wohnort: Berlin
Hat sich bedankt: 111 Mal
Danksagung erhalten: 48 Mal
Kontaktdaten:

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von Martin Altmann »

:grommit:
Webseite mit XB2.NET und ausschließlich statischem Content in Form von HTML-Dateien: https://www.altem.de/
Webseite mit XB2.NET und ausschließlich dynamischem Content in Form von in-memory-HTML: https://meldungen.altem.de/

Mitglied der XUG Osnabrück
Vorsitzender des Deutschsprachige Xbase-Entwickler e. V.
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

danke
We will not comment on the whole code of this add-in to give you an opportunity to examine it yourself.
also muss ich mal razsbekommen wie man an den Security-Manager ran kommt ...
gruss by OHR
Jimmy
Benutzeravatar
Martin Altmann
Foren-Administrator
Foren-Administrator
Beiträge: 16517
Registriert: Fr, 23. Sep 2005 4:58
Wohnort: Berlin
Hat sich bedankt: 111 Mal
Danksagung erhalten: 48 Mal
Kontaktdaten:

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von Martin Altmann »

Noch ein wenig ausführlicher: :arrow: http://www.add-in-express.com/creating- ... in-access/

Viele Grüße,
Martin
:grommit:
Webseite mit XB2.NET und ausschließlich statischem Content in Form von HTML-Dateien: https://www.altem.de/
Webseite mit XB2.NET und ausschließlich dynamischem Content in Form von in-memory-HTML: https://meldungen.altem.de/

Mitglied der XUG Osnabrück
Vorsitzender des Deutschsprachige Xbase-Entwickler e. V.
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

hi,

em... äh ... Frage : "wie" provoziere ich Outlook damit die Msg kommt ?

nun wo die Schnittstelle läuft fällt mir auf das die Abfrage gar nicht mehr kommt ...
gruss by OHR
Jimmy
Benutzeravatar
brandelh
Foren-Moderator
Foren-Moderator
Beiträge: 15697
Registriert: Mo, 23. Jan 2006 20:54
Wohnort: Germersheim
Hat sich bedankt: 66 Mal
Danksagung erhalten: 33 Mal
Kontaktdaten:

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von brandelh »

Hi,

diese "Sicherheitsabfrage" sollte eigentlich von keinem Programm verhindert werden können, sonst macht sie keinen Sinn ;-)
Möglicherweise darf aber der Anwender eine Anwendung dauerhaft freischalten ?
In diesem Zusammenhang tritt ein Manko kleiner Softwareproduzenten immer deutlicher hervor.

Allen Anwendungen die "nicht Signiert" sind (oder wie man das immer nennt) gelten als unsicher und als Sicherheitsrisiko !
Wenn ich z.B. meine WinDev Mobile Anwendung auf meinem Smartphone installiere ... das kann ich noch ignorieren aber ob Endkunden das auch tun ;-)
Auf jeden Fall sind viele SIM und eMail Funktionen für unsigniere Anwendungen gesperrt (auf dem Smartphone).

Eventuell ist das die Problematik die auch in ActiveX Anwendungen auf dem PC immer deutlicher spürbar wird.
Gruß
Hubert
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

AUGE_OHR hat geschrieben:em... äh ... Frage : "wie" provoziere ich Outlook damit die Msg kommt ?
Antwort : wenn man auf den "Body" zugreifen will.

Da jeder activeX Zugriff, mit Xbase++ ca. 0.01sec benötigt hatte ich es auf ein Minimum beschränkt.
Der Zugriff auf "Start"(Zeit),"Subject","Location","Duration","Categories","AllDayEvent" oder "RecurrenceState" benötigen scheinbar keine "Rechte"
gruss by OHR
Jimmy
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

Martin Altmann hat geschrieben:Noch ein wenig ausführlicher: :arrow: http://www.add-in-express.com/creating- ... in-access/
habe es ausprobiert und das bekommen
No_Access_SecurityManager.JPG
No_Access_SecurityManager.JPG (7.47 KiB) 6455 mal betrachtet
als Code habe ich nur

Code: Alles auswählen

::oOutlook := CreateObject( "Outlook.Application" )
IF NIL == ::oOutlook
   MsgBox( "Auf MS Outlook kann nicht zugegriffen werden. Bitte stellen Sie s
               Chr(13) + Chr(10 ) + "dass MS Outlook auf Ihrem Computer korrekt installiert ist.",;
                "Fehler" )
ENDIF

::oNameSpace   := ::oOutlook:GetNamespace( "MAPI" )
::oAppointment := ::oNameSpace:getDefaultFolder( olFolderCalendar ):Items

::SecurityManager := CreateObject("AddInExpress.OutlookSecurityManager")
IF NIL == ::SecurityManager
   MsgBox( "Auf SecurityManager kann nicht zugegriffen werden", "Fehler" )
ELSE
   ::SecurityManager:DisableSMAPIWarnings := .T.
ENDIF
ich finde auch keinen Eintrag "AddInExpress.OutlookSecurityManager" im meiner Registy :(

nun hast du mich aber damit auf die Idee gebracht weiter in der Registry zu suchen.
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Options\General und dort Security Zone gefunden.
1. Die Zone "Lokales Intranet" enthält alle Websites aus dem Intranet Ihrer Organisation.
2. Die Zone für vertrauenswürdige Sites enthält Websites, von denen Sie sicher sind, dass sie Ihren Computer oder Ihre Daten nicht beschädigen.
3. Die Zone "Eingeschränkte Sites" enthält Websites, die Ihren Computer oder Ihre Daten potenziell Schaden beschädigen könnten.
4. Die Zone "Internet" enthält sämtliche Websites, die in keiner anderen Zone enthalten sind.
klar steht es auf 4 also höchste Sicherheitsstufe.

Frage : wie bringt man eine "Application" in die Zone "Lokales Intranet" ?

dann habe ich noch das gefunden, aber verstehe nicht wie man eine Group anlegt
http://www.slipstick.com/outlook/esecup/admin.htm ca. in der Mitte
Granting Security Overrides
You can make the security settings for an individual or group of users either more or less restrictive than the default settings. To override the default settings, follow these steps:

1. Create a new item in the Outlook Security Settings folder.
2. On the Outlook Security form's Outlook Security Settings tab, select the Security Settings for Exception Group.
3. Provide a Security Group Name.
4. In the Members box, enter the names, separated by semicolons, of individual users to which this group of settings will apply. The form doesn't provide a button to let you pick names from the Global Address List (GAL); you must enter them yourself. (TIP: You can use the To button on a regular Outlook message item to help you select the names, then copy and paste into the security form item.
5. Press Ctrl+K to resolve the names. If any name remains without an underline, that means Outlook couldn't match the name against a valid address book entry. Check your spelling, then press Ctrl+K to try again to resolve.
6. Select your options on the two pages of the form. Refer to the Readme.txt file for details about each setting.
7. Close the item, and choose Yes when Outlook asks whether you want to save changes.

IMPORTANT: Take care that each user is a member of only one Outlook security group -- in other words, that the user appears on only one item in the Outlook Security Settings folder. If a user is included in more than one group, the most recently saved set of security settings prevails, and Outlook ignores any others. The Outlook E-mail Security Update won't check to see whether the user is listed in additional Outlook security groups.

In Outlook 2002 and later, you can also use the security form to "trust" Outlook COM add-ins (but not external applications or form code). What is actually trusted is the Application object passed by the add-in's OnConnection event handler. All other Outlook objects need to be derived from this trusted object. Note that CDO is not trusted in this scenario.
gruss by OHR
Jimmy
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

brandelh hat geschrieben:diese "Sicherheitsabfrage" sollte eigentlich von keinem Programm verhindert werden können, sonst macht sie keinen Sinn ;-)
...
Eventuell ist das die Problematik die auch in ActiveX Anwendungen auf dem PC immer deutlicher spürbar wird.
http://www.slipstick.com/outlook/esecup.htm
Automation Security

The "object model guard" feature of the patch imposes two extreme restrictions on automating Outlook from add-ins that use either the Outlook object model or Simple MAPI:
# If an add-in tries to send an Outlook message, the user gets a notification pop-up and must explicitly authorize or deny each attempt to send. The user must wait 5 seconds before the Yes button becomes available to click.
# If an add-in tries to access address information in an Outlook item or the address book or to save an Outlook item as a file, the user gets a notification pop-up and can deny access, authorize a one-time access or extend access for a period of several minutes. PDA sync utilities are an example of the kind of application that will be affected by this restriction.

The object model guard applies even if your code is digitally signed or running from a published Outlook form. The only way to turn it off is via the administrative options. Because of these restrictions, some Outlook features become virtually unusable, because of the number of times the user has to confirm the dialog boxes:
# Sequential routing from Word
# Mail merge to e-mail in Word
# Automated mailing programs that use the Outlook Send method
gruss by OHR
Jimmy
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Re: MAPI Verbindung öffnen ohne Bestätigung

Beitrag von AUGE_OHR »

hi,

ich "denke" ich habe eine ganz einfach Lösung gefunden ;)

ich werde die Lösung allerdings NICHT hier "veröffentlichen" da ich für meinen Aufwand mir das "Recht" vor behalte ...

Ich werde die Lösung im "internen" Mitglieder Bereich posten und nur denen das "Recht", meine Forschungen und Erkenntnisse zu nutzen, einräumen.
gruss by OHR
Jimmy
Antworten