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 gdi32, prefix the name with the module name and a period.
ExtEscape (gdi32)
.
C# Signature:
[DllImport("gdi32.dll")]
static extern int ExtEscape(IntPtr hdc, int nEscape, int cbInput,
string lpszInData, int cbOutput, IntPtr lpszOutData);
VB.NET Signature:
<DllImport("gdi32.dll")> _
Public Shared Function ExtEscape(ByVal hdc As IntPtr, ByVal nEscape As Integer, ByVal cbInput As Integer, ByVal lpszInData As String, ByVal cbOutput As Integer, ByRef lpszOutData As IntPtr) As Integer
End Function
int isz=4;
BLOB = Marshal.AllocCoTaskMem(isz);
Marshal.WriteInt32(BLOB,GETTECHNOLOGY);
int test=ExtEscape( hDC, QUERYESCSUPPORT, 4, BLOB, 0, IntPtr.Zero);
if(test==0) return false; // printer driver does not support GETTECHNOLOGY Checks.
foreach(Int32 val in PSChecks)
{
Marshal.WriteInt32(BLOB,val);
test = ExtEscape(hDC,QUERYESCSUPPORT,isz,BLOB,0, IntPtr.Zero);
if(test!=0) return true; // if any of the checks pass, return true
}
}
catch(Exception ex){Trace.WriteLine(ex);}
finally
try
{
if(hDC!=IntPtr.Zero) DeleteDC(hDC);
return false;
int isz=4;
BLOB = Marshal.AllocCoTaskMem(isz);
Marshal.WriteInt32(BLOB,GETTECHNOLOGY);
int test=ExtEscape( hDC, QUERYESCSUPPORT, 4, BLOB, 0, IntPtr.Zero);
if(test==0) return false; // printer driver does not support GETTECHNOLOGY Checks.
}
foreach(Int32 val in PSChecks)
{
Marshal.WriteInt32(BLOB,val);
test = ExtEscape(hDC,QUERYESCSUPPORT,isz,BLOB,0, IntPtr.Zero);
if(test!=0) return true; // if any of the checks pass, return true
}
}
catch(Exception ex){Trace.WriteLine(ex);}
finally
{
if(hDC!=IntPtr.Zero) DeleteDC(hDC);
if(BLOB!=IntPtr.Zero) Marshal.Release(BLOB);
};
return false;
Alternative Managed API:
Do you know one? Please contribute it!
}
Alternative Managed API:
Do you know one? Please contribute it!
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).