Click here to Skip to main content
12,354,955 members (64,994 online)
Click here to Skip to main content

Stats

109.2K views
2.7K downloads
139 bookmarked
Posted

Windows Mobile Password Safe

, 12 Jan 2009 CPOL
A password safe with a touch screen UI introducing Fluid Controls.
Fluid.dll
passwords.pws
PasswordSafe.exe
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.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using System.Text;
using Fluid.Drawing.Runtime.InteropServices.ComTypes;

namespace Fluid.Drawing.GdiPlus
{

    internal partial class GdiPlus
    {
        //----------------------------------------------------------------------------
        // Bitmap APIs
        //----------------------------------------------------------------------------

        //[DllImport(dllName)] internal static extern GpStatus 
        //GdipCreateBitmapFromStream(IStream* stream, out GpBitmap bitmap);

        //[DllImport(dllName)] internal static extern GpStatus 
        //GdipCreateBitmapFromFile(string filename, out GpBitmap bitmap);

        [DllImport(dllName)]
        internal static extern GpStatus GdipCreateBitmapFromStreamICM(IStream stream, out GpBitmap bitmap);

        [DllImport(dllName)]
        internal static extern GpStatus GdipCreateBitmapFromFileICM(string filename, out GpBitmap bitmap);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipCreateBitmapFromScan0(int width,
             int height,
             int stride,
             PixelFormat format,
             IntPtr scan0,
             out GpBitmap bitmap);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipCreateBitmapFromGraphics(int width,
                int height,
                GpGraphics target,
                out GpBitmap bitmap);


        //[DllImport(dllName)] internal static extern GpStatus 
        //GdipCreateBitmapFromGdiDib(GDIPCONST BITMAPINFO* gdiBitmapInfo,
        //                           VOID* gdiBitmapData,
        //                           out GpBitmap  bitmap);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipCreateBitmapFromHBITMAP(IntPtr hbm,
               IntPtr hpal,
               out GpBitmap bitmap);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipCreateHBITMAPFromBitmap(GpBitmap bitmap,
               out HBITMAP hbmReturn,
               int background);


        [DllImport(dllName)]
        internal static extern GpStatus
            GdipBitmapLockBits(GpBitmap bitmap,
            Rectangle rect,
            uint flags,
            PixelFormat format,
            BitmapData lockedBitmapData);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipBitmapUnlockBits(GpBitmap bitmap,
        BitmapData lockedBitmapData);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipBitmapGetPixel(GpBitmap bitmap, int x, int y, out int color);

        [DllImport(dllName)]
        internal static extern GpStatus
            GdipBitmapSetPixel(GpBitmap bitmap, int x, int y, int color);



        [DllImport(dllName)]
        public extern static GpStatus GdipSetClipRegion(GpGraphics nativeGraphics, GpRegion gpRegion, CombineMode combineMode);

        [DllImport(dllName)]
        public extern static GpStatus GdipSetClipRect(IntPtr nativeGraphics, float p, float p_3, float p_4, float p_5, CombineMode combineMode);

        [DllImport(dllName)]
        public extern static GpStatus GdipCreateFontFromDC(HDC hdc, out GpFont font);

        [DllImport(dllName)]
        public extern static GpStatus GdipDeleteFont(GpFont nativeFont);

        [DllImport(dllName)]
        public extern static GpStatus GdipDrawString(GpGraphics nativeGraphics, string text, int length, GpFont gpFont, RectangleF rect, int p, GpBrush gpBrush);

        [DllImport(dllName)]
        public extern static GpStatus GdipDrawString(GpGraphics nativeGraphics, string text, int length, int gpFont, RectangleF rect, int p, GpBrush gpBrush);


        [DllImport(dllName)]
        public extern static GpStatus GdipGraphicsPlusClear(GpGraphics nativeGraphics, int color);
    }
}

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

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 12 Jan 2009
Article Copyright 2009 by Thomas Gerber
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid