Windows

UMDF driver code for DRV2605 haptic device

2019-04-28

I uploaded an ancient prototype driver code I used ages ago in testing the DRV2605 haptic device from Texas Instruments. I can’t figure out (and I also don’t have time either) how to make this thing build using the recent versions of Visual Studio. Nonetheless, I’m putting this out there as reference to somebody doing something similar to this project. Source code is here.

Driver · Drv2605 · Haptic · Umdf · Windows

1 minute

Updates to Camera Class Filter Driver for Windows

2019-03-13

Updated 2019/03/13: A pretty good writeup that explains the internals of writing a camera filter driver in Windows can be found here. I’m putting this information out as this repo is one of the references used in the writeup. Original post: This post is a bit of a departure from my usual golang/cloud-related ramblings. I posted an open-source camera class filter driver for Windows ages ago hoping that it would help someone working on a similar project.

Camera · Driver · Filter-Driver · Wdm · Windows

1 minute

Camera Class Filter Driver for Windows

2018-04-30

This post is a bit of a departure from my usual golang/cloud-related ramblings. I posted an open-source camera class filter driver for Windows ages ago hoping that it would help someone working on a similar project. If you are familiar with this type of driver, you probably know that it’s not that straightforward to write mainly due to it being generally undocumented. A lot of reverse engineering has been done to write this driver.

Camera · Driver · Filter-Driver · Wdm · Windows

1 minute

Using Docker’s ETW log driver in Windows

2017-09-20

In Docker’s ETW logging driver doc, it uses the tool logman to view the logs. In this article, I will show you how to use mftrace to view Docker ETW logs in real-time. First, here’s a simple application written in Go that logs to STDERR every second. Next, let’s create a Docker image (Windows) using the Dockerfile below. assuming the code above is saved in a directory called 'demoapp' $ docker build -t demoapp .

Docker · Etw · Go · Windows

1 minute

Start process as system using CreateProcessAsUser

2017-05-31

Note that this function assumes the caller to be running as SYSTEM as well (i.e. Windows service). For self reference:

C++ · Process · Windows

1 minute

Simple touch/swipe input function in Windows

2017-03-28

For self reference: Simulate a touch input down, drag, up programmatically.

C++ · Input · Windows

1 minute

ATL service base code

2017-01-18

Yet another service code for Windows. This time, it’s an ATL service. ATL services are basically the same as traditional Windows services but with some advantages. Can be started on-demand automatically by the first client call (via COM). Clients can call service functions with parameters and return values using COM. In traditional services, clients normally communicate using service control codes and you need some kind of IPC (named pipes, shared memory, etc.

Atl · C++ · Service · Windows

1 minute