﻿Copy-pasted from there:
https://github.com/Const-me/ComLightInterop/tree/master/ComLightLib
With only a few minor changes.