29 references to UnsafeNativeMethods
ReachFramework (29)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (2)
38int charCount = UnsafeNativeMethods.LoadStringW(handle, srid, resString, resString.Capacity); 76this._compstuiHandle = UnsafeNativeMethods.LoadLibraryExW("compstui.dll", IntPtr.Zero, SafeLoadLibraryFlags);
MS\Internal\Printing\Configuration\SafeModuleHandle.cs (1)
27return UnsafeNativeMethods.FreeLibrary(this.handle);
MS\Internal\Printing\Configuration\SafeWinSpoolPrinterHandle.cs (1)
34return UnsafeNativeMethods.ClosePrinter(base.handle);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (13)
63IntPtr hdc = UnsafeNativeMethods.CreateICW(this._driverName, this._deviceName, null, this._devMode); 70logicalPixelsX = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.LOGPIXELSX); 71logicalPixelsY = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.LOGPIXELSY); 72physicalWidth = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALWIDTH); 73physicalHeight = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALHEIGHT); 74physicalOffsetX = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALOFFSETX); 75physicalOffsetY = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALOFFSETY); 76horizontalResolution = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.HORZRES); 77verticalResolution = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.VERTRES); 82UnsafeNativeMethods.DeleteDC(hdcRef); 382return UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode); 413uint numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode); 423numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, buffer.Handle, this._devMode);
PrintConfig\FallbackPTProvider.cs (4)
55if (!UnsafeNativeMethods.OpenPrinterW(deviceName, out this._deviceHandle, new HandleRef(this, IntPtr.Zero))) 510result = UnsafeNativeMethods.DocumentPropertiesW(new HandleRef(this, IntPtr.Zero), this._deviceHandle, this._deviceName, outPtr, buffer, flags); 618UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, SafeMemoryHandle.Null, dwNeeded, ref dwNeeded); 624if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.Handle, dwNeeded, ref dwNeeded))
PrintConfig\PTProvider.cs (8)
68return PTUtility.IsSuccessCode(UnsafeNativeMethods.PTCloseProviderImpl(this.handle)); 157uint hResult = UnsafeNativeMethods.PTOpenProviderEx(deviceName, 222uint hResult = UnsafeNativeMethods.PTGetPrintCapabilities(_providerHandle, printTicketStream, printCapabilitiesStream, out errorMsg); 298uint hResult = UnsafeNativeMethods.PTMergeAndValidatePrintTicket(_providerHandle, 399uint hResult = UnsafeNativeMethods.PTConvertDevModeToPrintTicket(_providerHandle, 465hResult = UnsafeNativeMethods.PTConvertPrintTicketToDevMode(_providerHandle, 489UnsafeNativeMethods.PTReleaseMemory(new HandleRef(this, umDevMode)); 791uint hResult = UnsafeNativeMethods.CreateStreamOnHGlobal(SafeMemoryHandle.Wrap(IntPtr.Zero), true, out result);