X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FSetWindowRect.cc;fp=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FSetWindowRect.cc;h=0000000000000000000000000000000000000000;hp=6291dd674597471325891d60a31edb677049cca5;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc b/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc deleted file mode 100644 index 6291dd6..0000000 --- a/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +++ /dev/null @@ -1,36 +0,0 @@ -#include - -#include -#include - -#include "TestUtil.cc" - -int main(int argc, char *argv[]) { - if (argc != 5) { - printf("Usage: %s x y width height\n", argv[0]); - return 1; - } - - const HANDLE conout = CreateFileW(L"CONOUT$", - GENERIC_READ | GENERIC_WRITE, - FILE_SHARE_READ | FILE_SHARE_WRITE, - NULL, OPEN_EXISTING, 0, NULL); - ASSERT(conout != INVALID_HANDLE_VALUE); - - SMALL_RECT sr = { - (short)atoi(argv[1]), - (short)atoi(argv[2]), - (short)(atoi(argv[1]) + atoi(argv[3]) - 1), - (short)(atoi(argv[2]) + atoi(argv[4]) - 1), - }; - - trace("Calling SetConsoleWindowInfo with {L=%d,T=%d,R=%d,B=%d}", - sr.Left, sr.Top, sr.Right, sr.Bottom); - BOOL ret = SetConsoleWindowInfo(conout, TRUE, &sr); - const unsigned lastError = GetLastError(); - const char *const retStr = ret ? "OK" : "failed"; - trace("SetConsoleWindowInfo ret: %s (LastError=0x%x)", retStr, lastError); - printf("SetConsoleWindowInfo ret: %s (LastError=0x%x)\n", retStr, lastError); - - return 0; -}