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