Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

Nemok

@Nemok
About
Posts
18
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Record keyboard and mouse
    N Nemok

    Hello, Could you please tell me if you know of any other way of receiving global mouse and keyboard input except for SetWindowsHookEx within a dll? I am working on an macro recording application and I want to be able to record all keyboard actions and all mouse clicks and movements and then play them as recorded. I cannot use SetWindowsHookEx with WH_JOURNALRECORD and WH_JOURNALPLAYBACK because they do not work well in Vista. WH_JOURNALRECORD need uiAccess set to true in manifest which involves having a signed certificate. I saw macro recorders on the internet that set a global hook somehow and catch all mouse and keyboard events without even requiring Admin rights from UAC or using dlls. How can I read the raw input from mouse and keyboard (from user mode)? Found an application (Axife Mouse Recorder) that does this. Please help. Thank you.

    www.nkprods.com

    C / C++ / MFC question com cryptography help

  • Unpack Files to memory and then run them (like thinstall)
    N Nemok

    Yes but I need some more fail proof than that. Nemok

    C / C++ / MFC performance help question

  • Unpack Files to memory and then run them (like thinstall)
    N Nemok

    Actually yes I need to load an entire file and run it. Any ideas? Nemok

    C / C++ / MFC performance help question

  • Unpack Files to memory and then run them (like thinstall)
    N Nemok

    Yes but using a FileMonitor like the one from SysInternals it is very easy to find out what files is the app working with. Nemok

    C / C++ / MFC performance help question

  • Unpack Files to memory and then run them (like thinstall)
    N Nemok

    Hi, Is it possible in anyway to load a file into memory and then run it from there? I am working on a file compressor (www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save multiple files as an exe file that can then run the compressed files after unpacking them to a temp folder. The problem is that I have to unpack the files to the hard-disk and then run them from there, making them vulnerable to user that may try to get the original (unprotected) files. So the user shouldn't have access to the file operations in the background. So I need to keep the original unpacked files hidden from the user, until after they are opened by the unpacker and then deleted. So users should have no kind of access to the files (should not see them, open them, should not be able to modify or copy them) but the unpacker should be able to run them. (that is why I think that the memory is the best solution) So is there any way to protect them, like unpacking them directly to memory and then run them from there? Something like a virtual disk in memory? Thanks. Nemok

    C / C++ / MFC performance help question

  • Delete file at startup or shutdown
    N Nemok

    Thanks, guys it worked. Nemok

    C / C++ / MFC tutorial question

  • Please help
    N Nemok

    Hi guys, I am developing a program that replaces executables icons with icons from other applications (executables) or from icon files. For now I am using this code in order to do it: HMODULE hLibrary; HRSRC hResource; HGLOBAL hResourceLoaded; LPBYTE lpBuffer; HICON hIcon; int skip=0; hLibrary = LoadLibrary(icon); if((int) ExtractIcon(AfxGetInstanceHandle(), icon, (UINT) -1)) for(unsigned long n=0;n<=1000000;n++) { hResource = FindResource(hLibrary,MAKEINTRESOURCE(n), RT_ICON); if(hResource) if(skip==IconIndex) n=1000001; else skip++; } else MessageBox("The icon file or the first file contains no icon"); if(hResource) { hResourceLoaded = LoadResource(hLibrary,hResource); lpBuffer = (LPBYTE) LockResource(hResourceLoaded); hIcon=CreateIconFromResource((PBYTE)lpBuffer,SizeofResource(hLibrary,hResource),1,0x00030000); HANDLE hUpd=BeginUpdateResource(my_name,0); UpdateResource((HMODULE)hUpd,RT_ICON,MAKEINTRESOURCE(1),MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),lpBuffer,SizeofResource(hLibrary,hResource)); EndUpdateResource(hUpd, FALSE); } FreeLibrary(hLibrary); So now I am using LoadLibrary, FindResource, LockResource to extract icon from executable or dll and then I use UpdateResource(...) to write icon to new exe. The problem is that this options does not suport icon files (.ico) and also it doesn't allow the user to extract the specified icon. I am using ExtractIcon() to get icon number. Another way, more efficient and better would be to use ExtractIcon() to get icon form exe, dll or ico file. The problem of this mettod is that ExtractIcon() does not return a pointer to the data to be written by UpdateResource(...) instead it returns a HICON handle. My question is how could I write this HICON handle to the new exe using UpdateResource(...). Itried several different methods but achieved one worked? Please help anyone, this is very important to me. Thanks.

    C / C++ / MFC help question

  • Why doesn't this work?
    N Nemok

    Well this is my problem: How can I grab a pointer from the resource (HICON)??? I was trying to do just that by using GlobalLock(). Do you know any other way to do this???

    C / C++ / MFC help question

  • Why doesn't this work?
    N Nemok

    HICON hIcon; LPBYTE lpBuffer; hIcon=dlg.GetIconHandle(); lpBuffer=(LPBYTE)::GlobalLock(hIcon); HANDLE hUpd=BeginUpdateResource("D:\\n.exe",0); UpdateResource((HMODULE)hUpd, RT_ICON,MAKEINTRESOURCE(1), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPBYTE)lpBuffer, GlobalSize(hIcon)); EndUpdateResource(hUpd, FALSE); GlobalUnlock(lpBuffer); I'm using this code to take the icon from an exe and replace the icon in another exe, but it doesn't work. Every time lpBuffer is empty after GlobalLock. the hIcon handle is retrieved by ExtractIcon(); What am I doing wrong? Please help!

    C / C++ / MFC help question

  • 2 not so simple questions
    N Nemok

    you are right DavidCrow. _access and _waccess are get functions. I wan't set functions that hides (locks) folders no matter on what account you are, including administrator. Any ideas anybody?

    C / C++ / MFC question

  • 2 not so simple questions
    N Nemok

    1. How can I drag my dialog when draging over a certain portion of the dialog??? When I'm using: UINT CNBinderDlg::OnNcHitTest(CPoint point) { UINT ret = CDialog::OnNcHitTest(point); if(ret == HTCLIENT) { return HTCAPTION; } return ret; } I can drag the window by draging anywhere in the window. 2. Is it posible to hide or lock a directory, not only in explorer(with ".{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}") but in other file managers like TotalCommander too??? Thanx!:confused:

    C / C++ / MFC question

  • phone number
    N Nemok

    Can someone please tell me how can I find out the number to which my computer is connected when using a dial-up connection, without using phone-books. I want to monitor a dial-up connection that I haven't initialized in my program so I have to find out its handle first Thanks

    C / C++ / MFC question

  • .NET release problem HELP
    N Nemok

    I've reinstalled Windows on my computer and then installed VS.NET 7.0 and the program isn't working on my computer either now. I have the .NET framework installed on my computer.When i try to debug it I receive this error: "Unhandled exception at 0x77f60b6f in nMonitor.exe: 0xC0000005: Access violation writing location 0x00030fdc."In the call stack it shows:" ntdll.dll!77f60b6f() " Somebody help. This is strange.

    .NET (Core and Framework) help question csharp tools announcement

  • Please Help!!!I'm disperate
    N Nemok

    I've reinstalled Windows on my computer and then installed VS.NET 7.0 and the program isn't working on my computer either. I have the .NET framework installed. Somebody help. This is strange.

    C / C++ / MFC help question csharp tools announcement

  • Please Help!!!I'm disperate
    N Nemok

    I have a serrious problem.I've developed an application on VC6 that used to work fine. Now I have converted it on VC.NET 7.0 and builded in RELEASE configuration. The problem is that it only works on my computer. On other computers that don't have VC installed it just doesn't start. If started with depends.exe (XP Support Tools) it gives the following error: Second chance exception 0xC00000005 (Access violation) occured in "NTDLL.DLL" at address 0x77F8243D Exited "program" with code 128(0x80) They have all the necesary dlls. What should I do? I'm disperate. If there is an error in program why does it work on my computer fine, and on other computers without VC .NET installed crashes without any errors?? Contact: nemoprod@go.ro, www.nemoprod.go.ro .

    C / C++ / MFC help question csharp tools announcement

  • .NET release problem HELP
    N Nemok

    I have a serrious problem.I've developed an application on VC6 that used to work fine. Now I have converted it on VC.NET 7.0 and builded in RELEASE configuration. The problem is that it only works on my computer. On other computers that don't have VC installed it just doesn't start. If started with depends.exe (XP Support Tools) it gives the following error: Second chance exception 0xC00000005 (Access violation) occured in "NTDLL.DLL" at address 0x77F8243D Exited "program" with code 128(0x80) They have all the necesary dlls. What should I do? I'm disperate. If there is an error in program why does it work on my computer fine, and on other computers without VC .NET installed crashes without any errors?? Contact: nemoprod@go.ro, www.nemoprod.go.ro .

    .NET (Core and Framework) help question csharp tools announcement

  • .NET version problem
    N Nemok

    :confused:I have a serrious problem.I've developed an application on VC6 that used to work fine. Now I have converted it on VC.NET 7.0 and builded in RELEASE configuration. The problem is that it only works on my computer. On other computers that don't have VC installed it just doesn't start. If started with depends.exe (XP Support Tools) it gives the following error: Second chance exception 0xC00000005 (Access violation) occured in "NTDLL.DLL" at address 0x77F8243D Exited "program" with code 128(0x80) They have all the necesary dlls. What should I do? I'm disperate. Could it be because they don't have the .NET framework installed? nemo

    C / C++ / MFC help announcement csharp dotnet tools

  • close awareness
    N Nemok

    I want to write an application that knows when it is closed from the Task Manager and it can prevent it from happening

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups