Definitions: Mono 1.2.6 (Revised) Date Submitted: 2/20/2008 4:33:34 PM Comments: Not my own project, but the Windows Live Writer project by Microsoft. This is one of the tools I'd really like to see running on Mac OS or Linux. ========================================= Pending issues: 4 [NIEX] System.Windows.Forms.AxHost/InvalidActiveXStateException::.ctor(System.String,System.Windows.Forms.AxHost/ActiveXInvokeKind) 1 [TODO] System.Windows.Forms.Cursor::set_Current(System.Windows.Forms.Cursor) Details: Implement setting a null cursor, and add XplatUI method to get current cursor 1 [TODO] System.Drawing.Graphics::BeginContainer(System.Drawing.Rectangle,System.Drawing.Rectangle,System.Drawing.GraphicsUnit) Details: The rectangles and unit parameters aren't supported in libgdiplus 4 [NIEX] System.Windows.Forms.AxHost::GetOcx() 1 [TODO] System.Windows.Forms.Cursor::get_Current() Details: Implement setting a null cursor, and add XplatUI method to get current cursor 1 [TODO] System.Windows.Forms.Control/ControlAccessibleObject::NotifyClients(System.Windows.Forms.AccessibleEvents,System.Int32) Details: Implement this 1 [TODO] System.Net.WebProxy::GetDefaultProxy() Details: Can we get this info under windows from the system? 1 [TODO] System.Net.CredentialCache::get_DefaultCredentials() Details: Need EnvironmentPermission implementation first 4 [NIEX] System.Windows.Forms.AxHost::set_Enabled(System.Boolean) 4 [NIEX] System.Windows.Forms.AxHost::EndInit() 4 [NIEX] System.Windows.Forms.AxHost::BeginInit() 4 [NIEX] System.Windows.Forms.AxHost::.ctor(System.String) 4 [NIEX] System.Windows.Forms.AxHost/ConnectionPointCookie::Disconnect() 4 [NIEX] System.Windows.Forms.AxHost/ConnectionPointCookie::.ctor(System.Object,System.Object,System.Type) 1 [TODO] System.Drawing.Graphics::set_PixelOffsetMode(System.Drawing.Drawing2D.PixelOffsetMode) Details: This property does not do anything when used with libgdiplus. **************************************************** P/Invokes made by this program Library: Advapi32.dll int RegNotifyChangeKeyValue(UIntPtr, bool, uint, IntPtr, bool) int RegOpenKeyEx(UIntPtr, string, uint, uint, UIntPtr&) Library: comctl32.dll int GetCommonControlDLLVersion(XPBitmapButton/DLLVERSIONINFO&) Library: ComDlg32.dll bool GetOpenFileName(OpenFileName&) Library: Crypt32.dll bool CryptProtectData(DATA_BLOB&, string, IntPtr, IntPtr, CRYPTPROTECT_PROMPTSTRUCT&, uint, DATA_BLOB&) bool CryptUnprotectData(DATA_BLOB&, IntPtr&, IntPtr, IntPtr, CRYPTPROTECT_PROMPTSTRUCT&, uint, DATA_BLOB&) Library: dwmapi.dll int DwmIsCompositionEnabled(Boolean&) Library: gdi32.dll bool DeleteDC(IntPtr) bool GetTextExtentPoint32(IntPtr, string, int, SIZE&) bool GetWorldTransform(IntPtr, Gdi32/XFORM&) bool LPtoDP(IntPtr, POINT[], int) bool SetWorldTransform(IntPtr, Gdi32/XFORM&) Gdi32/GraphicsMode SetGraphicsMode(IntPtr, Gdi32/GraphicsMode) int GetDeviceCaps(IntPtr, int) int GetObject(IntPtr, int, IntPtr) int SetBkColor(IntPtr, int) int SetTextColor(IntPtr, int) IntPtr CreatePatternBrush(IntPtr) Library: Gdi32.dll bool DeleteDC(IntPtr) bool DeleteObject(IntPtr) int BitBlt(IntPtr, int, int, int, int, IntPtr, int, int, Gdi32/TernaryRasterOperations) IntPtr CreateCompatibleBitmap(IntPtr, int, int) IntPtr CreateCompatibleDC(IntPtr) IntPtr SelectObject(IntPtr, IntPtr) Library: gdiplus.dll int GdipCreateBitmapFromGdiDib(IntPtr, IntPtr, IntPtr&) int GdipDisposeImage(IntPtr) int GdipSaveImageToFile(IntPtr, string, Guid&, IntPtr) Library: kernel32.dll bool EnumSystemCodePages(Kernel32/CodePageDelegate, uint) bool FileTimeToLocalFileTime(FILETIME&, FILETIME&) bool LocalFileTimeToFileTime(FILETIME&, FILETIME&) bool ProcessIdToSessionId(uint, UInt32&) bool QueryPerformanceCounter(Int64&) bool QueryPerformanceFrequency(Int64&) bool SetProcessWorkingSetSize(IntPtr, int, int) int GetLongPathName(string, StringBuilder, int) int GetPrivateProfileString(string, string, string, StringBuilder, int, string) int GetShortPathName(string, StringBuilder, int) Int64 GetDriveType(string) IntPtr GetModuleHandle(IntPtr) IntPtr LoadLibrary(string) uint GetLastError() uint GetModuleFileName(IntPtr, StringBuilder, uint) Library: Kernel32.dll bool GlobalMemoryStatusEx(GlobalMemoryStatus/MEMORYSTATUSEX&) bool GlobalUnlock(IntPtr) bool WriteFile(IntPtr, IntPtr, uint, UInt32&, IntPtr) int CloseHandle(IntPtr) IntPtr GlobalAlloc(uint, UIntPtr) IntPtr GlobalLock(IntPtr) IntPtr LocalFree(IntPtr) uint WaitForMultipleObjects(uint, IntPtr[], bool, uint) UIntPtr GlobalSize(IntPtr) void CopyMemory(IntPtr, IntPtr, UIntPtr) Library: KERNEL32.DLL int GetPrivateProfileInt(string, string, int, string) int GetPrivateProfileSectionNames(Byte[], int, string) int GetPrivateProfileString(string, string, string, StringBuilder, int, string) int WritePrivateProfileSection(string, string, string) int WritePrivateProfileString(string, string, string, string) Library: mpr.dll int WNetGetUniversalName(string, int, IntPtr, Int32&) Library: mscoree.dll int GetFileVersion(string, StringBuilder, int, Int32&) Library: msidcrl40.dll int AuthIdentityToService(IntPtr, string, string, uint, IntPtr&, UInt32&, IntPtr&, UInt32&) int AuthIdentityToServiceEx(IntPtr, uint, ManagedIDCRL/RSTParams[], uint) int CacheAuthState(IntPtr, string, uint) int CancelPendingRequest(IntPtr) int CloseEnumIdentitiesHandle(IntPtr) int CloseIdentityHandle(IntPtr) int CreateIdentityHandle(string, uint, IntPtr&) int CreateIdentityHandleFromAuthState(string, uint, IntPtr&) int CreateIdentityHandleFromCachedAuthState(string, string, uint, IntPtr&) int CreateIdentityHandleFromCachedAuthState(string, uint, IntPtr&) int CreatePassportAuthUIContext(ManagedIDCRL/PassportCredUIInfo&, ManagedIDCRL/PassportCredCustomUI&, IntPtr&) int DecryptWithSessionKey(IntPtr, string, uint, uint, IntPtr, uint, IntPtr&, UInt32&) int DestroyPassportAuthUIContext(IntPtr) int EncryptWithSessionKey(IntPtr, string, uint, uint, IntPtr, uint, IntPtr&, UInt32&) int EnumIdentitiesWithCachedCredentials(string, IntPtr&) int ExportAuthState(IntPtr, uint, IntPtr&) int GetAuthState(IntPtr, Int32&, Int32&, Int32&, IntPtr&) int GetAuthStateEx(IntPtr, string, Int32&, Int32&, Int32&, IntPtr&) int GetCertificate(IntPtr, ManagedIDCRL/RSTParams&, UInt32&, uint, IntPtr&, IntPtr&, UInt32&, IntPtr&) int GetExtendedError(IntPtr, IntPtr, UInt32&, UInt32&, IntPtr&) int GetExtendedProperty(string, IntPtr&) int GetIdentityProperty(IntPtr, ManagedIDCRL/PassportIdentityProperty, IntPtr&) int GetIdentityPropertyByName(IntPtr, string, IntPtr&) int GetPreferredAuthUIContextSize(IntPtr, Size&) int GetServiceConfig(string, IntPtr&) int GetUserExtendedProperty(string, string, IntPtr&) int GetWebAuthUrl(IntPtr, string, string, string, string, IntPtr&, IntPtr&) int GetWebAuthUrlEx(IntPtr, uint, string, string, string, IntPtr&, IntPtr&) int HasPersistedCredential(IntPtr, string, Int64&) int Initialize(Guid&, int, uint) int InitializeEx(Guid&, int, uint, ManagedIDCRL/IDCRL_OPTION[], uint) int LogonIdentity(IntPtr, string, uint) int LogonIdentityEx(IntPtr, string, uint, ManagedIDCRL/RSTParams[], uint) int LogonIdentityWithUI(IntPtr, IntPtr, string, uint) int MigratePersistedCredentials(Guid&, bool, UInt32&) int MoveAuthUIContext(IntPtr, Point, Size) int NextIdentity(IntPtr, IntPtr&) int PassportFreeMemory(IntPtr) int PersistCredential(IntPtr, string) int RemoveAuthStateFromCache(string, string, uint) int RemoveChangeNotificationCallback() int RemovePersistedCredential(IntPtr, string) int SetChangeNotificationCallback(string, uint, ManagedIDCRL/UserStateChangedCallback) int SetCredential(IntPtr, string, string) int SetExtendedProperty(string, string) int SetIdcrlOptions(ManagedIDCRL/IDCRL_OPTION[], uint, uint) int SetIdentityCallback(IntPtr, ManagedIDCRL/CallBackDelegateWithData, IntPtr) int SetIdentityProperty(IntPtr, ManagedIDCRL/PassportIdentityProperty, string) int SetUserExtendedProperty(string, string, string) int Uninitialize() int VerifyCertificate(IntPtr, UInt32&, IntPtr, uint, IntPtr&) Library: Ole32.dll int CLSIDFromProgID(string, Guid&) int CoDisconnectObject(Object, uint) int CreateBindCtx(uint, UCOMIBindCtx&) int CreateItemMoniker(string, string, UCOMIMoniker&) int CreateStreamOnHGlobal(IntPtr, int, UCOMIStream&) int GetRunningObjectTable(int, UCOMIRunningObjectTable&) int OleLockRunning(Object, bool, bool) int OleRun(Object) int ReadClassStg(IStorage, Guid&) int RevokeDragDrop(IntPtr) int StgCreateStorageEx(string, STGM, STGFMT, uint, Ole32Storage/STGOPTIONS&, IntPtr, Guid&, IStorage&) int StgIsStorageFile(string) int StgOpenStorageEx(string, STGM, STGFMT, uint, Ole32Storage/STGOPTIONS&, IntPtr, Guid&, IStorage&) int WriteClassStg(IStorage, Guid&) void ReleaseStgMedium(STGMEDIUM&) Library: psapi.dll bool EnumProcessModules(IntPtr, IntPtr[], uint, UInt32&) uint GetModuleFileNameEx(IntPtr, IntPtr, StringBuilder, uint) Library: shell32.dll IntPtr FindExecutable(string, string, StringBuilder) IntPtr SHGetFileInfo(string, uint, SHFILEINFO&, uint, uint) Library: Shell32.dll int SHGetInstanceExplorer(IntPtr&) void SHAddToRecentDocs(uint, string) Library: shlwapi.dll int UrlCreateFromPath(string, StringBuilder, UInt32&, uint) Library: Shlwapi.dll bool PathCompactPathEx(StringBuilder, string, int, int) int AssocQueryString(ASSOCF, ASSOCSTR, string, string, StringBuilder, Int32&) int SHAutoComplete(IntPtr, uint) int UrlCombine(string, string, StringBuilder, IntPtr&, uint) Library: ssceonf1.dll Int16 AddToLex(Int16, Int16, string, Int16, string) Int16 CheckWord(Int16, string, StringBuilder, Int16) Int16 ClearLex(Int16, Int16) Int16 CloseLex(Int16, Int16) Int16 CloseSession(Int16) Int16 CreateLex(Int16, string, Int16) Int16 OpenLex(Int16, string, int) Int16 OpenSession() Int16 SetKey(uint) Int16 Suggest(Int16, string, Int16, Byte[], int, Int16[], Int16) uint GetOption(Int16, uint) uint SetOption(Int16, uint, uint) Library: urlmon.dll int CreateURLMoniker(UCOMIMoniker, string, UCOMIMoniker&) int URLDownloadToFile(IntPtr, string, string, uint, IBindStatusCallback) Library: user32.dll bool EnableMenuItem(IntPtr, uint, uint) bool EnumChildWindows(IntPtr, EnumWindowsDelegate, GCHandle) bool GetTitleBarInfo(IntPtr, TITLEBARINFO&) bool GetWindowInfo(IntPtr, WINDOWINFO&) bool PostMessage(IntPtr, uint, UIntPtr, IntPtr) bool ReleaseDC(IntPtr, IntPtr) bool UnhookWindowsHookEx(IntPtr) int DrawMenuBar(IntPtr) int DrawTextEx(IntPtr, StringBuilder, int, RECT&, User32/DT, User32/DRAWTEXTPARAMS&) int GetIconInfo(IntPtr, User32/ICONINFO&) int GetSystemMetrics(int) int GetWindowText(IntPtr, StringBuilder, int) int SetMenuInfo(IntPtr, MENUINFO&) int SetWindowLong(IntPtr, int, int) int SetWindowLong(IntPtr, int, uint) int SetWindowProc(IntPtr, int, WndProcDelegate) int TrackPopupMenu(IntPtr, uint, int, int, int, IntPtr, IntPtr) Int16 GetKeyState(int) IntPtr CallNextHookEx(IntPtr, int, UIntPtr, IntPtr) IntPtr CallWindowProc(IntPtr, IntPtr, uint, UIntPtr, IntPtr) IntPtr GetDC(IntPtr) IntPtr GetDesktopWindow() IntPtr SendMessage(IntPtr, uint, IntPtr, IntPtr) IntPtr SendMessage(IntPtr, uint, UIntPtr, IntPtr) IntPtr SetWindowsHookEx(WH, User32/HookDelegate, IntPtr, uint) uint GetWindowLong(IntPtr, int) uint GetWindowThreadProcessId(IntPtr, IntPtr) Library: User32.dll bool AllowSetForegroundWindow(int) bool BringWindowToTop(IntPtr) bool DestroyIcon(IntPtr) bool GetWindowRect(IntPtr, RECT&) bool IsWindowVisible(IntPtr) bool MoveWindow(IntPtr, int, int, int, int, bool) bool ScreenToClient(IntPtr, POINT&) bool SetWindowPos(IntPtr, IntPtr, int, int, int, int, uint) bool SetWindowText(IntPtr, string) bool ShowWindow(IntPtr, int) int SystemParametersInfo(int, int, NONCLIENTMETRICS&, int) IntPtr FindWindowEx(IntPtr, IntPtr, string, string) IntPtr GetDlgCtrlID(IntPtr) IntPtr GetDlgItem(IntPtr, int) IntPtr GetForegroundWindow() IntPtr GetParent(IntPtr) IntPtr GetSystemMenu(IntPtr, bool) IntPtr GetWindowDC(IntPtr) IntPtr SetFocus(IntPtr) IntPtr SetParent(IntPtr, IntPtr) uint RegisterClipboardFormat(string) Library: UxTheme bool IsAppThemed() bool IsThemeActive() Library: uxtheme.dll int CloseThemeData(IntPtr) int GetThemeColor(IntPtr, int, int, int, Int32&) IntPtr OpenThemeData(IntPtr, string) Library: wininet.dll bool CommitUrlCacheEntry(string, string, FILETIME, FILETIME, uint, IntPtr, uint, IntPtr, IntPtr) bool CreateUrlCacheEntry(string, uint, string, StringBuilder, uint) bool FtpCreateDirectory(IntPtr, string) bool FtpDeleteFile(IntPtr, string) bool FtpGetCurrentDirectory(IntPtr, StringBuilder, UInt32&) bool FtpGetFile(IntPtr, string, string, bool, int, int, int) bool FtpPutFile(IntPtr, string, string, int, int) bool FtpSetCurrentDirectory(IntPtr, string) bool GetUrlCacheEntryInfo(string, IntPtr, Int32&) bool InternetCloseHandle(IntPtr) bool InternetFindNextFile(IntPtr, IntPtr) bool InternetGetLastResponseInfo(UInt32&, StringBuilder, UInt32&) IntPtr FtpFindFirstFile(IntPtr, string, IntPtr, int, int) IntPtr InternetConnect(IntPtr, string, int, string, string, int, int, int) IntPtr InternetOpen(string, int, string, string, int) Library: WinInet.dll bool InternetGetConnectedState(UInt32&, int) bool InternetQueryOption(IntPtr, INTERNET_OPTION, IntPtr, UInt32&) bool InternetSetCookie(string, string, string) bool InternetSetOption(IntPtr, INTERNET_OPTION, IntPtr, uint) Library: WinMm.dll void PlaySound(string, uint, uint)