driver

Migrating from codeless KEXT to DEXT. Usb interfaces disappeared

杀马特。学长 韩版系。学妹 提交于 2020-08-19 10:38:29
问题 I'm trying to migrate from KEXT to DEXT. My USB device should not be matched by the classic driver (in the other case, it does not allow to open the device and interface). I am using a sample USB application for testing. So, before installing the system extension, I was able to see 1 device and 3 interfaces. However, when I install the system extension (next), I can not find any interfaces. They seem to be lost. To search for interfaces I use the command “ioreg -lirc IOUSBHostInterface”. Any

Hello World driver won't compile correctly

醉酒当歌 提交于 2020-08-04 07:36:23
问题 I started out driver development, however I followed some tutorials I met online here and I am trying to compile my driver into a simple .sys file. The code looks like this: #include <ntddk.h> #include <wdf.h> #define UNREFERENCED_PARAMETER(P) (P) VOID DriverUnload(PDRIVER_OBJECT driver) { DbgPrint("first:HelloWorld End!"); } NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pUnicodeString) { DbgPrint("first:HelloWorld Begin!"); pDriverObject->DriverUnload = DriverUnload;

Printer Driver - custom paper size

拥有回忆 提交于 2020-06-29 01:43:42
问题 I'm working on custom printer V3 driver. The current task is to give ability to create custom paper size to user. I google it a bit and found 2 ways of doing that: 1) CUSTOMSIZE option in GPD file. I've added this to my GPD file: *Option: CUSTOMSIZE { *rcNameID: =USER_DEFINED_SIZE_DISPLAY *MinSize: PAIR(4724, 6992) *MaxSize: PAIR(14032, 20410) *MaxPrintableWidth: 14032 *MinLeftMargin: 0 *CenterPrintable?: FALSE *Command: CmdSelect { *Order: PAGE_SETUP.2 *Cmd: "" } } , but could not find where

Printer control language, PCL for 24bpp, 16 an gray

﹥>﹥吖頭↗ 提交于 2020-06-17 09:59:53
问题 I used this link and added lots of enhancements related to GDI. https://github.com/microsoft/Windows-driver-samples/tree/master/print/OEM%20Printer%20Customization%20Plug-in%20Samples/C%2B%2B/bitmap The above samples generates a bitmap driver with output as a bitmap image. Now using the bitmap I am able to generate working PCL for monochrome. I need some help for enhancing it further to generate PCL for 16bpp, 24 color and gray scale Can anyone suggest some samples where I could see the PCL