Programming and Coding
Programming and coding tips, help and solutions...
1,890 topics in this forum
-
- 14 replies
- 6.9k views
Hey all! I am working on my first project in MASM at the moment, and it is actually going quite well. Though I ran into a small problem. I want to read a file into memory and save it to another file, with some changes (yeah, I want to encrypt a file), and for doing this I am creating a new procedure. Now, because of everbody has a different amount of memory I let the user define how much bytes they want to be loaded in memory at once for encrypting. The more bytes loaded at once, the less ReadFile has to be called, and the quicker the encrypting will be. But what if the last block of bytes is to be read? (I reach EOF) the lpNumberOfBytesRead parameter should be set t…
-
- 2 replies
- 3.3k views
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…
-
- 2 replies
- 3k views
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.
-
Patching with threading?
by high6- 2 replies
- 3k views
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.
-
MMORPG
by 0ron- 1 reply
- 3.3k views
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!
-
[Delphi] Extend last section problems
by steve10120- 2 replies
- 6.9k views
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 …
-
USB protector
by studioeliza- 2 replies
- 3.5k views
How I can see datas protect in my USB ?
-
[question] how to launch *.exe from DLL
by 6748222- 7 replies
- 6.4k views
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?
-
How to change VC6 DDX messagebox TITLE bar?
by alaphate- 1 reply
- 3.4k views
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
-
Prevent EWX_FORCE
by M2R- 5 replies
- 3.9k views
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
-
FGIntRSA example
by JustAGuy- 2 replies
- 4.5k views
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
-
Delphi Applications MenuITem ID
by Departure- 0 replies
- 3.6k views
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 …
-
Running an exe from resources in VB .NET?
by Keygen_Dr.- 3 replies
- 4.7k views
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.
-
Exe to DLL
by Loveless- 14 replies
- 6.3k views
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
-
[Delphi] Magic Api Hook Engine
by thaton- 15 replies
- 12.6k views
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
-
- 0 replies
- 2.9k views
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.
-
Create a debug mscorlib?
by high6- 0 replies
- 3.1k views
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…
-
C# .NET File.Open() strage behaviour
by Hikaru- 1 reply
- 2.9k views
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…
-
ASM program
by as1- 11 replies
- 4.6k views
Where can I download an ASM compiler(I know its not exactly a compiler but for lack of a better word...)?
-
sound volume control problem
by alaphate- 0 replies
- 2.6k views
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.
-
Ollydbg load source code
by Scale- 5 replies
- 11.8k views
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
-
Stitchy SID?
by Jaymz- 0 replies
- 3k views
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
-
Tow functions
by HelloRootkit- 1 reply
- 3.1k views
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…
-
- 4 replies
- 3.2k views
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.
-
Pe editor/dumper
by 0ron- 0 replies
- 4.3k views
Anyone have source for a Pe editor or dumper. Any lingo is fine.