Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Programming and Coding

Programming and coding tips, help and solutions...

  1. 0xFF
    Started by 0xFF,

    returns a process base (CSTR) priority by a process ID, takes care of the low-level part function GetProcessPri(PID: DWORD): String; var hSnap: THandle; lppe: TProcessEntry32A; szPri: String; begin lppe.dwSize := sizeof(lppe); hSnap := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);if Process32FirstA(hSnap, lppe) <> False then With lppe Do begin if PID = lppe.th32ProcessID then case lppe.pcPriClassBase of 13:szPri := 'High'; 8,9, 11:szPri := 'Normal'; 6:szPri := 'Below Normal'; 4:szPri := 'Low'; end; while Process32NextA(hSnap, lppe) do if PID = lppe.th32ProcessID then case lppe.pcPriClassBase of 13:szPri := 'High'; 8,9, 11:szPri := 'Normal';…

    • 1 reply
    • 3.9k views
  2. randy
    Started by randy,

    How is it possible to dumpe or decmpile and extract the Chm and Hlp files' contenets ( if possible in Delphi please ) ? many thanks .

    • 0 replies
    • 2.9k views
  3. Gushe
    Started by Gushe,

    Hello everybody. While trying to create my own patcher with some extended features in Delphi, I created some functions that I could easy Copy-Paste to other patchers, and to ease-up further use. The first one will Patch One byte at a specified Offset: //Patches one byte at a certain Offset. Procedure OffsetBytePatch(AppPath: string; Offset: Longint; PatchByte: byte); var PatchFile: File Of Byte; begin AssignFile(PatchFile , AppPath); Reset(PatchFile); Seek(PatchFile, Offset); Write(PatchFile, PatchByte); CloseFile(PatchFile); end; The second one will Read one byte at a certain offset, for use in eg. checking if already patched. //Reads on byte at a certa…

    • 11 replies
    • 5.6k views
  4. high6
    Started by high6,

    I am trying to emulate this assembly in C++ (to make it more readable then a hacky inline assembly). MOV EAX,DWORD PTR DS:[5D91B4] PUSH ESI LEA ECX,DWORD PTR DS:[EAX+89C08] CALL 0047F3F8So I have this psuedo code class MAIN { public: class FUNCLIST { public: bool (* FuncListContains)(int idx,bool) = (bool (*)(int,bool))0x0047EE03; int FuncListGetItem(int idx) { return idx*2; } }; FUNCLIST* FuncList = (FUNCLIST*)(this+0x00089C08); }; MAIN* Main = (MAIN*)0x005D91B4;Of course this doesn't work because the function pointer isn't static. Is there anyway to set the function pointer as a constant but keeping it as a member? Summary: I am injecting…

    • 6 replies
    • 3.7k views
  5. Gushe
    Started by Gushe,

    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…

    • 14 replies
    • 7.2k views
  6. Gushe
    Started by Gushe,

    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
    • 3.5k views
  7. high6
    Started by high6,

    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.

    • 2 replies
    • 3.3k views
  8. high6
    Started by high6,

    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.

    • 2 replies
    • 3.2k views
  9. 0ron
    Started by 0ron,

    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!

    • 1 reply
    • 3.5k views
  10. steve10120
    Started by steve10120,

    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 …

    • 2 replies
    • 7.1k views
  11. studioeliza
    Started by studioeliza,

    How I can see datas protect in my USB ?

    • 2 replies
    • 3.7k views
  12. 6748222
    Started by 6748222,

    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?

    • 7 replies
    • 6.7k views
  13. alaphate
    Started by alaphate,

    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

    • 1 reply
    • 3.6k views
  14. M2R
    Started by M2R,

    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

    • 5 replies
    • 4.2k views
  15. JustAGuy
    Started by JustAGuy,

    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

    • 2 replies
    • 4.7k views
  16. Departure
    Started by Departure,

    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 …

    • 0 replies
    • 3.9k views
  17. Keygen_Dr.
    Started by Keygen_Dr.,

    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.

    • 3 replies
    • 4.9k views
  18. Loveless
    Started by Loveless,

    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

    • 14 replies
    • 6.6k views
  19. thaton
    Started by thaton,

    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

    • 15 replies
    • 13k views
  20. high6
    Started by high6,

    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.

    • 0 replies
    • 3.2k views
  21. high6
    Started by high6,

    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…

    • 0 replies
    • 3.4k views
  22. Hikaru
    Started by Hikaru,

    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…

    • 1 reply
    • 3.2k views
  23. as1
    Started by as1,

    Where can I download an ASM compiler(I know its not exactly a compiler but for lack of a better word...)?

    • 11 replies
    • 4.9k views
  24. alaphate
    Started by alaphate,

    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.

    • 0 replies
    • 2.9k views
  25. Scale
    Started by Scale,

    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

    • 5 replies
    • 12.2k views

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.