Programming and Coding
Programming and coding tips, help and solutions...
1,876 topics in this forum
-
VLC playing lags using Named Pipe
by LCF-AT- 18 replies
- 9.1k views
Hi guys, so I got following problem.So you know the VLC player which you can also use to enter direct URL addresses of video files to play them.If I use this function then all is working well and the video will played normaly and liquid as it should.Now I wrote a WinSock code to download the bytes and write them into a name pipe handle created for VLC process and started the player via ShellExecuteEx.The VLC player starts and does play the video reading the bytes from pipe.All is working fine so far but the video dosent play liquid and it lags / jerky etc so its not good and also not playing same if I enter the URL in VLC.So I dont find the problem reason in this cas…
-
Anbox - Android in a Box
by whoknows- 1 reply
- 7.7k views
There is no emulation layer. Everything runs directly on the computer hardware. http://anbox.io/
-
[C++] appendoverlay
by mrexodia- 3 replies
- 13.7k views
#include <stdio.h> #include <vector> #include <string> #include <windows.h> bool readFileData(const std::string & fileName, std::vector<unsigned char> & data) { data.clear(); HANDLE hFile = CreateFileA(fileName.c_str(), GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0); bool result=false; if(hFile != INVALID_HANDLE_VALUE) { unsigned int fileSize = GetFileSize(hFile, 0); unsigned char* dataPtr = new unsigned char[fileSize]; DWORD read=0; if(ReadFile(hFile, dataPtr, fileSize, &read, 0)) result = true; data.assign(dataPtr, dataPtr+fileSize); delete[…
-
Listview questions 1 2
by LCF-AT- 31 replies
- 15.6k views
Hi again, I made a listview with seven columns and used LVS_EX_GRIDLINES.I also did subclass the listview.If I now add much entrys then I get a VScrollbar to see which I can move.If I now press on the bar free parts (not slider itself) then the slider jumps up or down etc and the problem now I get is that the GRIDLINES are doube to see in each line = the entrys itself are crossed out and its looks very bad and in this case I have to do any refresh.In my subclass I added now WM_VSCROLL message and added.. .if uMsg == WM_VSCROLL invoke InvalidateRect,hWnd,NULL ,FALSE invoke UpdateWindow,hWnd ...and the listview gets updated and the representation looks good aga…
-
How to get variables and their values with dnlib
by Mahmoudnia- 3 replies
- 5.6k views
Hello I have some issue with dnlib when I want to get variables and their values in C# I can get variable count for example in Form1_Load and other methods but variable's name have null values. https://j00i.imgup.net/17563.png https://m07i.imgup.net/20e1a.png What can I do ?
-
Require administrator in MASM ???
by CodeExplorer- 1 reply
- 5.7k views
Require administrator in MASM ??? How to do it? Tried with this manifest.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyidentity version="1.0.0.0" processorArchitecture="X86" name="Name of your application" type="win32"></assemblyidentity> <description>Description of your application</description> <!-- Identify the application security requirements. --> <trustinfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedprivileges> <requestedexec…
-
trace api
by Hacktreides- 2 replies
- 4.1k views
Hello, i search for a source code example of a program with can trace API call, a wrapper or something like that. For example, i want to see MessageBox call from a other exe, i want this program to put a hook on the second executable and print MessageBox api call and is parameters. If someone have a example of how to do that, thank you in advance.
-
theForger's Win32
by Aldhard Oswine- 4 replies
- 6k views
Does anyone have the source.zip file from theForger's website? Dropbox link from the site is dead :/ http://www.winprog.org/tutorial/
-
How to access the internet? 1 2 3 4
by LCF-AT- 99 replies
- 32.3k views
Hi guys, can anyone of you tell me how to access any internet site via APIs xy?So I don't know how to explain it correctly but what I am looking for is very simple.So what I wanna do is to access any site link xy and reading the source code into memory.All this I wanna do with a extern tool / code without to use any browser etc.The only thing what I need to know is... 1.) What APIs can I use to call internetsites / specific links 2.) How to read source code of the link xy into memory So I imagine like this.... push ascii string // http://siteABC.com/12345.html call API xy or with login datas push ascii string // http://name:pass@siteABC.com/12345.…
-
AssemblyNameIniter
by CodeExplorer- 0 replies
- 5.7k views
Will get AssemblyName from a file name or from a byte array withouth loading the assembly. In Program.cs you will find a short example, all you have to do is call AssemblyNameInit.GetAssemblyName methods, and it will return an assembly name; you can also use AssemblyNameInit.GetAsmRefsAssemblyName to get AssemblyName array of referenced assemblies. Download link: http://www117.zippyshare.com/v/ACSmGOK0/file.html AssemblyNameIniter.zip
-
TLS callback example in C++
by Aldhard Oswine- 2 replies
- 21.2k views
I have following code: #include <Windows.h> #include <cstdio> __declspec(thread) int a; void NTAPI on_tls_callback(PVOID h, DWORD dwReason, PVOID pv) { a = 43; MessageBox(nullptr, L"aaaa", L"bbb", MB_OK); } #pragma data_seg(".CRT$XLB") PIMAGE_TLS_CALLBACK p_thread_callback = on_tls_callback; #pragma data_seg() int main() { printf("%d\n", a); getchar(); } I want to execute on_tls_callback() before main, but it does not work on MSVC 2015. Can you explain how can I use TLS callback?
-
Cast byte[] to methodbody
by noob.exe- 8 replies
- 8.3k views
Hey, How can I cast a byte[] into a methodbody by using dnlib?
-
Compile Dnspy
by Avenger- 4 replies
- 8.5k views
How can i compile dnspy? i'm open it by VS2017 however i can't compile it and project have lots of error is it possible someone record video for about how can compile dnspy
-
[C] Patch template reques
by useretail- 0 replies
- 9.8k views
Hey guys, I'm looking for a C source code that can patch binaries. CLI is fine, it's for Linux
-
PE structs question
by LCF-AT- 6 replies
- 5.3k views
Hi guys, I have a new problem and wanna find a solution.So at the moment I try to work with the PE structs and found something strange.My goal was it just to read some PE Header datas just to check whether the file is a NET target or not (optinal also to find the NET version the file needs to run if possible). So the IMAGE_NT_HEADERS structs points me to the OptionalHeader IMAGE_OPTIONAL_HEADER32 struct and this points me to DataDirectory IMAGE_DATA_DIRECTORY struct and there I have this... IMAGE_DATA_DIRECTORY STRUCT VirtualAddress DWORD ? isize DWORD ? IMAGE_DATA_DIRECTORY ENDS ....that all?Why this?If I follow the way in Ol…
-
Static lib C return value problems
by LCF-AT- 11 replies
- 6.2k views
Hi guys, so I have just a little question about static libs (dont find any older topics to post my question). So I wrote some dll code and created some export functions with MASM and now I have the normal buld lib of the dll like other libs like kernel32 etc (you need to have kernel dll).Now if I build a new project and use my lib with some functions then it will also need the dll where I used the lib from and this I dont wanna have and would like to build a static lib from my lib so that I dont need the dll itself later in my project.All clear so far right.Now I used a tool called dll to lib to build a lib from my dll (which is in MASM compiled dll) to get a st…
-
Assembly and C++
by Aldhard Oswine- 5 replies
- 6k views
I'm trying to learn Reverse Engineering, at this time I compile C++ code without any optimization and see the correspond assembly in IDA's disassembler, but there are some parts of the code, where I can not guess what happens. I think many of you can help me to answer this questions C++ code: #include <stdio.h> #include <string> void fillarray(int is[11], int size) { for (int i = 0; i < size; ++i) { is[i] = i; } } int main() { char* chr = "First"; std::string m = "Secdond"; static int arr[11]; std::string m1 = "Third"; auto size = sizeof(arr) / sizeof(arr[0]); fillarray(arr, size); int num = 11; printf_s("%d", num); get…
-
Editors tools - source code C#
by CodeExplorer- 8 replies
- 7.9k views
Editors tools - source code C# This include: AssemblyReconstructor ByteArrayInitializer FrameworkChanger HonorableNetPatcher ModuleToAssembly ModuleToAssembly_Mono ReferencedVersionChanger ResourceCopy ResourceManager StringAdder Link: http://www.multiupload.nl/ZFVUFB1E4R Editors.zip
-
- 12 replies
- 7.5k views
Hi I'm looking for example on creatingprocess and then acquiring it's context via GetThreadContext without using DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS. If I use CreateProcess with only CREATE_SUSPENDED flag I end up with ERROR_NOACCESS as my thread have no THREAD_GET_CONTEXT attribute. I've tried to use SetSecurityInfo but without luck. If someone have other ideas I'll be glad to test them.
-
- 6 replies
- 5.1k views
Hi guys, so I just have a small question about the SYSTEM_INFO struct and checking the wProcessorArchitecture type to check whether the running OS is x86 or x64 version.So if I read it right then its enough to checking the wProcessorArchitecture type only to get the info about x86 / x64 any "no matter" if I call GetSystemInfo / GetNativeSystemInfo from a x86 or x64 application right?So in this case I dont need to check for IsWow64Process API. If so then I have a add on question.So I found a code about checking Win versions etc and at the end its also checking for wProcessorArchitecture to send output whether its 32 or 64 bit Win version (all clear so far).....BU…
-
address of section from memory
by Avenger- 5 replies
- 5k views
how can i get address of section(such as .text or .rsrc)from memory?
-
Looking for minimum supported C/S tool
by LCF-AT- 7 replies
- 5.2k views
Hi guys, short question.So is there any tool out there what can check other PE files and can give info about this PE file about whats the minimum required OS to run this PE file? Idea: You do load a PE file into the tool and the tool does check now all imports of the PE file and does check the APIs (comparing with a data bank) and does list all APIs + infos like this... API NAME | Minimum supported client ------------------------------------------------------- GetModuleFileName | Windows XP GetVersionEx | Windows 2000 Professional VerifyVersionInfo | Windows 2000 Professional IsWow64Process | Windows Vista, Windows XP with SP2 ...... …
-
need help about Virtualprotect
by spector- 8 replies
- 5.7k views
hello how i can use Virtualprotect to make a section of a pe file writeable , how to call it usig assembly code thank you
-
Thread Local Storage Exception Handler error
by Perplex- 5 replies
- 5.9k views
I've add Thread Local Storage in C++ project but Exception Handler error, What's the solution? Win32Project14.rar
-
PE Reading/Writing C++ library
by Perplex- 0 replies
- 4.2k views
I needed to C++ library for Reading/Writing PE (adding section / changing icon / changing version) which library is better (stable)?