12345678910111213141516171819202122 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Runtime.InteropServices;
- namespace Biff8Excel.COM
- {
- public sealed class NativeMethods
- {
- private NativeMethods()
- {
- }
- [DllImport("ole32.dll", PreserveSig = false)]
- [return: MarshalAs(UnmanagedType.Interface)]
- internal static extern IStorage StgCreateDocfile([MarshalAs(UnmanagedType.LPWStr)] string pwcsName, int grfMode, int reserved);
- [DllImport("ole32.dll", PreserveSig = false)]
- [return: MarshalAs(UnmanagedType.Interface)]
- internal static extern IStorage StgOpenStorage([MarshalAs(UnmanagedType.LPWStr)] string pwcsName, IntPtr pstgPriority, int grfMode, IntPtr snbExclude, int reserved);
- }
- }
|