This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[UnmanagedFunctionPointer(CallingConvention.StdCall, SetLastError = true)] | |
public delegate Int32 DStartDocW(IntPtr hPrinter, IntPtr di); | |
[DllImport("Gdi32.dll", EntryPoint = "StartDocW", SetLastError = true, CallingConvention = CallingConvention.StdCall)] | |
public static extern Int32 StartDocW(IntPtr hPrinter, IntPtr di); | |
//hook | |
public Int32 StartDocW_Hooked(IntPtr InPrinterHandle, IntPtr InData) | |
{ | |
//create XML file |