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
M

munawar1968

@munawar1968
About
Posts
32
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Security Hardening Tips for Windows XP
    M munawar1968

    Yeah.. maybe that to.. Microsoft Motto: "If it compiles.. Ship it."

    The Lounge sysadmin security

  • Security Hardening Tips for Windows XP
    M munawar1968

    1. Disable DCOM 2. Disable Remote Desktop 2. Disable Port 445 3. Disable *.Chm Execution - Denies all Chm exploits. 4. Disable SSDP(UPNP) TCP Port 5000,UDP 1900 5. Disable File Sharing 6. Disable Auto Share Server 7. Disable Messenger Service 8. Disable Null Session 9. Force Guest upon connection to any share 10. Disable Sam Enumeration 11. Dont Display Last UserName 12. Disable Zip Files As Folders 13. Disable Multiple TSSessions 14. Disable CMD 15. Disable Network Neighbourhood. 16. Disable Internet Explorer 17. Disable Dial-up Networking 19. Disable MS Office 21. Disable explorer.exe 20. Disable Power On switch 21. Power Off

    The Lounge sysadmin security

  • coding a ActiveX control
    M munawar1968

    Hi Anybody has a VC++ sample code for an ActiveX control to be viewed via IE browser that is capable of downloading a file (say via winsock or http api) from the website where it is hosted? thanx in advance

    C / C++ / MFC c++ com json question

  • Graphics Controller *.inf File
    M munawar1968

    Re:maybe somewhere in registers this information is located? ..Maybe.

    System Admin question graphics

  • troubles in making a filecopy program in visual c++
    M munawar1968

    If you're using VC 6. do the following: Menu item Project->Settings->Tab C++ -> Category 'Code Generation'-> set this option to 'Multithreaded' or 'Debug Multithreaded'

    C / C++ / MFC c++ help question

  • Writing Version Info
    M munawar1968

    //Here goes.. this only copies ver from a src to dst file.. char srcfile[255], dstfile[255]; void changeVersion() { DWORD *dummy; char *verinfo; HANDLE hResource; LONG lParam=0 ; int size=0; dummy=new DWORD; size=GetFileVersionInfoSize(srcfile,dummy); verinfo=(char*) malloc (size); GetFileVersionInfo(srcfile,NULL,size,verinfo); hResource = BeginUpdateResource(dstfile, FALSE); if (NULL != hResource) { if (UpdateResource(hResource, RT_VERSION, MAKEINTRESOURCE(VS_VERSION_INFO), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPVOID) verinfo, size) != FALSE) { EndUpdateResource(hResource, FALSE); } } } //end code regs

    C / C++ / MFC tutorial visual-studio help question announcement

  • Trapping the Kill of a process in Task Manager
    M munawar1968

    Most viruses these days seem to be using this technique... (Re.."In each create and open a handle of the other process, and wait for close notification of the other process, when you get that notify, just shell the process again." ) How can it be countered .. programmatically or otherwise? Any ideas?

    System Admin help csharp json

  • Help finding hook dll
    M munawar1968

    Your original poser was about about locating the correct hooking DLL. I assume you inject SAS to hide taskmanager/ capture change passwords sequence/ capture ALT-CTRL-DEL. If so, then the method you use (quite tricky to code correctly) seems ok. To capture system-wide keybd input for all threads/windows(except SAS input) one can also do without DLLs in far simpler fashion.. check this http://neworder.box.sk/newsread.php?newsid=10952

    C / C++ / MFC question com performance help

  • Remove LAN-Adapter
    M munawar1968

    Check this /* * ndis_events - test program for receiving NdisMIndicateStatus() * events * Copyright (c) 2004, Jouni Malinen * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * Alternatively, this software may be distributed under the terms * of BSD license. * * See README and COPYING for more details. */ #define _WIN32_WINNT 0x0400 #include #include #include #include class CNdisSink; struct EVENT_HANDLER_MAP { const wchar_t* EventName; void (CNdisSink::*Handler)(IWbemClassObject *pObj); }; class CNdisSink : public IWbemObjectSink { public: CNdisSink(); ~CNdisSink(); // IUnknown members STDMETHOD(QueryInterface)(REFIID, LPVOID *); STDMETHOD_(ULONG, AddRef)(void); STDMETHOD_(ULONG, Release)(void); // IWbemObjectSink members STDMETHOD(Indicate)( long lObjectCount, IWbemClassObject **ppObjArray); STDMETHOD(SetStatus)( long lFlags, HRESULT hResult, BSTR strParam, IWbemClassObject *pObjParam); public: int RegisterAsyncNotification(IWbemServices *pSvc); private: void AdapterArrival(IWbemClassObject *pObj){} void AdapterRemoval(IWbemClassObject *pObj){} void ResetStart(IWbemClassObject *pObj){} void ResetEnd(IWbemClassObject *pObj){} void LinkSpeedChange(IWbemClassObject *pObj){} void MediaConnect(IWbemClassObject *pObj); void MediaDisconnect(IWbemClassObject *pObj); void MediaSpecific(IWbemClassObject *pObj); void ProtocolBind(IWbemClassObject *pObj){} void ProtocolUnbind(IWbemClassObject *pObj){} void DevicePowerOn(IWbemClassObject *pObj){} void DevicePowerOff(IWbemClassObject *pObj){} private: static EVENT_HANDLER_MAP s_EventHandlerMap[]; UINT m_cRef; }; EVENT_HANDLER_MAP CNdisSink::s_EventHandlerMap[] = { { L"MSNdis_NotifyAdapterArrival", &CNdisSink::AdapterArrival }, { L"MSNdis_NotifyAdapterRemoval", &CNdisSink::AdapterRemoval }, { L"MSNdis_StatusResetStart", &CNdisSink::ResetStart }, { L"MSNdis_StatusResetEnd", &CNdisSink::ResetEnd }, { L"MSNdis_StatusLinkSpeedChange", &CNdisSink::LinkSpeedChange }, { L"MSNdis_StatusMediaConnect", &CNdisSink::MediaConnect }, { L"MSNdis_StatusMediaDiscon

    C / C++ / MFC question

  • Remove LAN-Adapter
    M munawar1968

    See http://www.codeproject.com/internet/getmac.asp?df=100&forumid=2459&exp=0&select=47194#xx47194xx maybe it'll help.. Keep a list of mac addresses in memory and periodically check if the list is up to date

    C / C++ / MFC question

  • Help finding hook dll
    M munawar1968

    Correct... my mistake. But the dll must call "CallNextHookEx" ..inside the callback function( whatever the programmer decides to name it). So you can search for this string instead.

    C / C++ / MFC question com performance help

  • Help finding hook dll
    M munawar1968

    Check for the following string in each of the dll's : "SetWindowsHook" You can open the dll's in notepad.exe .. most of the compiled code will be garbled .. however imported function names are always in text form.

    C / C++ / MFC question com performance help

  • When use callback function?
    M munawar1968

    http://www.google.co.in/search?q=callback+function

    C / C++ / MFC question

  • Get exe File version, icon etc programmatically
    M munawar1968

    Exactly what i wanted... thanks a million

    C / C++ / MFC c++ question announcement

  • Get exe File version, icon etc programmatically
    M munawar1968

    Thanks man.. can this info (gathered via getfileversion,extracticon) be used to set the version /icon of another exe file programmatically?

    C / C++ / MFC c++ question announcement

  • Get exe File version, icon etc programmatically
    M munawar1968

    Hi folks.. Is there a way to read an exe file's version info, icon etc programatically using C/C++ ? e.g How do we read notepad.exe's version info via C/C++ calls? thanks in advance..

    C / C++ / MFC c++ question announcement

  • CAsyncSocket: Pass the Proxy
    M munawar1968

    1. Speak CERN proxy syntax to the proxy server at PROXYIP:PROXYPORT e.g "CONNECT MYSERVERIP:MYSERVERPORT HTTP/1.1" 2. Use WinInet API instead e.g Use InternetOpen() with Flags INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY or INTERNET_OPEN_TYPE_PROXY

    C / C++ / MFC sysadmin question

  • I want to get E-Mail account infomation of OutLook( express , XP, 2003... )
    M munawar1968

    Check HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook

    C / C++ / MFC tutorial com help question

  • I want to get E-Mail account infomation of OutLook( express , XP, 2003... )
    M munawar1968

    So you use Outlook2003.. not Outlook express. I personally don't have Outlook2003. But you may be able to locate the correct key in the registry yourself. Do a Find on the registry using a known E-mail account e.g abc@xyz.com. The key should show up in the find results.

    C / C++ / MFC tutorial com help question

  • I want to get E-Mail account infomation of OutLook( express , XP, 2003... )
    M munawar1968

    HKCU means HKEY_CURRENT_USER.. HKCU\SOFTWARE\Microsoft\Internet Account Manager\Accounts\ key is there in ALL Windoze boxes pal. XP/2003 etc etc. look it up again.

    C / C++ / MFC tutorial com help question
  • Login

  • Don't have an account? Register

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