Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than gdiplus, prefix the name with the module name and a period.
GdiplusStartup (gdiplus)
.
C# Signature:
[DllImport("gdiplus.dll", CharSet=CharSet.Unicode, ExactSpelling=true)]
static extern int GdiplusStartup(out IntPtr token, ref StartupInput input,
out StartupOutput output);
VB Signature:
Declare Shared Function GdiplusStartup Lib "gdiplus.dll" (ByRef token As IntPtr, _
ByRef input As StartupInput, ByRef output As StartupOutput) As Integer
VB .Net Signature:
<DllImport("gdiplus.dll", EntryPoint:="GdiplusStartup", _
SetLastError:=True, CharSet:=CharSet.Unicode, _
ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function GdiplusStartup(ByRef token As IntPtr, _
ByRef input As GdipStartupInput, _
ByRef output As GdipStartupOutput) _
As Integer
End Function
VB.Net Signature:
<DllImport("gdiplus.dll", EntryPoint:="GdiplusStartup", _
SetLastError:=True, CharSet:=CharSet.Unicode, _
ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function GdiplusStartup(ByRef token As IntPtr, _
ByRef input As GdipStartupInput, _
ByRef output As GdipStartupOutput) _
As Integer
End Function
User-Defined Types:
[StructLayout(LayoutKind.Sequential)]
struct StartupOutput
{
public IntPtr hook;
public IntPtr unhook;
}
[StructLayout(LayoutKind.Sequential)]
struct StartupInput
{
public int GdiplusVersion = 1;
public IntPtr DebugEventCallback;
public bool SuppressBackgroundThread = false;
public bool SuppressExternalCodecs = false;
}
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
None as System.Drawing will call this API automatically when first API in gdiplus.dll is called by managed code.
The GdiplusStartup function initializes Windows GDI+. Call GdiplusStartup before making any other GDI+ calls. Call GdiplusShutdown when you have finished using GDI+.
9/25/2008 10:27:44 AM - -155.104.37.18
The GdiplusStartup function initializes Windows GDI+. Call GdiplusStartup before making any other GDI+ calls. Call GdiplusShutdown when you have finished using GDI+.
9/25/2008 10:27:44 AM - -155.104.37.18
The GdiplusShutdown function cleans up resources used by GDI+. Each call to GdiplusStartup should be paired with a call to GdiplusShutdown.
4/14/2009 7:35:48 PM - -157.79.100.64
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).