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