Skip to content

Instantly share code, notes, and snippets.

View brainfoolong's full-sized avatar
:octocat:
Servus

Roland Eigelsreiter brainfoolong

:octocat:
Servus
View GitHub Profile
@Noitidart
Noitidart / _ff-addon-snippet-IsWorktationLocked.js
Last active August 21, 2017 09:46
_ff-addon-snippet-IsWorktationLocked - Detects if workstation is locked or not. (Windows) (jsctypes)
Cu.import('resource://gre/modules/ctypes.jsm')
var wintypesInit = function() {
// BASIC TYPES (ones that arent equal to something predefined by me)
this.BOOL = ctypes.bool;
this.DWORD = ctypes.uint32_t;
this.HANDLE = ctypes.voidptr_t;
this.INT = ctypes.int;
this.PVOID = ctypes.voidptr_t;