Programming and Coding
Programming and coding tips, help and solutions...
1,914 topics in this forum
-
Hello all! Some strange error has occured here. I just tried to add a Static element to my DialogBox. The Static element will be shown on a Groupbox, though it is not marked as a child of the group box. The strange thing is that the static element is not showing. I checked it's Style parameters, and everything should be ok. Probably it's something very stupid I'm overseeing right now, but I've been breaking my head for over two hours by now. Here is my Resource File: ;This Resource Script was generated by WinAsm Studio.#define DLG_CRYPTER 1001 #define GRP_CRYPTER 1003 #define GRP_STATUS 1004 #define BTN_OPTION 1005 #define BTN_ABOUT 1006 #define LBL_INPUT 1007 #defin…
-
Will blocking ExitProcess() prevent the main thread from shutting down the application when it ends? I ask because I am working on a dll which is injected into a target application. And I don't want the application to be exited before the dll is finished and ready to exit.
-
If I patch code that a thread could be executing, should I pause the thread first? Or is it safe as long as I use "REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:[ESI]"? I know using a forloop would definitely cause problems.
-
Hey! I'm looking for source code for a 3D MMORPG. I'm planning on writting my own if I can't get a hold of source. If you guys know of any projects I could get the source from or game engines I can use let me know. Any help would be appericated. I'm looking for something similar to Perfect World, Guild Wars, Eve online. But anything is good with me. Thanks!
-
Hi. I'm trying to make a simple change OEP code, and I've hit a problem. The code works fine on Delphi and C++ apps - that are compiled with FileAlignment as 200h, but with a Visual Basic 6 app - which is compiled with FileAlignment as 1000h the app fails and doesn't work, PEiD also says its an invalid PE. If I manually realign the VB6 file back to 200h with CFF Explorer and LordPE the new OEP works fine. I've read the section on this in the ARTeam PE tutorial, but it didn't cover anything like this. Below is my code, and attached is the patched 1000h file and the realigned patched 200h file. program ChangeOEP_v2;uses Windows, SysUtils;type TByteArray = array of …
-
-
Hello! i use D2009 and would like to know how can i launch *.exe from a DLL example i have 1.exe with button on click its read from dll name of file to launch 2.exe is this posible?
-
In VC6 MFC How to change the title bar of warning messagebox, when DDV exception is inoked? WHIOUT changing application name. e.g. int age; DDX_Text(pDX, IDC_EDIT, age); if I input "abc" in IDC_EDIT It will prompt "Please input a integer" messagebox. The title is my application name. Question is how to change the title of this warning messagebox. Thank you
-
How do I prevent EWX_FORCE shutdown? when I tried to code "prevent shutdown" apps by detect the WM_QueryEndSession and WM_EndSession, I realized that I couldn't prevent the EWX_FORCE message
-
Could anyone post a simple and working delphi example of protecting and deprotecting data by this unit(RSAEncrypt, RSADecrypt)? I have not managed to make it work for me. thx
-
K I have small problem I want to send WM_COMMAND to a delphi application to programatically trigger a menu item. Now this is normally no problems for me to do this with a application that has been programmed in a diffrent language. Fisrt ill explain the method i use on normal apps say i want to click a menu item, I would open the application up in a resource hacker program and look for the menu item, here is normally a ID for that menu item for the sake of this explaintion will will sya the menu item has an ID of 33245, so i would do the following in my code "sendmessage(Hwnd,WM_COMMAND, 33245, 0);" which is no problems IN NON DELPHI APPS. but I want to find the ID of …
-
Topic title says it all. Is it possible to write a code for it in VB .NET... But i don't wanna extract it to some place. I wanna run it from resources only.
-
Hey guys, I'm looking to transform an EXE into a DLL. Nothing complex, just want the app to run when LoadLibrary executes DLL main. I don't know if it's possible to do this, and I don't know if it's been done. A quick review revealed nothing. However, any insights into this would be much appreciated. -Loveless
-
from : http://magic.shabgard.org Magic Api Hook Engine v1.0 (Delphi Source Code) this is a simple all around process Api hooker and Dll Injector. UserMode(Ring3) just for WinNT family. some examples included. http://magic.shabgard.org/MagicApiHook.zip
-
Is there a plugin interface for firefox that allows adding image decoders? Basically I want to add an image decoder to firefox without rebuilding the source.
-
Well I came across an interesting article. http://www.codeproject.com/KB/dotnet/Debug...rk_Classes.aspx It is a bit old but with some modifications it works. I was reading about sequence points http://blogs.msdn.com/jmstall/archive/2004/10/03/237137.aspx. Is there any ways with ilasm to maximize sequence points? When debugging I stepped into Thread.Sleep() and got (from the il file I had created from that first link). .method public hidebysig static void Sleep(int32 millisecondsTimeout) cil managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call void System.Threading.Thread::SleepInternal(int32) IL_0006: ret } // end of method Thre…
-
Let's say I have a piece of code like this one: private void RecursePath(DirectoryInfo Root) { if (Root.Exists) { //System.Threading.Thread.Sleep(15000); FileInfo[] files = Root.GetFiles(); LastFile = ""; foreach (FileInfo fi in files) { try { LastFile = fi.FullName; FileStream f = File.Open(LastFile, FileMode.Open); f.Close(); //FileIO TestFile = new FileIO(LastFile, FileIO.FileIoMode.OpenExisting); } catch (Exception e) { PrintException(LastFile, e); } }Yeah, it's a bit ugly sorry. The point is that I'm having some troubles trying to understand why File.Open() throws PathTooLongException with paths shor…
-
Where can I download an ASM compiler(I know its not exactly a compiler but for lack of a better word...)?
-
Hi, buddies, I used webbrowser (IWebBrowser2) in my code, and I want to disable the navigation sound when I click a link. In case of changing system sound, I'd like to mute my application only. Just like some movie players, they can adjust their volume individully. Thank you for your help.
-
I am a beginner in c++ but i noticed that when i wrote a c++ dll and then loaded it into olly so i could check if everything worked, it would also display the source of what every operand does. It happens completely automatic however this time it does not, so how can i load my source code into olly? thanks
-
Sorry if the topic can be found somewhere in this forum, i used the search with several search words and couldn't find it.. if someone knows the URL to some page where i can get this open-source sidchip player (source codes) please post it here.. Thanks. edit: working on a intro where i want to play c64 sidchip tunes edit2: found it myself,here's the link for anyone interested about it: Stitchy SID
-
BOOLEAN __stdcall fake_KeInsertQueueApc(IN PKAPC Apc, IN PVOID SystemArgument1, IN PVOID SystemArgument2, IN KPRIORITY PriorityBoost) { PEPROCESS pTargetProcess; PUCHAR pTargetProcessName; ULONG XXThread; //------------------------------------------------------------------------------------------------------- pTargetProcess=IoThreadToProcess( (PETHREAD)Apc->Thread ); // pTargetProcessName=(PUCHAR)((ULONG)pTargetProcess+g_ProcessNameOffset); pTargetProcessName=PsGetProcessImageFileName(pTargetProcess); //-------------------------------------------------------------------------------------------------------// if ((strcmp(pTargetProcessName,"notep…
-
Well the provided .def file mismatches with the provided header. How so? Well the header defines every function normally but the definition file defines every function with a underscore in front of the name. So instead of redoing the header file. Can I regenerate the .def file without underscores? Edit: Even though msvc prepends _ to the name it can't find the external reference unless I prepend a _ myself.
-
Anyone have source for a Pe editor or dumper. Any lingo is fine.
-
hi all thanks for you time, i got trouble with about dialog. i use keygen template from ufo-pu55y and about dialog like star fall. but i think i need move it up. what i need to do. if need a bones.inc file for that about dialog, i think i can upload it on here for check it. thanks for your help. regards Note : I added asm file for this troube too... bones.rar IUG_Keygen_GIF_1.rar