29 references to UnsafeNativeMethods
ReachFramework (29)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (2)
39int charCount = UnsafeNativeMethods.LoadStringW(handle, srid, resString, resString.Capacity); 77this._compstuiHandle = UnsafeNativeMethods.LoadLibraryExW("compstui.dll", IntPtr.Zero, SafeLoadLibraryFlags);
MS\Internal\Printing\Configuration\SafeModuleHandle.cs (1)
28return UnsafeNativeMethods.FreeLibrary(this.handle);
MS\Internal\Printing\Configuration\SafeWinSpoolPrinterHandle.cs (1)
35return UnsafeNativeMethods.ClosePrinter(base.handle);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (13)
64IntPtr hdc = UnsafeNativeMethods.CreateICW(this._driverName, this._deviceName, null, this._devMode); 71logicalPixelsX = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.LOGPIXELSX); 72logicalPixelsY = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.LOGPIXELSY); 73physicalWidth = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALWIDTH); 74physicalHeight = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALHEIGHT); 75physicalOffsetX = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALOFFSETX); 76physicalOffsetY = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.PHYSICALOFFSETY); 77horizontalResolution = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.HORZRES); 78verticalResolution = UnsafeNativeMethods.GetDeviceCaps(hdcRef, DeviceCap.VERTRES); 83UnsafeNativeMethods.DeleteDC(hdcRef); 383return UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode); 414uint numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode); 424numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, buffer.Handle, this._devMode);
PrintConfig\FallbackPTProvider.cs (4)
56if (false == UnsafeNativeMethods.OpenPrinterW(deviceName, out this._deviceHandle, new HandleRef(this, IntPtr.Zero))) 514result = UnsafeNativeMethods.DocumentPropertiesW(new HandleRef(this, IntPtr.Zero), this._deviceHandle, this._deviceName, outPtr, buffer, flags); 622UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, SafeMemoryHandle.Null, dwNeeded, ref dwNeeded); 628if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.Handle, dwNeeded, ref dwNeeded))
PrintConfig\PTProvider.cs (8)
69return PTUtility.IsSuccessCode(UnsafeNativeMethods.PTCloseProviderImpl(this.handle)); 158uint hResult = UnsafeNativeMethods.PTOpenProviderEx(deviceName, 223uint hResult = UnsafeNativeMethods.PTGetPrintCapabilities(_providerHandle, printTicketStream, printCapabilitiesStream, out errorMsg); 299uint hResult = UnsafeNativeMethods.PTMergeAndValidatePrintTicket(_providerHandle, 400uint hResult = UnsafeNativeMethods.PTConvertDevModeToPrintTicket(_providerHandle, 466hResult = UnsafeNativeMethods.PTConvertPrintTicketToDevMode(_providerHandle, 490UnsafeNativeMethods.PTReleaseMemory(new HandleRef(this, umDevMode)); 792uint hResult = UnsafeNativeMethods.CreateStreamOnHGlobal(SafeMemoryHandle.Wrap(IntPtr.Zero), true, out result);