Well, you don't need a special DLL to achieve this.
JScript code:
var rc = Interop.Allocate(16);
Interop.Call("user32", "GetWindowRect", Interop.Call("user32", "GetDesktopWindow"), rc);
Debug.Trace("screen resolution: " + rc.ReadDWORD(8) + 'x' + rc.ReadDWORD(12))
rc.Size = 0;
I know theres another way, i'll post it later...
just open up the
Script Debugging window and you'll see something like this:
quote:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
screen resolution: 1280x1024
if you still want to create that DLL, just have a read at
this article at msdn