public static extern bool GdiDeleteSpoolFileHandle(HSPOOLFILE SpoolFileHandle);
public static extern bool GdiEndDocEMF(HSPOOLFILE SpoolFileHandle);
public static extern HANDLE GdiGetPageHandle(HSPOOLFILE SpoolFileHandle, uint Page, out uint pdwPageType);
public static extern uint GdiGetPageCount(HSPOOLFILE SpoolFileHandle);
public static extern bool GdiGetDevmodeForPage(HSPOOLFILE SpoolFileHandle, uint dwPageNumber, out IntPtr pCurrDM, out IntPtr pLastDM);
public static extern HDC GdiGetDC(HSPOOLFILE SpoolFileHandle);
public static extern bool GdiEndPageEMF(HSPOOLFILE SpoolFileHandle, uint dwOptimization);