29 references to UnsafeNativeMethods
ReachFramework (29)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (2)
41int charCount = UnsafeNativeMethods.LoadStringW(handle, srid, resString, resString.Capacity); 79this._compstuiHandle = UnsafeNativeMethods.LoadLibraryExW("compstui.dll", IntPtr.Zero, SafeLoadLibraryFlags);
MS\Internal\Printing\Configuration\SafeModuleHandle.cs (1)
32return UnsafeNativeMethods.FreeLibrary(this.handle);
MS\Internal\Printing\Configuration\SafeWinSpoolPrinterHandle.cs (1)
37return UnsafeNativeMethods.ClosePrinter(base.handle);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (13)
67IntPtr hdc = UnsafeNativeMethods.CreateICW(this._driverName, this._deviceName, null, this._devMode); 74logicalPixelsX = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.LOGPIXELSX); 75logicalPixelsY = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.LOGPIXELSY); 76physicalWidth = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALWIDTH); 77physicalHeight = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALHEIGHT); 78physicalOffsetX = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALOFFSETX); 79physicalOffsetY = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALOFFSETY); 80horizontalResolution = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.HORZRES); 81verticalResolution = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.VERTRES); 86UnsafeNativeMethods.DeleteDC(hdcRef); 386return UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode); 417uint numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode); 427numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, buffer.Handle, this._devMode);
PrintConfig\FallbackPTProvider.cs (4)
60if (false == UnsafeNativeMethods.OpenPrinterW(deviceName, out this._deviceHandle, new HandleRef(this, IntPtr.Zero))) 518result = UnsafeNativeMethods.DocumentPropertiesW(new HandleRef(this, IntPtr.Zero), this._deviceHandle, this._deviceName, outPtr, buffer, flags); 626UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, SafeMemoryHandle.Null, dwNeeded, ref dwNeeded); 632if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.Handle, dwNeeded, ref dwNeeded))
PrintConfig\PTProvider.cs (8)
78return PTUtility.IsSuccessCode(UnsafeNativeMethods.PTCloseProviderImpl(this.handle)); 167uint hResult = UnsafeNativeMethods.PTOpenProviderEx(deviceName, 232uint hResult = UnsafeNativeMethods.PTGetPrintCapabilities(_providerHandle, printTicketStream, printCapabilitiesStream, out errorMsg); 308uint hResult = UnsafeNativeMethods.PTMergeAndValidatePrintTicket(_providerHandle, 409uint hResult = UnsafeNativeMethods.PTConvertDevModeToPrintTicket(_providerHandle, 475hResult = UnsafeNativeMethods.PTConvertPrintTicketToDevMode(_providerHandle, 499UnsafeNativeMethods.PTReleaseMemory(new HandleRef(this, umDevMode)); 801uint hResult = UnsafeNativeMethods.CreateStreamOnHGlobal(SafeMemoryHandle.Wrap(IntPtr.Zero), true, out result);