This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _CRTALLOC(x) __declspec(allocate(x)) | |
| //typedef void(__cdecl* _PVFV)(void); | |
| typedef int(__cdecl* _PIFV)(void); | |
| static int __cdecl __myscrt_cursed_modify_apptype(void) | |
| { | |
| PIMAGE_NT_HEADERS hdrs; | |
| MEMORY_BASIC_INFORMATION mbi; | |
| //FreeConsole(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "video.h" | |
| #define __STDC_CONSTANT_MACROS //do we need? | |
| #include "libavutil/imgutils.h" | |
| //#include "lavfutils.h" | |
| #include <libavformat/avformat.h> | |
| #include "stdafx.h" | |
| #include <libavcodec/avcodec.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef long LONG | |
| typedef unsigned int UINT | |
| typedef LONG NTSTATUS; | |
| typedef UINT D3DKMT_HANDLE; | |
| typedef UINT D3DDDI_VIDEO_PRESENT_SOURCE_ID; | |
| #define D3DKMT_PTR(Type, Name) Type Name | |
| #define STATUS_SUCCESS ((NTSTATUS)0x00000000L) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*********************************************************************\ | |
| | How to circumvent the "long path" limitation on Windows, without: | | |
| | - Your application's manifest declaring LongPathAware | | |
| | - The user having LongPaths enabled in their registry | | |
| \*********************************************************************/ | |
| extern "C" { | |
| #define WIN32_LEAN_AND_MEAN | |
| #include <windows.h> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define STRICT | |
| #define WIN32_LEAN_AND_MEAN | |
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <windows.h> | |
| #include <stdlib.h> | |
| #include <tchar.h> | |
| #define wtf2(y) \ | |
| ((__targv[0] = (((TCHAR**)malloc(3 * sizeof(TCHAR*)))[0] = _tcsdup(__targv[0]))), __targv[1] = __targv[0], __targv[2] = 0, __targv[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define WIN32_LEAN_AND_MEAN | |
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <windows.h> | |
| #include <string> | |
| // Relevant msdn blogs: | |
| // https://devblogs.microsoft.com/commandline/windows-command-line-inside-the-windows-console/ | |
| // https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/ | |
| #define WINDOW_HELPER_TEMPLATE_EXE_IMAGE ("ConsoleWindowHelper.exe") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <GUIConstants.au3> | |
| Global Const $MF_BYPOSITION = 0x00000400 | |
| Global Const $MF_SEPARATOR = 0x00000800 | |
| Global Const $MF_CHECKED = 0x00000008 | |
| Global Const $MF_POPUP = 0x00000010 | |
| Dim $nTPChecked = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _WIN32_WINNT 0x0500 | |
| #include <windows.h> | |
| #include <windowsx.h> | |
| #include <GL/gl.h> | |
| #include <GL/glu.h> | |
| #include <dwmapi.h> | |
| #pragma comment (lib, "opengl32.lib") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dearpygui.dearpygui as dpg | |
| from math import sin, cos | |
| import numpy as np | |
| file = "" | |
| x_left, y_left, x_span, y_span = 0, 0, 0, 0 | |
| def _framebuffer_callback(sender, user_data): | |
| global file, x_left, y_left, x_span, y_span | |
| w, h = user_data.get_width(), user_data.get_height() |