Skip to content

Instantly share code, notes, and snippets.

View brianmaissy's full-sized avatar

Brian Maissy brianmaissy

View GitHub Profile
@brianmaissy
brianmaissy / lock_cd_tray.py
Last active January 29, 2020 21:39 — forked from santa4nt/ioctl.py
A Python-ctypes script to lock and unlock a cd tray by dispatching IOCTL in Windows
# The MIT License (MIT)
#
# Copyright © 2020 Brian Maissy <brian.maissy@gmail.com>
#
# Based on https://gist.github.com/santa4nt/11068180
# Copyright © 2014-2016 Santoso Wijaya <santoso.wijaya@gmail.com>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,