Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Windows Mobile Password Safe

, 12 Jan 2009
A password safe with a touch screen UI introducing Fluid Controls.
PasswordSafeExe.zip
Fluid.dll
passwords.pws
PasswordSafe.exe
PasswordSafeSource.zip
PasswordSafe
Fluditity
bin
Classes
vssver2.scc
Controls
enums
vssver2.scc
Events
vssver2.scc
Interfaces
vssver2.scc
vssver2.scc
Fluid.csproj.user
GdiPlus
mssccprj.scc
NativeMethods
vssver2.scc
vssver2.scc
Native
vssver2.scc
obj
Properties
vssver2.scc
vssver2.scc
PasswordSafe
bin
Release
Fluid.dll
passwords.pws
PasswordSafe.exe
Classes
vssver2.scc
Encryption
vssver2.scc
EventArgs
vssver2.scc
ListBoxes
vssver2.scc
PasswordSafe.csproj.user
Properties
vssver2.scc
Resources
lock.bmp
minus.png
props.bmp
save.bmp
saved.bmp
search.bmp
searchd.bmp
undo24.bmp
undo24_d.bmp
Untitled.png
vssver2.scc
security.ico
Templates
vssver2.scc
Themes
vssver2.scc
vssver2.scc
Xml
vssver2.scc
vssver2.scc
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Fluid.Drawing.GdiPlus
{
    internal partial class GdiPlus
    {
        const string dllName = "gdiplus";

        [DllImport(dllName)]
        extern static internal GpStatus GdipFlush(GpGraphics graphics, FlushIntention intention);

        [DllImport(dllName)]
        extern static internal GpStatus GdipCreateFromHDC(HDC hdc, out GpGraphics graphics);

        [DllImport(dllName)]
        extern static internal GpStatus GdipCreateFromHDC2(HDC hdc, IntPtr hDevice, out GpGraphics graphics);

        [DllImport(dllName)]
        extern static internal GpStatus GdipCreateFromHWND(HWND hwnd, out GpGraphics graphics);

        [DllImport(dllName)]
        extern static internal GpStatus GdipCreateFromHWNDICM(HWND hwnd, out GpGraphics graphics);

        [DllImport(dllName)]
        extern static internal GpStatus GdipDeleteGraphics(GpGraphics graphics);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetDC(GpGraphics graphics, out HDC hdc);

        [DllImport(dllName)]
        extern static internal GpStatus GdipReleaseDC(GpGraphics graphics, HDC hdc);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetCompositingMode(GpGraphics graphics, CompositingMode compositingMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetCompositingMode(GpGraphics graphics, out CompositingMode compositingMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetRenderingOrigin(GpGraphics graphics, int x, int y);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetRenderingOrigin(GpGraphics graphics, out int x, out int y);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetCompositingQuality(GpGraphics graphics, CompositingQuality compositingQuality);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetCompositingQuality(GpGraphics graphics, out CompositingQuality compositingQuality);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetSmoothingMode(GpGraphics graphics, SmoothingMode smoothingMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetSmoothingMode(GpGraphics graphics, out SmoothingMode smoothingMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetPixelOffsetMode(GpGraphics graphics, PixelOffsetMode pixelOffsetMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetPixelOffsetMode(GpGraphics graphics, out PixelOffsetMode pixelOffsetMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetTextRenderingHint(GpGraphics graphics, TextRenderingHint mode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetTextRenderingHint(GpGraphics graphics, out TextRenderingHint mode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetTextContrast(GpGraphics graphics, uint contrast);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetTextContrast(GpGraphics graphics, out uint contrast);

        [DllImport(dllName)]
        extern static internal GpStatus GdipSetInterpolationMode(GpGraphics graphics, InterpolationMode interpolationMode);

        [DllImport(dllName)]
        extern static internal GpStatus GdipGetInterpolationMode(GpGraphics graphics, out InterpolationMode interpolationMode);

        [DllImport(dllName)]
        extern static internal GpStatus  GdipSetWorldTransform(GpGraphics graphics, GpMatrix matrix);

        [DllImport(dllName)]
        extern static internal GpStatus GdipResetWorldTransform(GpGraphics graphics);

        [DllImport(dllName)]
        extern static internal GpStatus GdipMultiplyWorldTransform(GpGraphics graphics, GpMatrix matrix, MatrixOrder order);

        [DllImport(dllName)]
        extern static internal GpStatus GdipTranslateWorldTransform(GpGraphics graphics, float dx, float dy, MatrixOrder order);

        [DllImport(dllName)]
        extern static internal GpStatus GdipScaleWorldTransform(GpGraphics graphics, float sx, float sy, MatrixOrder order);

        [DllImport(dllName)]
        internal static extern GpStatus GdipGetClipBounds(GpGraphics graphics, out RectangleF rect);

        [DllImport(dllName)]
        internal static extern GpStatus GdipGetClipBoundsI(GpGraphics graphics, out Rectangle rect);

        [DllImport(dllName)]
        internal static extern GpStatus GdipGetPageUnit(GpGraphics graphics, out Unit unit);

        [DllImport(dllName)]
        internal static extern GpStatus GdipGetPageScale(GpGraphics graphics, out float scale);

        [DllImport(dllName)]
        internal static extern GpStatus GdipSetPageUnit(GpGraphics graphics, Unit unit);

        [DllImport(dllName)]
        internal static extern GpStatus GdipSetPageScale(GpGraphics graphics, float scale);

        [DllImport(dllName)]
        internal static extern GpStatus GdipGetDpiX(GpGraphics graphics, out float dpi);

        [DllImport(dllName)]
        internal static extern GpStatus GdipGetDpiY(GpGraphics graphics, out float dpi);

        [DllImport(dllName)]
        internal static extern GpStatus GdipSetClipHrgn(GpGraphics graphics, HRGN hRgn, CombineMode combineMode);


        [DllImport(dllName)]
        internal static extern GpStatus GdipSaveGraphics(GpGraphics graphics, out GraphicsState state);

        [DllImport(dllName)]
        internal static extern GpStatus GdipRestoreGraphics(GpGraphics graphics, GraphicsState state);

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Thomas Gerber
Software Developer (Senior)
Germany Germany
MCPD
Enterprise Application Developer 3.5
Windows Developer 3.5
.ASP.NET Developer 3.5
.NET 2.0 Windows Developer
.NET 2.0 Web Developer
.NET 2.0 Enterprise Application Developer
 

MCTS
.NET 3.5 Windows Forms Applications
.NET 3.5 ASP.NET Applications
.NET 3.5, ADO.NET Application Development
.NET 3.5 WCF
.NET 3.5 WPF
.NET 3.5 WF
Microsoft SQL Server 2008, Database Development
.NET 2.0 Windows Applications
.NET 2.0 Web Applications
.NET 2.0 Distributed Applications
SQL Server 2005
Sharepoint Services 3.0 Application Development
Windows Vista Client Configuration

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 12 Jan 2009
Article Copyright 2009 by Thomas Gerber
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid