Office Outlook API (一)Create Outlook Instance
来源:互联网 发布:我想在淘宝上卖东西 编辑:程序博客网 时间:2024/05/29 11:30
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.Threading;using Microsoft.Office.Interop.Outlook;using System.Reflection;namespace OfficeUtility{ /// <summary> /// Start an outlook process /// </summary> public class OutlookApp : IDisposable { [DllImport("user32.dll")] static extern int GetWindowThreadProcessId(int hWnd, out int lpdwProcessId); private Application outlookAppInstance = null; public Application OutlookAppInstance { get { return outlookAppInstance; } set { outlookAppInstance = value; } } public OutlookApp() { Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); outlookAppInstance = new Microsoft.Office.Interop.Outlook.Application(); } #region IDisposable Members public void Dispose() { //if (outlookAppInstance != null) //{ // outlookAppInstance.Quit(); //} //Thread.Sleep(1000); } #endregion }}
引用Microsoft.Office.Interop.Outlook
- Office Outlook API (一)Create Outlook Instance
- Office Outlook API (二) Create and Send Mail
- Office Outlook API (三) Search Emails
- 【Office Outlook】账户添加
- Office outlook 配置连接到@outlook邮箱
- outlook
- outlook
- outlook
- Outlook
- outlook
- outlook~
- Microsoft Office 365开通试用(Outlook、Lync、团队网站)(一)
- JavaScript實現打開Microsoft Office Outlook
- Office Outlook应用 - 寻找丢失的Outlook通讯簿
- Office Outlook应用 - 寻找丢失的Outlook通讯簿
- 无法启动wicrosoft office outlook ,无法打开outlook窗口
- 打开outlook报错 解决办法----cannot start microsoft office outlook
- 启动Outlook出错,找不到文件(Outlook)
- [Python]多线程--threading模块实现
- 用栈实现数制转换
- List collides with another import statement 同一个类相同包名碰撞
- MFC读写XML文件
- 用线性表实现多个多项式相加
- Office Outlook API (一)Create Outlook Instance
- cloudstack基础网络zone关闭安全组功能
- 在VS2010下编译无法打开包括文件:“GL/glaux.h”: No such file or directory的解决 .
- Word2003中下划线怎么打出来
- oracle 存储过程生成xml文件
- ForFisrtWork--No.2:2009软件开发笔试题目
- 应用程序获得USB设备插入或者拔出通知
- Linux 常用网络命令介绍
- 如何成为优秀的驱动开发工程师