Permalink
Browse files

Restructured the project and added a solution file, a graphics direct…

…ory, and a references directory.
  • Loading branch information...
1 parent 8b98db5 commit 31dc5ed8a3167c8bbb190ce9fa06de554661b51d @joeyespo committed Oct 17, 2003
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
File renamed without changes.
@@ -0,0 +1,44 @@
+Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
+
+###############################################################################
+
+Project: "HookInjEx"=.\HookInjEx\HookInjEx.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name HookInjEx_DLL
+ End Project Dependency
+}}}
+
+###############################################################################
+
+Project: "HookInjEx_DLL"=.\HookInjEx_DLL\HookInjEx_DLL.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Global:
+
+Package=<5>
+{{{
+}}}
+
+Package=<3>
+{{{
+}}}
+
+###############################################################################
+
@@ -0,0 +1,96 @@
+/***************************************************************
+Module name: HookInjEx.cpp
+Copyright (c) 2003 Robert Kuster
+
+Notice: If this code works, it was written by Robert Kuster.
+ Else, I don't know who wrote it.
+
+ Use it on your own risk. No responsibilities for
+ possible damages of even functionality can be taken.
+***************************************************************/
+
+#include <windows.h>
+
+#include "resource.h"
+#include "..\HookInjEx_DLL\HookInjEx_DLL.h"
+
+//-----------------------------------------------
+// global variables & forward declarations
+//
+HWND hStart; // handle to start button
+
+BOOL CALLBACK MainDlgProc (HWND,UINT,WPARAM,LPARAM);
+
+
+//-----------------------------------------------
+// WinMain
+//
+int APIENTRY WinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPSTR lpCmdLine,
+ int nCmdShow)
+{
+ hStart = ::FindWindow ("Shell_TrayWnd",NULL); // get HWND of taskbar first
+ hStart = ::FindWindowEx (hStart, NULL,"BUTTON",NULL); // get HWND of start button
+
+ // display main dialog
+ ::DialogBoxParam (hInstance, MAKEINTRESOURCE (IDD_WININFO), NULL, MainDlgProc, NULL);
+
+ return 0;
+}
+
+
+//-----------------------------------------------
+// MainDlgProc
+// Notice: dialog procedure
+//
+BOOL CALLBACK MainDlgProc (HWND hDlg, // handle to dialog box
+ UINT uMsg, // message
+ WPARAM wParam, // first message parameter
+ LPARAM lParam ) // second message parameter
+{
+ static int bChecked = false;
+
+ switch (uMsg) {
+
+ case WM_INITDIALOG:
+ ::SetTimer( hDlg, 101, 300, NULL );
+ return true;
+
+ // if running more instances of HookInjEx,
+ // keep their interface consistent
+ case WM_TIMER:
+ bChecked = (IsDlgButtonChecked( hDlg, IDC_BUTTON ) == BST_CHECKED);
+ if( IsSubclassed() && !bChecked) {
+ ::CheckDlgButton( hDlg, IDC_BUTTON, BST_CHECKED );
+ ::SetDlgItemText( hDlg, IDC_BUTTON, "Unmap Dll" );
+ }
+ else if (!IsSubclassed() && bChecked) {
+ ::CheckDlgButton( hDlg, IDC_BUTTON, BST_UNCHECKED );
+ ::SetDlgItemText( hDlg, IDC_BUTTON, "Inject Dll" );
+ }
+ break;
+
+ case WM_COMMAND:
+ if( !IsSubclassed()) {
+ InjectDll( hStart );
+ if( IsSubclassed() )
+ ::SetDlgItemText( hDlg, IDC_BUTTON, "Unmap Dll" );
+ }
+ else {
+ UnmapDll();
+ if( !IsSubclassed() )
+ ::SetDlgItemText( hDlg, IDC_BUTTON, "Inject Dll" );
+ }
+ break;
+
+ case WM_CLOSE:
+ if( IsSubclassed() )
+ UnmapDll();
+
+ ::EndDialog (hDlg, 0);
+ break;
+ }
+
+ return false;
+}
@@ -0,0 +1,117 @@
+# Microsoft Developer Studio Project File - Name="HookInjEx" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Application" 0x0101
+
+CFG=HookInjEx - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "HookInjEx.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "HookInjEx.mak" CFG="HookInjEx - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "HookInjEx - Win32 Release" (based on "Win32 (x86) Application")
+!MESSAGE "HookInjEx - Win32 Debug" (based on "Win32 (x86) Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "HookInjEx - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Build\Release"
+# PROP Intermediate_Dir "Build\Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FR /FD /c
+# SUBTRACT CPP /YX /Yc /Yu
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x424 /d "NDEBUG"
+# ADD RSC /l 0x424 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib /nologo /subsystem:windows /machine:I386 /out:"..\Build\HookInjEx.exe"
+
+!ELSEIF "$(CFG)" == "HookInjEx - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Build\Debug"
+# PROP Intermediate_Dir "Build\Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /FD /GZ /c
+# SUBTRACT CPP /YX /Yc /Yu
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x424 /d "_DEBUG"
+# ADD RSC /l 0x424 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib /nologo /subsystem:windows /debug /machine:I386 /out:"..\Build\HookInjEx.exe" /pdbtype:sept
+
+!ENDIF
+
+# Begin Target
+
+# Name "HookInjEx - Win32 Release"
+# Name "HookInjEx - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\HookInjEx.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\HookInjEx.rc
+# End Source File
+# Begin Source File
+
+SOURCE=.\resource.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# Begin Source File
+
+SOURCE=.\HookInjEx.ico
+# End Source File
+# End Group
+# End Target
+# End Project
Binary file not shown.
@@ -0,0 +1,132 @@
+//Microsoft Developer Studio generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#define APSTUDIO_HIDDEN_SYMBOLS
+#include "windows.h"
+#undef APSTUDIO_HIDDEN_SYMBOLS
+#include "resource.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// Slovenian resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_SLV)
+#ifdef _WIN32
+LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
+#pragma code_page(1250)
+#endif //_WIN32
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_WININFO DIALOGEX 0, 0, 67, 33
+STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
+EXSTYLE WS_EX_TOPMOST | WS_EX_TOOLWINDOW
+CAPTION " HookInjEx "
+FONT 7, "MS Sans Serif"
+BEGIN
+ LTEXT "By Robert Kuster",IDC_STATIC,7,24,55,8
+ CONTROL "Inject Dll",IDC_BUTTON,"Button",BS_AUTOCHECKBOX |
+ BS_PUSHLIKE | BS_FLAT | WS_TABSTOP,6,4,55,17
+END
+
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "resource.h\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO DISCARDABLE
+BEGIN
+ IDD_WININFO, DIALOG
+ BEGIN
+ BOTTOMMARGIN, 30
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_MYICON ICON DISCARDABLE "HookInjEx.ico"
+#endif // Slovenian resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+2 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "#include ""windows.h""\r\n"
+ "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "#include ""resource.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE DISCARDABLE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
Oops, something went wrong.

0 comments on commit 31dc5ed

Please sign in to comment.