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

Windows Mobile Password Safe

, 12 Jan 2009 CPOL
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;

namespace Fluid.Drawing.GdiPlus
{

    [StructLayout(LayoutKind.Sequential)]
    public struct GpGraphics
    {
        public static implicit operator IntPtr(GpGraphics obj) { return obj.ptr; }
        internal IntPtr ptr;
        public IntPtr Handle { get { return ptr; } }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpMatrix
    {
        IntPtr ptr;
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpPath
    {
        IntPtr ptr;
        public static implicit operator IntPtr(GpPath obj) { return obj.ptr; }
        public static implicit operator GpPath(string n) { if (n == null) return new GpPath(); else throw new ArgumentException(); }
        public IntPtr Handle { get { return ptr; } }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpFont
    {
        IntPtr ptr;
        public static implicit operator IntPtr(GpFont obj) { return obj.ptr; }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpPen
    {
        IntPtr ptr;
        public static implicit operator IntPtr(GpPen obj) { return obj.ptr; }
        public static implicit operator GpPen(string n) { if (n == null) return new GpPen(); else throw new ArgumentException(); }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpBrush
    {
        internal IntPtr ptr;
        public static implicit operator IntPtr(GpBrush obj) { return obj.ptr; }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpHatch
    {
        IntPtr ptr;
        public static implicit operator GpBrush(GpHatch me)
        {
            GpBrush br = new GpBrush();
            br.ptr = me.ptr;
            return br;
        }
        public static explicit operator GpHatch(GpBrush br)
        {
            GpHatch n = new GpHatch();
            n.ptr = br.ptr;
            return n;
        }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpTexture
    {
        IntPtr ptr;
        public static implicit operator GpBrush(GpTexture me)
        {
            GpBrush br = new GpBrush();
            br.ptr = me.ptr;
            return br;
        }
        public static explicit operator GpTexture(GpBrush br)
        {
            GpTexture n = new GpTexture();
            n.ptr = br.ptr;
            return n;
        }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpSolidFill
    {
        IntPtr ptr;
        public static implicit operator GpBrush(GpSolidFill me)
        {
            GpBrush br = new GpBrush();
            br.ptr = me.ptr;
            return br;
        }
        public static explicit operator GpSolidFill(GpBrush br)
        {
            GpSolidFill n = new GpSolidFill();
            n.ptr = br.ptr;
            return n;
        }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpPathGradient
    {
        IntPtr ptr;
        public static implicit operator GpBrush(GpPathGradient me)
        {
            GpBrush br = new GpBrush();
            br.ptr = me.ptr;
            return br;
        }
        public static explicit operator GpPathGradient(GpBrush br)
        {
            GpPathGradient n = new GpPathGradient();
            n.ptr = br.ptr;
            return n;
        }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpLineGradient
    {
        IntPtr ptr;
        public static implicit operator GpBrush(GpLineGradient me)
        {
            GpBrush br = new GpBrush();
            br.ptr = me.ptr;
            return br;
        }
        public static explicit operator GpLineGradient(GpBrush br)
        {
            GpLineGradient n = new GpLineGradient();
            n.ptr = br.ptr;
            return n;
        }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpRegion
    {
        public IntPtr ptr;
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpImage
    {
        IntPtr ptr;
        public static implicit operator GpImage(string n) { if (n == null) return new GpImage(); else throw new ArgumentException(); }
        public static implicit operator GpImage(IntPtr p) { GpImage img = new GpImage(); img.ptr = p; return img; }
        public static implicit operator IntPtr(GpImage obj) { return obj.ptr; }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpBitmap
    {
        internal IntPtr ptr;
        public static explicit operator IntPtr(GpBitmap bm) { return bm.ptr; }
        public static explicit operator GpImage(GpBitmap bm)
        {
            GpImage img = (GpImage)(IntPtr)bm;
            return img;
        }
        public static implicit operator GpBitmap(IntPtr p) { GpBitmap bm = new GpBitmap(); bm.ptr = p; return bm; }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpPathData
    {
        public int Count;
        public PointF[] Points;
        public byte[] Types;
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpCachedBitmap
    {
        IntPtr ptr;
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpLineCap
    {
        IntPtr ptr;
        public static implicit operator IntPtr(GpLineCap obj) { return obj.ptr; }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpCustomLineCap
    {
        IntPtr ptr;
        public static implicit operator IntPtr(GpCustomLineCap obj) { return obj.ptr; }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpImageAttributes
    {
        IntPtr ptr;
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpFontFamily
    {
        IntPtr ptr;
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct GpStringFormat
    {
        IntPtr ptr;
    }



    public enum GpStatus
    {
        Ok = 0,
        GenericError = 1,
        InvalidParameter = 2,
        OutOfMemory = 3,
        ObjectBusy = 4,
        InsufficientBuffer = 5,
        NotImplemented = 6,
        Win32Error = 7,
        WrongState = 8,
        Aborted = 9,
        FileNotFound = 10,
        ValueOverflow = 11,
        AccessDenied = 12,
        UnknownImageFormat = 13,
        FontFamilyNotFound = 14,
        FontStyleNotFound = 15,
        NotTrueTypeFont = 16,
        UnsupportedGdiplusVersion = 17,
        GdiplusNotInitialized = 18,
        PropertyNotFound = 19,
        PropertyNotSupported = 20,
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct HDC
    {
        private HDC(IntPtr v) { val = v; }
        public IntPtr val;
        public static implicit operator IntPtr(HDC hdc) { return hdc.val; }
        public static implicit operator HDC(IntPtr hdc) { return new HDC(hdc); }
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct HANDLE
    {
        private HANDLE(IntPtr v) { val = v; }
        public IntPtr val;
        public static implicit operator IntPtr(HANDLE hdc) { return hdc.val; }
        public static implicit operator HANDLE(IntPtr hdc) { return new HANDLE(hdc); }
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct HWND
    {
        private HWND(IntPtr v) { val = v; }
        public IntPtr val;
        public static implicit operator IntPtr(HWND hdc) { return hdc.val; }
        public static implicit operator HWND(IntPtr hdc) { return new HWND(hdc); }
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct HRGN
    {
        private HRGN(IntPtr v) { val = v; }
        public IntPtr val;
        public static implicit operator IntPtr(HRGN hdc) { return hdc.val; }
        public static implicit operator HRGN(IntPtr hdc) { return new HRGN(hdc); }
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct HFONT
    {
        private HFONT(IntPtr v) { val = v; }
        public IntPtr val;
        public static implicit operator IntPtr(HFONT hdc) { return hdc.val; }
        public static implicit operator HFONT(IntPtr hdc) { return new HFONT(hdc); }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct HBITMAP
    {
        private HBITMAP(IntPtr v) { val = v; }
        public IntPtr val;
        public static implicit operator IntPtr(HBITMAP v) { return v.val; }
        public static implicit operator HBITMAP(IntPtr v) { return new HBITMAP(v); }
    }

    public enum PROPID : ushort { }
}

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 | Terms of Use | Mobile
Web03 | 2.8.141216.1 | Last Updated 12 Jan 2009
Article Copyright 2009 by Thomas Gerber
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid