├── .gitattributes ├── .gitignore ├── AccessCtrl ├── AccessCtrl.sln ├── AccessCtrl.v12.suo ├── AccessCtrl │ ├── AccessCtrl.aps │ ├── AccessCtrl.cpp │ ├── AccessCtrl.h │ ├── AccessCtrl.rc │ ├── AccessCtrl.vcxproj │ ├── AccessCtrl.vcxproj.filters │ ├── AccessCtrlDlg.cpp │ ├── AccessCtrlDlg.h │ ├── ReadMe.txt │ ├── res │ │ ├── AccessCtrl.ico │ │ └── AccessCtrl.rc2 │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── Debug │ ├── 000001_sz │ └── test.mdb ├── C++ hook DEMO ├── Globle Hook │ ├── DllHookTest │ │ ├── DllHookTest.aps │ │ ├── DllHookTest.cpp │ │ ├── DllHookTest.h │ │ ├── DllHookTest.ico │ │ ├── DllHookTest.rc │ │ ├── DllHookTest.vcxproj │ │ ├── DllHookTest.vcxproj.filters │ │ ├── ReadMe.txt │ │ ├── resource.h │ │ ├── small.ico │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── Hook.sln │ ├── Hook.v12.suo │ └── Hook │ │ ├── Hook.vcxproj │ │ ├── Hook.vcxproj.filters │ │ ├── ReadMe.txt │ │ ├── Source.def │ │ ├── dllmain.cpp │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h ├── InnerHook │ ├── InnerHook.sln │ ├── InnerHook.v12.suo │ └── InnerHook │ │ ├── InnerHook.aps │ │ ├── InnerHook.cpp │ │ ├── InnerHook.h │ │ ├── InnerHook.ico │ │ ├── InnerHook.rc │ │ ├── InnerHook.vcxproj │ │ ├── InnerHook.vcxproj.filters │ │ ├── ReadMe.txt │ │ ├── resource.h │ │ ├── small.ico │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h └── 钩子学习.docx ├── CreatePermissionFolder ├── CreateFolder.sln ├── CreateFolder.v12.suo └── CreateFolder │ ├── CreateFolder.cpp │ ├── CreateFolder.vcxproj │ ├── CreateFolder.vcxproj.filters │ ├── ReadMe.txt │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── Drive transformation ├── 盘符转换.sln ├── 盘符转换.v12.suo └── 盘符转换 │ ├── ReadMe.txt │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ ├── 盘符转换.cpp │ ├── 盘符转换.vcxproj │ └── 盘符转换.vcxproj.filters ├── FindHandle ├── FindHandle.sln ├── FindHandle.v12.suo ├── FindHandle │ ├── Core.cpp │ ├── Core.h │ ├── FindHandle.cpp │ ├── FindHandle.vcxproj │ ├── FindHandle.vcxproj.filters │ ├── ReadMe.txt │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── handles.zip └── handles │ └── handles.c ├── Get Process ├── EnumProcess │ ├── EnumProcess.sln │ ├── EnumProcess.v12.suo │ └── EnumProcess │ │ ├── EnumProcess.cpp │ │ ├── EnumProcess.vcxproj │ │ ├── EnumProcess.vcxproj.filters │ │ ├── ReadMe.txt │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h ├── FindProcess │ ├── FindProcess.sln │ ├── FindProcess.v12.suo │ └── FindProcess │ │ ├── FindProcess.cpp │ │ ├── FindProcess.vcxproj │ │ ├── FindProcess.vcxproj.filters │ │ ├── ReadMe.txt │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h └── ToolHelp sample │ ├── ToolHelp sample.sln │ ├── ToolHelp sample.v12.suo │ └── ToolHelp sample │ ├── ReadMe.txt │ ├── ToolHelp sample.cpp │ ├── ToolHelp sample.vcxproj │ ├── ToolHelp sample.vcxproj.filters │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── GetFreeSpace ├── GetFreeSpace.cpp ├── GetFreeSpace.dsp ├── GetFreeSpace.dsw ├── GetFreeSpace.h ├── GetFreeSpace.rc ├── GetFreeSpaceDlg.cpp ├── GetFreeSpaceDlg.h ├── StdAfx.cpp ├── StdAfx.h ├── res │ ├── GetFreeSpace.ico │ ├── GetFreeSpace.rc2 │ └── cursor1.cur └── resource.h ├── GetMousePosition ├── MFCApplication1.sln ├── MFCApplication1.v12.suo ├── MFCApplication1 │ ├── MFCApplication1.aps │ ├── MFCApplication1.cpp │ ├── MFCApplication1.h │ ├── MFCApplication1.rc │ ├── MFCApplication1.vcxproj │ ├── MFCApplication1.vcxproj.filters │ ├── MyDialog.cpp │ ├── MyDialog.h │ ├── ReadMe.txt │ ├── Release │ │ ├── MFCApplication1.log │ │ ├── MFCApplication1.obj │ │ ├── MFCApplication1.pch │ │ ├── MFCApplication1.res │ │ ├── MFCApplication1.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── MFCApplication1.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ ├── MyDialog.obj │ │ ├── stdafx.obj │ │ └── vc120.pdb │ ├── res │ │ └── MFCApplication1.rc2 │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── Release │ ├── MFCApplication1.exe │ └── MFCApplication1.pdb └── ico.ico ├── Hook TerminateProcess ├── HookTerminateProcess 隐式调用 │ ├── HookTerminateProcess.sln │ ├── HookTerminateProcess.v12.suo │ ├── HookTerminateProcess │ │ ├── HookTerminateProcess.aps │ │ ├── HookTerminateProcess.cpp │ │ ├── HookTerminateProcess.h │ │ ├── HookTerminateProcess.ico │ │ ├── HookTerminateProcess.rc │ │ ├── HookTerminateProcess.vcxproj │ │ ├── HookTerminateProcess.vcxproj.filters │ │ ├── HookTerminateProcess.vcxproj.user │ │ ├── ReadMe.txt │ │ ├── resource.h │ │ ├── small.ico │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ └── HookTerminateProcessDll │ │ ├── APIHook.cpp │ │ ├── APIHook.h │ │ ├── HookTerminateProcessDll.cpp │ │ ├── HookTerminateProcessDll.vcxproj │ │ ├── HookTerminateProcessDll.vcxproj.filters │ │ ├── ReadMe.txt │ │ ├── Source.def │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h └── HookTerminateProcess │ ├── HookTerminateProcess.sln │ ├── HookTerminateProcess.v12.suo │ ├── HookTerminateProcess │ ├── HookTerminateProcess.aps │ ├── HookTerminateProcess.cpp │ ├── HookTerminateProcess.h │ ├── HookTerminateProcess.ico │ ├── HookTerminateProcess.rc │ ├── HookTerminateProcess.vcxproj │ ├── HookTerminateProcess.vcxproj.filters │ ├── ReadMe.txt │ ├── resource.h │ ├── small.ico │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h │ └── HookTerminateProcessDll │ ├── APIHook.cpp │ ├── APIHook.h │ ├── HookTerminateProcessDll.cpp │ ├── HookTerminateProcessDll.vcxproj │ ├── HookTerminateProcessDll.vcxproj.filters │ ├── ReadMe.txt │ ├── Source.def │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── IconChange ├── IconChange.cpp ├── IconChange.dsp ├── IconChange.dsw ├── IconChange.exe ├── IconChange.h ├── IconChange.rc ├── IconChangeDlg.cpp ├── IconChangeDlg.h ├── StdAfx.cpp ├── StdAfx.h ├── anim_img.bmp ├── res │ ├── IconChange.ico │ └── IconChange.rc2 └── resource.h ├── Leave Messages ├── Leave Messages.sln ├── Leave Messages.v12.suo └── Leave Messages │ ├── CheckCodeDlg.cpp │ ├── CheckCodeDlg.h │ ├── Http.cpp │ ├── Http.h │ ├── Leave Messages.aps │ ├── Leave Messages.cpp │ ├── Leave Messages.h │ ├── Leave Messages.rc │ ├── Leave Messages.vcxproj │ ├── Leave Messages.vcxproj.filters │ ├── Leave MessagesDlg.cpp │ ├── Leave MessagesDlg.h │ ├── ReadMe.txt │ ├── res │ ├── Leave Messages.ico │ └── LeaveMessages.rc2 │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── LoadBitmapDemo ├── LoadBitmapDemo.sln ├── LoadBitmapDemo.v12.suo ├── LoadBitmapDemo │ ├── Debug │ │ ├── LoadBitmapDemo.log │ │ ├── LoadBitmapDemo.obj │ │ ├── LoadBitmapDemo.pch │ │ ├── LoadBitmapDemo.res │ │ ├── LoadBitmapDemo.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── LoadBitmapDemo.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ ├── stdafx.obj │ │ ├── vc120.idb │ │ └── vc120.pdb │ ├── LoadBitmapDemo.aps │ ├── LoadBitmapDemo.cpp │ ├── LoadBitmapDemo.h │ ├── LoadBitmapDemo.ico │ ├── LoadBitmapDemo.rc │ ├── LoadBitmapDemo.vcxproj │ ├── LoadBitmapDemo.vcxproj.filters │ ├── ReadMe.txt │ ├── bitmap1.bmp │ ├── resource.h │ ├── small.ico │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── 学习.docx ├── MulThread ├── MulThreadTest.sln ├── MulThreadTest.suo ├── MulThreadTest.v12.suo └── MulThreadTest │ ├── CreateThread.cpp │ ├── CreateThread.h │ ├── MulThreadTest.aps │ ├── MulThreadTest.cpp │ ├── MulThreadTest.h │ ├── MulThreadTest.rc │ ├── MulThreadTest.vcproj │ ├── MulThreadTest.vcproj.LYJ.Zhang.user │ ├── MulThreadTest.vcxproj │ ├── MulThreadTest.vcxproj.filters │ ├── MulThreadTestDlg.cpp │ ├── MulThreadTestDlg.h │ ├── NewWinThread.cpp │ ├── NewWinThread.h │ ├── ReadMe.txt │ ├── res │ ├── Champicons Icon 27.ico │ ├── MulThreadTest.ico │ ├── MulThreadTest.rc2 │ ├── icon3.ico │ ├── icon4.ico │ └── kalarm.ico │ ├── resource.h │ ├── stdafx.cpp │ └── stdafx.h ├── MyTreadUITest ├── MyTreadUITest.sln ├── MyTreadUITest.v12.suo └── MyTreadUITest │ ├── MyTread.cpp │ ├── MyTread.h │ ├── MyTreadUITest.aps │ ├── MyTreadUITest.cpp │ ├── MyTreadUITest.h │ ├── MyTreadUITest.rc │ ├── MyTreadUITest.vcxproj │ ├── MyTreadUITest.vcxproj.filters │ ├── MyTreadUITestDlg.cpp │ ├── MyTreadUITestDlg.h │ ├── ReadMe.txt │ ├── TreadDlg.cpp │ ├── TreadDlg.h │ ├── res │ ├── MyTreadUITest.ico │ └── MyTreadUITest.rc2 │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── ProcessKill ├── AppUnlockCore.sln ├── AppUnlockCore.v12.suo └── AppUnlockCore │ ├── AppUnlockCore.cpp │ ├── AppUnlockCore.vcxproj │ ├── AppUnlockCore.vcxproj.filters │ ├── ProcessKillCore.cpp │ ├── ProcessKillCore.h │ ├── ReadMe.txt │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── RandomNumber ├── RandomNumber.sln ├── RandomNumber.v12.suo └── RandomNumber │ ├── RandomNumber.aps │ ├── RandomNumber.cpp │ ├── RandomNumber.h │ ├── RandomNumber.rc │ ├── RandomNumber.vcxproj │ ├── RandomNumber.vcxproj.filters │ ├── RandomNumberDlg.cpp │ ├── RandomNumberDlg.h │ ├── ReadMe.txt │ ├── res │ ├── RandomNumber.ico │ └── RandomNumber.rc2 │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── ServicesContrlManager ├── SCM.sln ├── SCM.v12.suo └── SCM │ ├── ReadMe.txt │ ├── SCM.cpp │ ├── SCM.vcxproj │ ├── SCM.vcxproj.filters │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── UAC Run permissions ├── ConsoleApplication1.sln ├── ConsoleApplication1.v12.suo └── ConsoleApplication1 │ ├── ConsoleApplication1.cpp │ ├── ConsoleApplication1.vcxproj │ ├── ConsoleApplication1.vcxproj.filters │ ├── Debug │ ├── ConsoleA.84C8D896.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── ConsoleApplication1.lastbuildstate │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ └── link.write.1.tlog │ ├── ConsoleApplication1.log │ ├── ConsoleApplication1.obj │ ├── ConsoleApplication1.pch │ ├── stdafx.obj │ ├── vc120.idb │ └── vc120.pdb │ ├── ReadMe.txt │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── WindowsFileTree ├── NewFileTree.sln ├── NewFileTree.v12.suo └── NewFileTree │ ├── NewFileTree.aps │ ├── NewFileTree.cpp │ ├── NewFileTree.h │ ├── NewFileTree.rc │ ├── NewFileTree.vcxproj │ ├── NewFileTree.vcxproj.filters │ ├── NewFileTreeDlg.cpp │ ├── NewFileTreeDlg.h │ ├── ReadMe.txt │ ├── SystemImageList.cpp │ ├── SystemImageList.h │ ├── TreeCtrlBuilder.h │ ├── res │ ├── NewFileTree.ico │ └── NewFileTree.rc2 │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── iniEncrypt ├── VC++中ini文件加密解密.txt ├── iniEncaypt.sln ├── iniEncaypt.v12.suo └── iniEncaypt ├── ReadMe.txt ├── iniEncaypt.aps ├── iniEncaypt.cpp ├── iniEncaypt.h ├── iniEncaypt.rc ├── iniEncaypt.vcxproj ├── iniEncaypt.vcxproj.filters ├── iniEncayptDlg.cpp ├── iniEncayptDlg.h ├── res ├── iniEncaypt.ico └── iniEncaypt.rc2 ├── resource.h ├── stdafx.cpp ├── stdafx.h └── targetver.h /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AccessCtrl", "AccessCtrl\AccessCtrl.vcxproj", "{ED7CBEB0-1FB2-40C8-97B4-A4C905CBA687}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {ED7CBEB0-1FB2-40C8-97B4-A4C905CBA687}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {ED7CBEB0-1FB2-40C8-97B4-A4C905CBA687}.Debug|Win32.Build.0 = Debug|Win32 16 | {ED7CBEB0-1FB2-40C8-97B4-A4C905CBA687}.Release|Win32.ActiveCfg = Release|Win32 17 | {ED7CBEB0-1FB2-40C8-97B4-A4C905CBA687}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl.v12.suo -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/AccessCtrl.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/AccessCtrl.aps -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/AccessCtrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/AccessCtrl.cpp -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/AccessCtrl.h: -------------------------------------------------------------------------------- 1 | 2 | // AccessCtrl.h : main header file for the PROJECT_NAME application 3 | // 4 | 5 | #pragma once 6 | 7 | #ifndef __AFXWIN_H__ 8 | #error "include 'stdafx.h' before including this file for PCH" 9 | #endif 10 | 11 | #include "resource.h" // main symbols 12 | 13 | 14 | // CAccessCtrlApp: 15 | // See AccessCtrl.cpp for the implementation of this class 16 | // 17 | 18 | class CAccessCtrlApp : public CWinApp 19 | { 20 | public: 21 | CAccessCtrlApp(); 22 | _ConnectionPtr m_pConnection; 23 | // Overrides 24 | public: 25 | virtual BOOL InitInstance(); 26 | 27 | // Implementation 28 | 29 | DECLARE_MESSAGE_MAP() 30 | }; 31 | 32 | extern CAccessCtrlApp theApp; -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/AccessCtrl.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/AccessCtrl.rc -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/AccessCtrlDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/AccessCtrlDlg.cpp -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/AccessCtrlDlg.h: -------------------------------------------------------------------------------- 1 | 2 | // AccessCtrlDlg.h : header file 3 | // 4 | 5 | #pragma once 6 | typedef int E_RESULT; 7 | 8 | // CAccessCtrlDlg dialog 9 | class CAccessCtrlDlg : public CDialogEx 10 | { 11 | // Construction 12 | public: 13 | CAccessCtrlDlg(CWnd* pParent = NULL); // standard constructor 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_ACCESSCTRL_DIALOG }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | 21 | 22 | // Implementation 23 | protected: 24 | HICON m_hIcon; 25 | E_RESULT ExcuteSQL(CString strCmd); 26 | E_RESULT InitializeAccessTable(CString strTableName, CString strInitializeCommmd); 27 | E_RESULT WriteToAccessTable(CString strFilepath, CString strTableName, CString strStartTime, CString strEndTime); 28 | BOOL IsValidTime(CString time); 29 | BOOL IsBetweenRangeTime(CString strCheckTime, CString strStartTime, CString strEndTime); 30 | BOOL TimeCompare(CString strTimeStart, CString strTimeEnd); 31 | // Generated message map functions 32 | virtual BOOL OnInitDialog(); 33 | afx_msg void OnPaint(); 34 | afx_msg HCURSOR OnQueryDragIcon(); 35 | DECLARE_MESSAGE_MAP() 36 | public: 37 | afx_msg void OnBnClickedButton1(); 38 | }; 39 | -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/res/AccessCtrl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/res/AccessCtrl.ico -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/res/AccessCtrl.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/res/AccessCtrl.rc2 -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/AccessCtrl/resource.h -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/stdafx.cpp: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.cpp : source file that includes just the standard includes 3 | // AccessCtrl.pch will be the pre-compiled header 4 | // stdafx.obj will contain the pre-compiled type information 5 | 6 | #include "stdafx.h" 7 | 8 | 9 | -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, 4 | // but are changed infrequently 5 | 6 | #pragma once 7 | 8 | #ifndef VC_EXTRALEAN 9 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 10 | #endif 11 | 12 | #include "targetver.h" 13 | 14 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 15 | 16 | // turns off MFC's hiding of some common and often safely ignored warning messages 17 | #define _AFX_ALL_WARNINGS 18 | 19 | #include // MFC core and standard components 20 | #include // MFC extensions 21 | 22 | 23 | #include // MFC Automation classes 24 | 25 | 26 | 27 | #ifndef _AFX_NO_OLE_SUPPORT 28 | #include // MFC support for Internet Explorer 4 Common Controls 29 | #endif 30 | #ifndef _AFX_NO_AFXCMN_SUPPORT 31 | #include // MFC support for Windows Common Controls 32 | #endif // _AFX_NO_AFXCMN_SUPPORT 33 | 34 | #include // MFC support for ribbons and control bars 35 | 36 | 37 | #import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF") 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | #ifdef _UNICODE 46 | #if defined _M_IX86 47 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 48 | #elif defined _M_X64 49 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 50 | #else 51 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 52 | #endif 53 | #endif 54 | 55 | 56 | -------------------------------------------------------------------------------- /AccessCtrl/AccessCtrl/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /AccessCtrl/Debug/test.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/AccessCtrl/Debug/test.mdb -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.aps -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.cpp -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.ico -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.rc -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/DllHookTest.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 资源文件 45 | 46 | 47 | 48 | 49 | 资源文件 50 | 51 | 52 | 资源文件 53 | 54 | 55 | -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 应用程序:DllHookTest 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 DllHookTest 应用程序。 6 | 7 | 本文件概要介绍组成 DllHookTest 应用程序的每个文件的内容。 8 | 9 | 10 | DllHookTest.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | DllHookTest.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | DllHookTest.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 应用程序向导创建了下列资源: 21 | 22 | DllHookTest.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | Resource.h 26 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 27 | 28 | DllHookTest.ico 29 | 这是用作应用程序图标 (32x32) 的图标文件。此图标包括在主资源文件 DllHookTest.rc 中。 30 | 31 | small.ico 32 | 这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 DllHookTest.rc 中。 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | 其他标准文件: 36 | 37 | StdAfx.h, StdAfx.cpp 38 | 这些文件用于生成名为 DllHookTest.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/resource.h -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/small.ico -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/stdafx.cpp -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/stdafx.h -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/DllHookTest/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/DllHookTest/targetver.h -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Hook", "Hook\Hook.vcxproj", "{8A04F3E7-6BCA-439A-AC3C-E7A46D933EF4}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DllHookTest", "DllHookTest\DllHookTest.vcxproj", "{A989ADE3-6403-4A06-AD11-8317DD5E132A}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Win32 = Debug|Win32 13 | Release|Win32 = Release|Win32 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {8A04F3E7-6BCA-439A-AC3C-E7A46D933EF4}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {8A04F3E7-6BCA-439A-AC3C-E7A46D933EF4}.Debug|Win32.Build.0 = Debug|Win32 18 | {8A04F3E7-6BCA-439A-AC3C-E7A46D933EF4}.Release|Win32.ActiveCfg = Release|Win32 19 | {8A04F3E7-6BCA-439A-AC3C-E7A46D933EF4}.Release|Win32.Build.0 = Release|Win32 20 | {A989ADE3-6403-4A06-AD11-8317DD5E132A}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {A989ADE3-6403-4A06-AD11-8317DD5E132A}.Debug|Win32.Build.0 = Debug|Win32 22 | {A989ADE3-6403-4A06-AD11-8317DD5E132A}.Release|Win32.ActiveCfg = Release|Win32 23 | {A989ADE3-6403-4A06-AD11-8317DD5E132A}.Release|Win32.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/Hook.v12.suo -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/Hook.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 29 | 30 | 源文件 31 | 32 | 33 | 源文件 34 | 35 | 36 | 37 | 38 | 源文件 39 | 40 | 41 | -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:Hook 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 Hook DLL。 6 | 7 | 本文件概要介绍组成 Hook 应用程序的每个文件的内容。 8 | 9 | 10 | Hook.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | Hook.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | Hook.cpp 17 | 这是主 DLL 源文件。 18 | 19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。 20 | 21 | ///////////////////////////////////////////////////////////////////////////// 22 | 其他标准文件: 23 | 24 | StdAfx.h, StdAfx.cpp 25 | 这些文件用于生成名为 Hook.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | 其他注释: 29 | 30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/Source.def: -------------------------------------------------------------------------------- 1 | LIBRARY Hook 2 | EXPORTS 3 | Sethook 4 | Unhook -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/Hook/dllmain.cpp -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/Hook/stdafx.cpp -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/Hook/stdafx.h -------------------------------------------------------------------------------- /C++ hook DEMO/Globle Hook/Hook/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/Globle Hook/Hook/targetver.h -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "InnerHook", "InnerHook\InnerHook.vcxproj", "{E944BAD6-784F-4AD2-8A83-942090446BCA}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E944BAD6-784F-4AD2-8A83-942090446BCA}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E944BAD6-784F-4AD2-8A83-942090446BCA}.Debug|Win32.Build.0 = Debug|Win32 16 | {E944BAD6-784F-4AD2-8A83-942090446BCA}.Release|Win32.ActiveCfg = Release|Win32 17 | {E944BAD6-784F-4AD2-8A83-942090446BCA}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook.v12.suo -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/InnerHook.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/InnerHook.aps -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/InnerHook.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/InnerHook.cpp -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/InnerHook.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/InnerHook.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/InnerHook.ico -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/InnerHook.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/InnerHook.rc -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/InnerHook.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 资源文件 45 | 46 | 47 | 48 | 49 | 资源文件 50 | 51 | 52 | 资源文件 53 | 54 | 55 | -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 应用程序:InnerHook 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 InnerHook 应用程序。 6 | 7 | 本文件概要介绍组成 InnerHook 应用程序的每个文件的内容。 8 | 9 | 10 | InnerHook.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | InnerHook.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | InnerHook.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 应用程序向导创建了下列资源: 21 | 22 | InnerHook.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | Resource.h 26 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 27 | 28 | InnerHook.ico 29 | 这是用作应用程序图标 (32x32) 的图标文件。此图标包括在主资源文件 InnerHook.rc 中。 30 | 31 | small.ico 32 | 这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 InnerHook.rc 中。 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | 其他标准文件: 36 | 37 | StdAfx.h, StdAfx.cpp 38 | 这些文件用于生成名为 InnerHook.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/resource.h -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/small.ico -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/stdafx.cpp -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/stdafx.h -------------------------------------------------------------------------------- /C++ hook DEMO/InnerHook/InnerHook/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/InnerHook/InnerHook/targetver.h -------------------------------------------------------------------------------- /C++ hook DEMO/钩子学习.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/C++ hook DEMO/钩子学习.docx -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CreateFolder", "CreateFolder\CreateFolder.vcxproj", "{201B0DCB-ADA9-4716-9C5E-8D25FBDEC1E4}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {201B0DCB-ADA9-4716-9C5E-8D25FBDEC1E4}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {201B0DCB-ADA9-4716-9C5E-8D25FBDEC1E4}.Debug|Win32.Build.0 = Debug|Win32 16 | {201B0DCB-ADA9-4716-9C5E-8D25FBDEC1E4}.Release|Win32.ActiveCfg = Release|Win32 17 | {201B0DCB-ADA9-4716-9C5E-8D25FBDEC1E4}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/CreatePermissionFolder/CreateFolder.v12.suo -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder/CreateFolder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/CreatePermissionFolder/CreateFolder/CreateFolder.cpp -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder/CreateFolder.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 29 | 30 | 源文件 31 | 32 | 33 | 源文件 34 | 35 | 36 | -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:CreateFolder 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 CreateFolder 应用程序。 6 | 7 | 本文件概要介绍组成 CreateFolder 应用程序的每个文件的内容。 8 | 9 | 10 | CreateFolder.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | CreateFolder.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | CreateFolder.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 CreateFolder.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/CreatePermissionFolder/CreateFolder/stdafx.cpp -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/CreatePermissionFolder/CreateFolder/stdafx.h -------------------------------------------------------------------------------- /CreatePermissionFolder/CreateFolder/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/CreatePermissionFolder/CreateFolder/targetver.h -------------------------------------------------------------------------------- /Drive transformation/盘符转换.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "盘符转换", "盘符转换\盘符转换.vcxproj", "{E00DB30F-7523-4731-91FF-80F621F73089}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E00DB30F-7523-4731-91FF-80F621F73089}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E00DB30F-7523-4731-91FF-80F621F73089}.Debug|Win32.Build.0 = Debug|Win32 16 | {E00DB30F-7523-4731-91FF-80F621F73089}.Release|Win32.ActiveCfg = Release|Win32 17 | {E00DB30F-7523-4731-91FF-80F621F73089}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Drive transformation/盘符转换.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Drive transformation/盘符转换.v12.suo -------------------------------------------------------------------------------- /Drive transformation/盘符转换/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:盘符转换 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 盘符转换 应用程序。 6 | 7 | 本文件概要介绍组成 盘符转换 应用程序的每个文件的内容。 8 | 9 | 10 | 盘符转换.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | 盘符转换.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | 盘符转换.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 盘符转换.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Drive transformation/盘符转换/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Drive transformation/盘符转换/stdafx.cpp -------------------------------------------------------------------------------- /Drive transformation/盘符转换/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Drive transformation/盘符转换/stdafx.h -------------------------------------------------------------------------------- /Drive transformation/盘符转换/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Drive transformation/盘符转换/targetver.h -------------------------------------------------------------------------------- /Drive transformation/盘符转换/盘符转换.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Drive transformation/盘符转换/盘符转换.cpp -------------------------------------------------------------------------------- /Drive transformation/盘符转换/盘符转换.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 29 | 30 | 源文件 31 | 32 | 33 | 源文件 34 | 35 | 36 | -------------------------------------------------------------------------------- /FindHandle/FindHandle.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FindHandle", "FindHandle\FindHandle.vcxproj", "{4249662F-4BA0-4232-8DDB-1AC1D6A78A7E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4249662F-4BA0-4232-8DDB-1AC1D6A78A7E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {4249662F-4BA0-4232-8DDB-1AC1D6A78A7E}.Debug|Win32.Build.0 = Debug|Win32 16 | {4249662F-4BA0-4232-8DDB-1AC1D6A78A7E}.Release|Win32.ActiveCfg = Release|Win32 17 | {4249662F-4BA0-4232-8DDB-1AC1D6A78A7E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /FindHandle/FindHandle.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/FindHandle.v12.suo -------------------------------------------------------------------------------- /FindHandle/FindHandle/Core.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "Core.h" 3 | 4 | 5 | CCore::CCore() 6 | { 7 | } 8 | 9 | 10 | CCore::~CCore() 11 | { 12 | } 13 | 14 | 15 | -------------------------------------------------------------------------------- /FindHandle/FindHandle/Core.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/FindHandle/Core.h -------------------------------------------------------------------------------- /FindHandle/FindHandle/FindHandle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/FindHandle/FindHandle.cpp -------------------------------------------------------------------------------- /FindHandle/FindHandle/FindHandle.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 32 | 33 | 源文件 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | -------------------------------------------------------------------------------- /FindHandle/FindHandle/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:FindHandle 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 FindHandle 应用程序。 6 | 7 | 本文件概要介绍组成 FindHandle 应用程序的每个文件的内容。 8 | 9 | 10 | FindHandle.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | FindHandle.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | FindHandle.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 FindHandle.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /FindHandle/FindHandle/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/FindHandle/stdafx.cpp -------------------------------------------------------------------------------- /FindHandle/FindHandle/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/FindHandle/stdafx.h -------------------------------------------------------------------------------- /FindHandle/FindHandle/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/FindHandle/targetver.h -------------------------------------------------------------------------------- /FindHandle/handles.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/FindHandle/handles.zip -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EnumProcess", "EnumProcess\EnumProcess.vcxproj", "{C0BE1CC7-9DB4-46DD-9BAF-D6264C7B4731}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C0BE1CC7-9DB4-46DD-9BAF-D6264C7B4731}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C0BE1CC7-9DB4-46DD-9BAF-D6264C7B4731}.Debug|Win32.Build.0 = Debug|Win32 16 | {C0BE1CC7-9DB4-46DD-9BAF-D6264C7B4731}.Release|Win32.ActiveCfg = Release|Win32 17 | {C0BE1CC7-9DB4-46DD-9BAF-D6264C7B4731}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/EnumProcess/EnumProcess.v12.suo -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess/EnumProcess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/EnumProcess/EnumProcess/EnumProcess.cpp -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess/EnumProcess.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 29 | 30 | 源文件 31 | 32 | 33 | 源文件 34 | 35 | 36 | -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:EnumProcess 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 EnumProcess 应用程序。 6 | 7 | 本文件概要介绍组成 EnumProcess 应用程序的每个文件的内容。 8 | 9 | 10 | EnumProcess.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | EnumProcess.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | EnumProcess.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 EnumProcess.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/EnumProcess/EnumProcess/stdafx.cpp -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/EnumProcess/EnumProcess/stdafx.h -------------------------------------------------------------------------------- /Get Process/EnumProcess/EnumProcess/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/EnumProcess/EnumProcess/targetver.h -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FindProcess", "FindProcess\FindProcess.vcxproj", "{96B30270-CB2A-4322-A874-88C2628B46FF}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {96B30270-CB2A-4322-A874-88C2628B46FF}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {96B30270-CB2A-4322-A874-88C2628B46FF}.Debug|Win32.Build.0 = Debug|Win32 16 | {96B30270-CB2A-4322-A874-88C2628B46FF}.Release|Win32.ActiveCfg = Release|Win32 17 | {96B30270-CB2A-4322-A874-88C2628B46FF}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/FindProcess/FindProcess.v12.suo -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess/FindProcess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/FindProcess/FindProcess/FindProcess.cpp -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess/FindProcess.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 29 | 30 | 源文件 31 | 32 | 33 | 源文件 34 | 35 | 36 | -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:FindProcess 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 FindProcess 应用程序。 6 | 7 | 本文件概要介绍组成 FindProcess 应用程序的每个文件的内容。 8 | 9 | 10 | FindProcess.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | FindProcess.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | FindProcess.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 FindProcess.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/FindProcess/FindProcess/stdafx.cpp -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/FindProcess/FindProcess/stdafx.h -------------------------------------------------------------------------------- /Get Process/FindProcess/FindProcess/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/FindProcess/FindProcess/targetver.h -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ToolHelp sample", "ToolHelp sample\ToolHelp sample.vcxproj", "{2A68B10F-A3C4-4287-BEB0-BCF12BF04745}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {2A68B10F-A3C4-4287-BEB0-BCF12BF04745}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {2A68B10F-A3C4-4287-BEB0-BCF12BF04745}.Debug|Win32.Build.0 = Debug|Win32 16 | {2A68B10F-A3C4-4287-BEB0-BCF12BF04745}.Release|Win32.ActiveCfg = Release|Win32 17 | {2A68B10F-A3C4-4287-BEB0-BCF12BF04745}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/ToolHelp sample/ToolHelp sample.v12.suo -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:ToolHelp sample 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 ToolHelp sample 应用程序。 6 | 7 | 本文件概要介绍组成 ToolHelp sample 应用程序的每个文件的内容。 8 | 9 | 10 | ToolHelp sample.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | ToolHelp sample.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | ToolHelp sample.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 ToolHelp sample.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample/ToolHelp sample.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/ToolHelp sample/ToolHelp sample/ToolHelp sample.cpp -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample/ToolHelp sample.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 29 | 30 | 源文件 31 | 32 | 33 | 源文件 34 | 35 | 36 | -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/ToolHelp sample/ToolHelp sample/stdafx.cpp -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/ToolHelp sample/ToolHelp sample/stdafx.h -------------------------------------------------------------------------------- /Get Process/ToolHelp sample/ToolHelp sample/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Get Process/ToolHelp sample/ToolHelp sample/targetver.h -------------------------------------------------------------------------------- /GetFreeSpace/GetFreeSpace.dsw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetFreeSpace/GetFreeSpace.dsw -------------------------------------------------------------------------------- /GetFreeSpace/GetFreeSpace.h: -------------------------------------------------------------------------------- 1 | // GetFreeSpace.h : main header file for the GETFREESPACE application 2 | // 3 | 4 | #if !defined(AFX_GETFREESPACE_H__7E709B0A_4B49_4D1B_9FD0_A8BC5064277E__INCLUDED_) 5 | #define AFX_GETFREESPACE_H__7E709B0A_4B49_4D1B_9FD0_A8BC5064277E__INCLUDED_ 6 | 7 | #if _MSC_VER > 1000 8 | #pragma once 9 | #endif // _MSC_VER > 1000 10 | 11 | #ifndef __AFXWIN_H__ 12 | #error include 'stdafx.h' before including this file for PCH 13 | #endif 14 | 15 | #include "resource.h" // main symbols 16 | 17 | ///////////////////////////////////////////////////////////////////////////// 18 | // CGetFreeSpaceApp: 19 | // See GetFreeSpace.cpp for the implementation of this class 20 | // 21 | 22 | class CGetFreeSpaceApp : public CWinApp 23 | { 24 | public: 25 | CGetFreeSpaceApp(); 26 | 27 | // Overrides 28 | // ClassWizard generated virtual function overrides 29 | //{{AFX_VIRTUAL(CGetFreeSpaceApp) 30 | public: 31 | virtual BOOL InitInstance(); 32 | //}}AFX_VIRTUAL 33 | 34 | // Implementation 35 | 36 | //{{AFX_MSG(CGetFreeSpaceApp) 37 | // NOTE - the ClassWizard will add and remove member functions here. 38 | // DO NOT EDIT what you see in these blocks of generated code ! 39 | //}}AFX_MSG 40 | DECLARE_MESSAGE_MAP() 41 | }; 42 | 43 | 44 | ///////////////////////////////////////////////////////////////////////////// 45 | 46 | //{{AFX_INSERT_LOCATION}} 47 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 48 | 49 | #endif // !defined(AFX_GETFREESPACE_H__7E709B0A_4B49_4D1B_9FD0_A8BC5064277E__INCLUDED_) 50 | -------------------------------------------------------------------------------- /GetFreeSpace/GetFreeSpace.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetFreeSpace/GetFreeSpace.rc -------------------------------------------------------------------------------- /GetFreeSpace/GetFreeSpaceDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetFreeSpace/GetFreeSpaceDlg.cpp -------------------------------------------------------------------------------- /GetFreeSpace/GetFreeSpaceDlg.h: -------------------------------------------------------------------------------- 1 | // GetFreeSpaceDlg.h : header file 2 | // 3 | 4 | #if !defined(AFX_GETFREESPACEDLG_H__DFE1FF65_464E_4633_A9A1_9C90BFBA48CD__INCLUDED_) 5 | #define AFX_GETFREESPACEDLG_H__DFE1FF65_464E_4633_A9A1_9C90BFBA48CD__INCLUDED_ 6 | 7 | #if _MSC_VER > 1000 8 | #pragma once 9 | #endif // _MSC_VER > 1000 10 | 11 | ///////////////////////////////////////////////////////////////////////////// 12 | // CGetFreeSpaceDlg dialog 13 | 14 | class CGetFreeSpaceDlg : public CDialog 15 | { 16 | // Construction 17 | public: 18 | int GetAllDiskSpaceInfo(__int64 *Totalspace,__int64*Totalfreespace); 19 | int GetDiskSpaceInfo(char cLogicdisk ,__int64* Totalspace,__int64* Totalfreespace); 20 | CGetFreeSpaceDlg(CWnd* pParent = NULL); // standard constructor 21 | 22 | // Dialog Data 23 | //{{AFX_DATA(CGetFreeSpaceDlg) 24 | enum { IDD = IDD_GETFREESPACE_DIALOG }; 25 | CString m_totalspace; 26 | CString m_totalfreespace; 27 | //}}AFX_DATA 28 | 29 | // ClassWizard generated virtual function overrides 30 | //{{AFX_VIRTUAL(CGetFreeSpaceDlg) 31 | protected: 32 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 33 | //}}AFX_VIRTUAL 34 | 35 | // Implementation 36 | protected: 37 | HICON m_hIcon; 38 | 39 | // Generated message map functions 40 | //{{AFX_MSG(CGetFreeSpaceDlg) 41 | virtual BOOL OnInitDialog(); 42 | afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 43 | afx_msg void OnPaint(); 44 | afx_msg HCURSOR OnQueryDragIcon(); 45 | //}}AFX_MSG 46 | DECLARE_MESSAGE_MAP() 47 | }; 48 | 49 | //{{AFX_INSERT_LOCATION}} 50 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 51 | 52 | #endif // !defined(AFX_GETFREESPACEDLG_H__DFE1FF65_464E_4633_A9A1_9C90BFBA48CD__INCLUDED_) 53 | -------------------------------------------------------------------------------- /GetFreeSpace/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // GetFreeSpace.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /GetFreeSpace/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__884E1CEC_6211_4B8A_8DCA_2E6D207D0DCB__INCLUDED_) 7 | #define AFX_STDAFX_H__884E1CEC_6211_4B8A_8DCA_2E6D207D0DCB__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include // MFC core and standard components 16 | #include // MFC extensions 17 | #include // MFC Automation classes 18 | #include // MFC support for Internet Explorer 4 Common Controls 19 | #ifndef _AFX_NO_AFXCMN_SUPPORT 20 | #include // MFC support for Windows Common Controls 21 | #endif // _AFX_NO_AFXCMN_SUPPORT 22 | 23 | 24 | //{{AFX_INSERT_LOCATION}} 25 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 26 | 27 | #endif // !defined(AFX_STDAFX_H__884E1CEC_6211_4B8A_8DCA_2E6D207D0DCB__INCLUDED_) 28 | -------------------------------------------------------------------------------- /GetFreeSpace/res/GetFreeSpace.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetFreeSpace/res/GetFreeSpace.ico -------------------------------------------------------------------------------- /GetFreeSpace/res/GetFreeSpace.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // GETFREESPACE.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /GetFreeSpace/res/cursor1.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetFreeSpace/res/cursor1.cur -------------------------------------------------------------------------------- /GetFreeSpace/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by GetFreeSpace.rc 4 | // 5 | #define IDM_ABOUTBOX 0x0010 6 | #define IDD_ABOUTBOX 100 7 | #define IDS_ABOUTBOX 101 8 | #define IDD_GETFREESPACE_DIALOG 102 9 | #define IDR_MAINFRAME 128 10 | #define IDC_CURSOR1 129 11 | #define IDC_EDIT1 1000 12 | #define IDC_EDIT3 1002 13 | #define IDC_EDIT2 1003 14 | #define IDC_EDIT4 1004 15 | #define IDC_BUTTON1 1005 16 | 17 | // Next default values for new objects 18 | // 19 | #ifdef APSTUDIO_INVOKED 20 | #ifndef APSTUDIO_READONLY_SYMBOLS 21 | #define _APS_NEXT_RESOURCE_VALUE 130 22 | #define _APS_NEXT_COMMAND_VALUE 32771 23 | #define _APS_NEXT_CONTROL_VALUE 1006 24 | #define _APS_NEXT_SYMED_VALUE 101 25 | #endif 26 | #endif 27 | -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30110.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MFCApplication1", "MFCApplication1\MFCApplication1.vcxproj", "{3707FC02-DF6C-45ED-943C-D374DDD53881}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {3707FC02-DF6C-45ED-943C-D374DDD53881}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {3707FC02-DF6C-45ED-943C-D374DDD53881}.Debug|Win32.Build.0 = Debug|Win32 16 | {3707FC02-DF6C-45ED-943C-D374DDD53881}.Release|Win32.ActiveCfg = Release|Win32 17 | {3707FC02-DF6C-45ED-943C-D374DDD53881}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1.v12.suo -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/MFCApplication1.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/MFCApplication1.aps -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/MFCApplication1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/MFCApplication1.cpp -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/MFCApplication1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/MFCApplication1.h -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/MFCApplication1.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/MFCApplication1.rc -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/MyDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/MyDialog.cpp -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/MyDialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/MyDialog.h -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.log: -------------------------------------------------------------------------------- 1 | Build started 6/13/2015 3:33:33 PM. 2 | 1>Project "E:\C++学习\MFC坐标获取和文本框获取\MFCApplication1\MFCApplication1.vcxproj" on node 2 (Build target(s)). 3 | 1>ResourceCompile: 4 | C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe /D NDEBUG /D _UNICODE /D UNICODE /l"0x0804" /IRelease\ /nologo /fo"Release\MFCApplication1.res" MFCApplication1.rc 5 | Link: 6 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"E:\C++学习\MFC坐标获取和文本框获取\Release\MFCApplication1.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /manifestinput:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\Include\Manifest\dpiaware.manifest" /DEBUG /PDB:"E:\C++学习\MFC坐标获取和文本框获取\Release\MFCApplication1.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LTCG /TLBID:1 /ENTRY:"wWinMainCRTStartup" /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:\C++学习\MFC坐标获取和文本框获取\Release\MFCApplication1.lib" /MACHINE:X86 /SAFESEH Release\MFCApplication1.res 7 | Release\MFCApplication1.obj 8 | Release\MyDialog.obj 9 | Release\stdafx.obj 10 | Generating code 11 | Finished generating code 12 | MFCApplication1.vcxproj -> E:\C++学习\MFC坐标获取和文本框获取\Release\MFCApplication1.exe 13 | 1>Done Building Project "E:\C++学习\MFC坐标获取和文本框获取\MFCApplication1\MFCApplication1.vcxproj" (Build target(s)). 14 | 15 | Build succeeded. 16 | 17 | Time Elapsed 00:00:06.83 18 | -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.obj -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.pch -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.res -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/MFCApplication1.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Release|Win32|E:\C++学习\MFC坐标获取和文本框获取\| 3 | -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MFCApplication1.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/MyDialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/MyDialog.obj -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/stdafx.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/stdafx.obj -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/Release/vc120.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/Release/vc120.pdb -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/res/MFCApplication1.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/res/MFCApplication1.rc2 -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/resource.h -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/stdafx.cpp -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/stdafx.h -------------------------------------------------------------------------------- /GetMousePosition/MFCApplication1/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/MFCApplication1/targetver.h -------------------------------------------------------------------------------- /GetMousePosition/Release/MFCApplication1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/Release/MFCApplication1.exe -------------------------------------------------------------------------------- /GetMousePosition/Release/MFCApplication1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/Release/MFCApplication1.pdb -------------------------------------------------------------------------------- /GetMousePosition/ico.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/GetMousePosition/ico.ico -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HookTerminateProcess", "HookTerminateProcess\HookTerminateProcess.vcxproj", "{9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | {48C53C80-9E11-489B-9DCC-7208D318B48D} = {48C53C80-9E11-489B-9DCC-7208D318B48D} 9 | EndProjectSection 10 | EndProject 11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HookTerminateProcessDll", "HookTerminateProcessDll\HookTerminateProcessDll.vcxproj", "{48C53C80-9E11-489B-9DCC-7208D318B48D}" 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Win32 = Debug|Win32 16 | Release|Win32 = Release|Win32 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Debug|Win32.ActiveCfg = Debug|Win32 20 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Debug|Win32.Build.0 = Debug|Win32 21 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Release|Win32.ActiveCfg = Release|Win32 22 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Release|Win32.Build.0 = Release|Win32 23 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Debug|Win32.ActiveCfg = Debug|Win32 24 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Debug|Win32.Build.0 = Debug|Win32 25 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Release|Win32.ActiveCfg = Release|Win32 26 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Release|Win32.Build.0 = Release|Win32 27 | EndGlobalSection 28 | GlobalSection(SolutionProperties) = preSolution 29 | HideSolutionNode = FALSE 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess.v12.suo -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.aps -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.ico -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.rc -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 资源文件 45 | 46 | 47 | 48 | 49 | 资源文件 50 | 51 | 52 | 资源文件 53 | 54 | 55 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/HookTerminateProcess.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 应用程序:HookTerminateProcess 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 HookTerminateProcess 应用程序。 6 | 7 | 本文件概要介绍组成 HookTerminateProcess 应用程序的每个文件的内容。 8 | 9 | 10 | HookTerminateProcess.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | HookTerminateProcess.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | HookTerminateProcess.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 应用程序向导创建了下列资源: 21 | 22 | HookTerminateProcess.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | Resource.h 26 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 27 | 28 | HookTerminateProcess.ico 29 | 这是用作应用程序图标 (32x32) 的图标文件。此图标包括在主资源文件 HookTerminateProcess.rc 中。 30 | 31 | small.ico 32 | 这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 HookTerminateProcess.rc 中。 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | 其他标准文件: 36 | 37 | StdAfx.h, StdAfx.cpp 38 | 这些文件用于生成名为 HookTerminateProcess.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/resource.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/small.ico -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/stdafx.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/stdafx.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcess/targetver.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/APIHook.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/APIHook.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/APIHook.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/APIHook.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/HookTerminateProcessDll.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/HookTerminateProcessDll.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/HookTerminateProcessDll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 32 | 33 | 源文件 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 源文件 45 | 46 | 47 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:HookTerminateProcessDll 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 HookTerminateProcessDll DLL。 6 | 7 | 本文件概要介绍组成 HookTerminateProcessDll 应用程序的每个文件的内容。 8 | 9 | 10 | HookTerminateProcessDll.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | HookTerminateProcessDll.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | HookTerminateProcessDll.cpp 17 | 这是主 DLL 源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 HookTerminateProcessDll.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/Source.def: -------------------------------------------------------------------------------- 1 | LIBRARY HookTerminateProcessDll 2 | EXPORTS 3 | SetSysHook -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/stdafx.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/stdafx.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess 隐式调用/HookTerminateProcessDll/targetver.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HookTerminateProcess", "HookTerminateProcess\HookTerminateProcess.vcxproj", "{9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | {48C53C80-9E11-489B-9DCC-7208D318B48D} = {48C53C80-9E11-489B-9DCC-7208D318B48D} 9 | EndProjectSection 10 | EndProject 11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HookTerminateProcessDll", "HookTerminateProcessDll\HookTerminateProcessDll.vcxproj", "{48C53C80-9E11-489B-9DCC-7208D318B48D}" 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Win32 = Debug|Win32 16 | Release|Win32 = Release|Win32 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Debug|Win32.ActiveCfg = Debug|Win32 20 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Debug|Win32.Build.0 = Debug|Win32 21 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Release|Win32.ActiveCfg = Release|Win32 22 | {9FDF9ED1-AE01-4025-AE1A-40AD24C91B6F}.Release|Win32.Build.0 = Release|Win32 23 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Debug|Win32.ActiveCfg = Debug|Win32 24 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Debug|Win32.Build.0 = Debug|Win32 25 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Release|Win32.ActiveCfg = Release|Win32 26 | {48C53C80-9E11-489B-9DCC-7208D318B48D}.Release|Win32.Build.0 = Release|Win32 27 | EndGlobalSection 28 | GlobalSection(SolutionProperties) = preSolution 29 | HideSolutionNode = FALSE 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess.v12.suo -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.aps -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.ico -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.rc -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/HookTerminateProcess.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 资源文件 45 | 46 | 47 | 48 | 49 | 资源文件 50 | 51 | 52 | 资源文件 53 | 54 | 55 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 应用程序:HookTerminateProcess 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 HookTerminateProcess 应用程序。 6 | 7 | 本文件概要介绍组成 HookTerminateProcess 应用程序的每个文件的内容。 8 | 9 | 10 | HookTerminateProcess.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | HookTerminateProcess.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | HookTerminateProcess.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 应用程序向导创建了下列资源: 21 | 22 | HookTerminateProcess.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | Resource.h 26 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 27 | 28 | HookTerminateProcess.ico 29 | 这是用作应用程序图标 (32x32) 的图标文件。此图标包括在主资源文件 HookTerminateProcess.rc 中。 30 | 31 | small.ico 32 | 这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 HookTerminateProcess.rc 中。 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | 其他标准文件: 36 | 37 | StdAfx.h, StdAfx.cpp 38 | 这些文件用于生成名为 HookTerminateProcess.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/resource.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/small.ico -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/stdafx.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/stdafx.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcess/targetver.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/APIHook.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/APIHook.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/APIHook.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/APIHook.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/HookTerminateProcessDll.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/HookTerminateProcessDll.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/HookTerminateProcessDll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 32 | 33 | 源文件 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 源文件 45 | 46 | 47 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:HookTerminateProcessDll 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 HookTerminateProcessDll DLL。 6 | 7 | 本文件概要介绍组成 HookTerminateProcessDll 应用程序的每个文件的内容。 8 | 9 | 10 | HookTerminateProcessDll.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | HookTerminateProcessDll.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | HookTerminateProcessDll.cpp 17 | 这是主 DLL 源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 HookTerminateProcessDll.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/Source.def: -------------------------------------------------------------------------------- 1 | LIBRARY HookTerminateProcessDll 2 | EXPORTS 3 | SetSysHook -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/stdafx.cpp -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/stdafx.h -------------------------------------------------------------------------------- /Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Hook TerminateProcess/HookTerminateProcess/HookTerminateProcessDll/targetver.h -------------------------------------------------------------------------------- /IconChange/IconChange.dsw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/IconChange/IconChange.dsw -------------------------------------------------------------------------------- /IconChange/IconChange.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/IconChange/IconChange.exe -------------------------------------------------------------------------------- /IconChange/IconChange.h: -------------------------------------------------------------------------------- 1 | // IconChange.h : main header file for the ICONCHANGE application 2 | // 3 | 4 | #if !defined(AFX_ICONCHANGE_H__8F6EEDDF_C1E4_4C3A_B1E6_71D6AC48E28F__INCLUDED_) 5 | #define AFX_ICONCHANGE_H__8F6EEDDF_C1E4_4C3A_B1E6_71D6AC48E28F__INCLUDED_ 6 | 7 | #if _MSC_VER > 1000 8 | #pragma once 9 | #endif // _MSC_VER > 1000 10 | 11 | #ifndef __AFXWIN_H__ 12 | #error include 'stdafx.h' before including this file for PCH 13 | #endif 14 | 15 | #include "resource.h" // main symbols 16 | 17 | ///////////////////////////////////////////////////////////////////////////// 18 | // CIconChangeApp: 19 | // See IconChange.cpp for the implementation of this class 20 | // 21 | 22 | class CIconChangeApp : public CWinApp 23 | { 24 | public: 25 | CIconChangeApp(); 26 | 27 | // Overrides 28 | // ClassWizard generated virtual function overrides 29 | //{{AFX_VIRTUAL(CIconChangeApp) 30 | public: 31 | virtual BOOL InitInstance(); 32 | //}}AFX_VIRTUAL 33 | 34 | // Implementation 35 | 36 | //{{AFX_MSG(CIconChangeApp) 37 | // NOTE - the ClassWizard will add and remove member functions here. 38 | // DO NOT EDIT what you see in these blocks of generated code ! 39 | //}}AFX_MSG 40 | DECLARE_MESSAGE_MAP() 41 | }; 42 | 43 | 44 | ///////////////////////////////////////////////////////////////////////////// 45 | 46 | //{{AFX_INSERT_LOCATION}} 47 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 48 | 49 | #endif // !defined(AFX_ICONCHANGE_H__8F6EEDDF_C1E4_4C3A_B1E6_71D6AC48E28F__INCLUDED_) 50 | -------------------------------------------------------------------------------- /IconChange/IconChange.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/IconChange/IconChange.rc -------------------------------------------------------------------------------- /IconChange/IconChangeDlg.h: -------------------------------------------------------------------------------- 1 | // IconChangeDlg.h : header file 2 | // 3 | 4 | #if !defined(AFX_ICONCHANGEDLG_H__D55947BD_F206_43D3_AA0E_27C1A9792A47__INCLUDED_) 5 | #define AFX_ICONCHANGEDLG_H__D55947BD_F206_43D3_AA0E_27C1A9792A47__INCLUDED_ 6 | 7 | #if _MSC_VER > 1000 8 | #pragma once 9 | #endif // _MSC_VER > 1000 10 | 11 | ///////////////////////////////////////////////////////////////////////////// 12 | // CIconChangeDlg dialog 13 | 14 | class CIconChangeDlg : public CDialog 15 | { 16 | // Construction 17 | public: 18 | UINT m_iTimerID; 19 | int m_iCountOfImage; 20 | int m_iMaxNumImage; 21 | HICON hIcon; 22 | CImageList m_imagelist; 23 | CIconChangeDlg(CWnd* pParent = NULL); // standard constructor 24 | 25 | // Dialog Data 26 | //{{AFX_DATA(CIconChangeDlg) 27 | enum { IDD = IDD_ICONCHANGE_DIALOG }; 28 | // NOTE: the ClassWizard will add data members here 29 | //}}AFX_DATA 30 | 31 | // ClassWizard generated virtual function overrides 32 | //{{AFX_VIRTUAL(CIconChangeDlg) 33 | protected: 34 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 35 | //}}AFX_VIRTUAL 36 | 37 | // Implementation 38 | protected: 39 | HICON m_hIcon; 40 | 41 | // Generated message map functions 42 | //{{AFX_MSG(CIconChangeDlg) 43 | virtual BOOL OnInitDialog(); 44 | afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 45 | afx_msg void OnPaint(); 46 | afx_msg HCURSOR OnQueryDragIcon(); 47 | afx_msg void OnTimer(UINT nIDEvent); 48 | afx_msg void OnClose(); 49 | //}}AFX_MSG 50 | DECLARE_MESSAGE_MAP() 51 | }; 52 | 53 | //{{AFX_INSERT_LOCATION}} 54 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 55 | 56 | #endif // !defined(AFX_ICONCHANGEDLG_H__D55947BD_F206_43D3_AA0E_27C1A9792A47__INCLUDED_) 57 | -------------------------------------------------------------------------------- /IconChange/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // IconChange.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /IconChange/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__23CE35FE_15CF_41F1_A255_FA7454C0027E__INCLUDED_) 7 | #define AFX_STDAFX_H__23CE35FE_15CF_41F1_A255_FA7454C0027E__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include // MFC core and standard components 16 | #include // MFC extensions 17 | #include // MFC Automation classes 18 | #include // MFC support for Internet Explorer 4 Common Controls 19 | #ifndef _AFX_NO_AFXCMN_SUPPORT 20 | #include // MFC support for Windows Common Controls 21 | #endif // _AFX_NO_AFXCMN_SUPPORT 22 | 23 | 24 | //{{AFX_INSERT_LOCATION}} 25 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 26 | 27 | #endif // !defined(AFX_STDAFX_H__23CE35FE_15CF_41F1_A255_FA7454C0027E__INCLUDED_) 28 | -------------------------------------------------------------------------------- /IconChange/anim_img.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/IconChange/anim_img.bmp -------------------------------------------------------------------------------- /IconChange/res/IconChange.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/IconChange/res/IconChange.ico -------------------------------------------------------------------------------- /IconChange/res/IconChange.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // ICONCHANGE.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /IconChange/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by IconChange.rc 4 | // 5 | #define IDM_ABOUTBOX 0x0010 6 | #define IDD_ABOUTBOX 100 7 | #define IDS_ABOUTBOX 101 8 | #define IDD_ICONCHANGE_DIALOG 102 9 | #define IDR_MAINFRAME 128 10 | #define IDB_BITMAP1 129 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NEXT_RESOURCE_VALUE 130 17 | #define _APS_NEXT_COMMAND_VALUE 32771 18 | #define _APS_NEXT_CONTROL_VALUE 1000 19 | #define _APS_NEXT_SYMED_VALUE 101 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /Leave Messages/Leave Messages.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Leave Messages", "Leave Messages\Leave Messages.vcxproj", "{76B83BB6-BE70-4160-9A92-1A78E9604396}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {76B83BB6-BE70-4160-9A92-1A78E9604396}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {76B83BB6-BE70-4160-9A92-1A78E9604396}.Debug|Win32.Build.0 = Debug|Win32 16 | {76B83BB6-BE70-4160-9A92-1A78E9604396}.Release|Win32.ActiveCfg = Release|Win32 17 | {76B83BB6-BE70-4160-9A92-1A78E9604396}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Leave Messages/Leave Messages.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages.v12.suo -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/CheckCodeDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/CheckCodeDlg.cpp -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/CheckCodeDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/CheckCodeDlg.h -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Http.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Http.cpp -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Http.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Http.h -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Leave Messages.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Leave Messages.aps -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Leave Messages.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Leave Messages.cpp -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Leave Messages.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Leave Messages.h -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Leave Messages.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Leave Messages.rc -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Leave MessagesDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Leave MessagesDlg.cpp -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/Leave MessagesDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/Leave MessagesDlg.h -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/res/Leave Messages.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/res/Leave Messages.ico -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/res/LeaveMessages.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/res/LeaveMessages.rc2 -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/resource.h -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/stdafx.cpp -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/stdafx.h -------------------------------------------------------------------------------- /Leave Messages/Leave Messages/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/Leave Messages/Leave Messages/targetver.h -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LoadBitmapDemo", "LoadBitmapDemo\LoadBitmapDemo.vcxproj", "{7B359928-1055-4685-B3D8-2F04D445C75D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {7B359928-1055-4685-B3D8-2F04D445C75D}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {7B359928-1055-4685-B3D8-2F04D445C75D}.Debug|Win32.Build.0 = Debug|Win32 16 | {7B359928-1055-4685-B3D8-2F04D445C75D}.Release|Win32.ActiveCfg = Release|Win32 17 | {7B359928-1055-4685-B3D8-2F04D445C75D}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo.v12.suo -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.log: -------------------------------------------------------------------------------- 1 | 生成启动时间为 2014/7/20 13:33:32。 2 | 1>项目“D:\C++学习\LoadBitmapDemo\LoadBitmapDemo\LoadBitmapDemo.vcxproj”在节点 2 上(Build 个目标)。 3 | 1>ClCompile: 4 | D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yc"stdafx.h" /Fp"Debug\LoadBitmapDemo.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt stdafx.cpp 5 | stdafx.cpp 6 | D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\LoadBitmapDemo.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt LoadBitmapDemo.cpp 7 | LoadBitmapDemo.cpp 8 | ResourceCompile: 9 | C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe /l"0x0409" /nologo /fo"Debug\LoadBitmapDemo.res" LoadBitmapDemo.rc 10 | Link: 11 | D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"D:\C++学习\LoadBitmapDemo\Debug\LoadBitmapDemo.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"D:\C++学习\LoadBitmapDemo\Debug\LoadBitmapDemo.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\C++学习\LoadBitmapDemo\Debug\LoadBitmapDemo.lib" /MACHINE:X86 Debug\LoadBitmapDemo.res 12 | Debug\LoadBitmapDemo.obj 13 | Debug\stdafx.obj 14 | LoadBitmapDemo.vcxproj -> D:\C++学习\LoadBitmapDemo\Debug\LoadBitmapDemo.exe 15 | 1>已完成生成项目“D:\C++学习\LoadBitmapDemo\LoadBitmapDemo\LoadBitmapDemo.vcxproj”(Build 个目标)的操作。 16 | 17 | 生成成功。 18 | 19 | 已用时间 00:00:17.11 20 | -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.obj -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.pch -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.res -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/LoadBitmapDemo.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|D:\C++学习\LoadBitmapDemo\| 3 | -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/LoadBitmapDemo.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/stdafx.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/stdafx.obj -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/vc120.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/vc120.idb -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/Debug/vc120.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/Debug/vc120.pdb -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.aps -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.cpp -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.ico -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.rc -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/LoadBitmapDemo.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 资源文件 45 | 46 | 47 | 48 | 49 | 资源文件 50 | 51 | 52 | 资源文件 53 | 54 | 55 | 资源文件 56 | 57 | 58 | -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 应用程序:LoadBitmapDemo 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 LoadBitmapDemo 应用程序。 6 | 7 | 本文件概要介绍组成 LoadBitmapDemo 应用程序的每个文件的内容。 8 | 9 | 10 | LoadBitmapDemo.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | LoadBitmapDemo.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | LoadBitmapDemo.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 应用程序向导创建了下列资源: 21 | 22 | LoadBitmapDemo.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | Resource.h 26 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 27 | 28 | LoadBitmapDemo.ico 29 | 这是用作应用程序图标 (32x32) 的图标文件。此图标包括在主资源文件 LoadBitmapDemo.rc 中。 30 | 31 | small.ico 32 | 这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 LoadBitmapDemo.rc 中。 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | 其他标准文件: 36 | 37 | StdAfx.h, StdAfx.cpp 38 | 这些文件用于生成名为 LoadBitmapDemo.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/bitmap1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/bitmap1.bmp -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/resource.h -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/small.ico -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/stdafx.cpp -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/stdafx.h -------------------------------------------------------------------------------- /LoadBitmapDemo/LoadBitmapDemo/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/LoadBitmapDemo/targetver.h -------------------------------------------------------------------------------- /LoadBitmapDemo/学习.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/LoadBitmapDemo/学习.docx -------------------------------------------------------------------------------- /MulThread/MulThreadTest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MulThreadTest", "MulThreadTest\MulThreadTest.vcxproj", "{FA8E9170-E95B-4114-8F2F-C66DDC21A7D5}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {FA8E9170-E95B-4114-8F2F-C66DDC21A7D5}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {FA8E9170-E95B-4114-8F2F-C66DDC21A7D5}.Debug|Win32.Build.0 = Debug|Win32 16 | {FA8E9170-E95B-4114-8F2F-C66DDC21A7D5}.Release|Win32.ActiveCfg = Release|Win32 17 | {FA8E9170-E95B-4114-8F2F-C66DDC21A7D5}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /MulThread/MulThreadTest.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest.suo -------------------------------------------------------------------------------- /MulThread/MulThreadTest.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest.v12.suo -------------------------------------------------------------------------------- /MulThread/MulThreadTest/CreateThread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/CreateThread.cpp -------------------------------------------------------------------------------- /MulThread/MulThreadTest/CreateThread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/CreateThread.h -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTest.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/MulThreadTest.aps -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/MulThreadTest.cpp -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/MulThreadTest.h -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTest.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/MulThreadTest.rc -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTest.vcproj.LYJ.Zhang.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 35 | 36 | 39 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTestDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/MulThreadTestDlg.cpp -------------------------------------------------------------------------------- /MulThread/MulThreadTest/MulThreadTestDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/MulThreadTestDlg.h -------------------------------------------------------------------------------- /MulThread/MulThreadTest/NewWinThread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/NewWinThread.cpp -------------------------------------------------------------------------------- /MulThread/MulThreadTest/NewWinThread.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | 5 | // CNewWinThread 6 | 7 | class CNewWinThread : public CWinThread 8 | { 9 | DECLARE_DYNCREATE(CNewWinThread) 10 | 11 | protected: 12 | CNewWinThread(); // protected constructor used by dynamic creation 13 | virtual ~CNewWinThread(); 14 | 15 | public: 16 | virtual BOOL InitInstance(); 17 | virtual int ExitInstance(); 18 | 19 | protected: 20 | DECLARE_MESSAGE_MAP() 21 | }; 22 | 23 | 24 | -------------------------------------------------------------------------------- /MulThread/MulThreadTest/ReadMe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/ReadMe.txt -------------------------------------------------------------------------------- /MulThread/MulThreadTest/res/Champicons Icon 27.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/res/Champicons Icon 27.ico -------------------------------------------------------------------------------- /MulThread/MulThreadTest/res/MulThreadTest.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/res/MulThreadTest.ico -------------------------------------------------------------------------------- /MulThread/MulThreadTest/res/MulThreadTest.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/res/MulThreadTest.rc2 -------------------------------------------------------------------------------- /MulThread/MulThreadTest/res/icon3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/res/icon3.ico -------------------------------------------------------------------------------- /MulThread/MulThreadTest/res/icon4.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/res/icon4.ico -------------------------------------------------------------------------------- /MulThread/MulThreadTest/res/kalarm.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/res/kalarm.ico -------------------------------------------------------------------------------- /MulThread/MulThreadTest/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by MulThreadTest.rc 4 | // 5 | #define IDD_MULTHREADTEST_DIALOG 102 6 | #define IDI_ICON1 127 7 | #define IDR_MAINFRAME 128 8 | #define IDD_DIALOG1 129 9 | #define IDI_ICON2 131 10 | #define IDI_ICON3 132 11 | #define IDI_ICON4 133 12 | #define IDC_PROGRESS1 1000 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 134 19 | #define _APS_NEXT_COMMAND_VALUE 32771 20 | #define _APS_NEXT_CONTROL_VALUE 1001 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /MulThread/MulThreadTest/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/stdafx.cpp -------------------------------------------------------------------------------- /MulThread/MulThreadTest/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MulThread/MulThreadTest/stdafx.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30501.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyTreadUITest", "MyTreadUITest\MyTreadUITest.vcxproj", "{B5A8A12D-E972-4622-A9CA-6EDF45C7C057}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {B5A8A12D-E972-4622-A9CA-6EDF45C7C057}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {B5A8A12D-E972-4622-A9CA-6EDF45C7C057}.Debug|Win32.Build.0 = Debug|Win32 16 | {B5A8A12D-E972-4622-A9CA-6EDF45C7C057}.Release|Win32.ActiveCfg = Release|Win32 17 | {B5A8A12D-E972-4622-A9CA-6EDF45C7C057}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest.v12.suo -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTread.cpp -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTread.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTreadUITest.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTreadUITest.aps -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTreadUITest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTreadUITest.cpp -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTreadUITest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTreadUITest.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTreadUITest.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTreadUITest.rc -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTreadUITestDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTreadUITestDlg.cpp -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/MyTreadUITestDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/MyTreadUITestDlg.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/TreadDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/TreadDlg.cpp -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/TreadDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/TreadDlg.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/res/MyTreadUITest.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/res/MyTreadUITest.ico -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/res/MyTreadUITest.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/res/MyTreadUITest.rc2 -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/resource.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/stdafx.cpp -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/stdafx.h -------------------------------------------------------------------------------- /MyTreadUITest/MyTreadUITest/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/MyTreadUITest/MyTreadUITest/targetver.h -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AppUnlockCore", "AppUnlockCore\AppUnlockCore.vcxproj", "{DB15C363-03DF-4413-85CB-BE4D91D541DD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {DB15C363-03DF-4413-85CB-BE4D91D541DD}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {DB15C363-03DF-4413-85CB-BE4D91D541DD}.Debug|Win32.Build.0 = Debug|Win32 16 | {DB15C363-03DF-4413-85CB-BE4D91D541DD}.Release|Win32.ActiveCfg = Release|Win32 17 | {DB15C363-03DF-4413-85CB-BE4D91D541DD}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/ProcessKill/AppUnlockCore.v12.suo -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/AppUnlockCore.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/ProcessKill/AppUnlockCore/AppUnlockCore.cpp -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/AppUnlockCore.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | Header Files 29 | 30 | 31 | 32 | 33 | Source Files 34 | 35 | 36 | Source Files 37 | 38 | 39 | Source Files 40 | 41 | 42 | -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/ProcessKillCore.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "ProcessKillCore.h" 3 | 4 | E_RESULT CProcessKillCore::KillProcess(std::wstring ApplicationPath) 5 | { 6 | ULONG ulSize = 0x1000; 7 | PSYSTEM_PROCESS_INFORMATION pSystemProcessInformation = (PSYSTEM_PROCESS_INFORMATION)malloc(ulSize); 8 | NTSTATUS status; 9 | int index = ApplicationPath.find_last_of(L"/\\"); 10 | if (index == std::string::npos) 11 | { 12 | return FAIL; 13 | } 14 | std::wstring ApplicationName = ApplicationPath.substr(index + 1); 15 | WCHAR Path[MAX_PATH]; 16 | 17 | NTQUERYSYSTEMINFORMATION NtQuerySystemInformation = (NTQUERYSYSTEMINFORMATION)GetProcAddress(GetModuleHandle(L"ntdll.dll"), "NtQuerySystemInformation"); 18 | if (NtQuerySystemInformation == NULL) 19 | { 20 | return FAIL; 21 | } 22 | while ((status = NtQuerySystemInformation(SystemProcessInformation, pSystemProcessInformation, ulSize, &ulSize) == STATUS_INFO_LENGTH_MISMATCH)) 23 | { 24 | pSystemProcessInformation = (PSYSTEM_PROCESS_INFORMATION)realloc(pSystemProcessInformation, ulSize); 25 | } 26 | while (pSystemProcessInformation->NextEntryOffset) 27 | { 28 | pSystemProcessInformation = (PSYSTEM_PROCESS_INFORMATION)((PCHAR)pSystemProcessInformation + pSystemProcessInformation->NextEntryOffset); 29 | if (pSystemProcessInformation->ProcessName.Length) 30 | { 31 | std::wstring temp(pSystemProcessInformation->ProcessName.Buffer); 32 | if (temp == ApplicationName) 33 | { 34 | HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pSystemProcessInformation->dUniqueProcessId); 35 | if (hProcess == INVALID_HANDLE_VALUE) 36 | { 37 | return FAIL; 38 | } 39 | GetModuleFileNameEx(hProcess, NULL, Path, sizeof(Path)); 40 | if (!wcscmp(Path, ApplicationPath.c_str())) 41 | { 42 | TerminateProcess(hProcess, 0); 43 | } 44 | } 45 | } 46 | } 47 | return SUCCESS; 48 | } 49 | -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/ProcessKillCore.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/ProcessKill/AppUnlockCore/ProcessKillCore.h -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | CONSOLE APPLICATION : AppUnlockCore Project Overview 3 | ======================================================================== 4 | 5 | AppWizard has created this AppUnlockCore application for you. 6 | 7 | This file contains a summary of what you will find in each of the files that 8 | make up your AppUnlockCore application. 9 | 10 | 11 | AppUnlockCore.vcxproj 12 | This is the main project file for VC++ projects generated using an Application Wizard. 13 | It contains information about the version of Visual C++ that generated the file, and 14 | information about the platforms, configurations, and project features selected with the 15 | Application Wizard. 16 | 17 | AppUnlockCore.vcxproj.filters 18 | This is the filters file for VC++ projects generated using an Application Wizard. 19 | It contains information about the association between the files in your project 20 | and the filters. This association is used in the IDE to show grouping of files with 21 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the 22 | "Source Files" filter). 23 | 24 | AppUnlockCore.cpp 25 | This is the main application source file. 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | Other standard files: 29 | 30 | StdAfx.h, StdAfx.cpp 31 | These files are used to build a precompiled header (PCH) file 32 | named AppUnlockCore.pch and a precompiled types file named StdAfx.obj. 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | Other notes: 36 | 37 | AppWizard uses "TODO:" comments to indicate parts of the source code you 38 | should add to or customize. 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // AppUnlockCore.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | 13 | 14 | 15 | // TODO: reference additional headers your program requires here 16 | -------------------------------------------------------------------------------- /ProcessKill/AppUnlockCore/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /RandomNumber/RandomNumber.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RandomNumber", "RandomNumber\RandomNumber.vcxproj", "{3B4BDD27-E68D-4291-9C5B-2B4265748CCC}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {3B4BDD27-E68D-4291-9C5B-2B4265748CCC}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {3B4BDD27-E68D-4291-9C5B-2B4265748CCC}.Debug|Win32.Build.0 = Debug|Win32 16 | {3B4BDD27-E68D-4291-9C5B-2B4265748CCC}.Release|Win32.ActiveCfg = Release|Win32 17 | {3B4BDD27-E68D-4291-9C5B-2B4265748CCC}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /RandomNumber/RandomNumber.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber.v12.suo -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/RandomNumber.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber/RandomNumber.aps -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/RandomNumber.h: -------------------------------------------------------------------------------- 1 | 2 | // RandomNumber.h : main header file for the PROJECT_NAME application 3 | // 4 | 5 | #pragma once 6 | 7 | #ifndef __AFXWIN_H__ 8 | #error "include 'stdafx.h' before including this file for PCH" 9 | #endif 10 | 11 | #include "resource.h" // main symbols 12 | 13 | 14 | // CRandomNumberApp: 15 | // See RandomNumber.cpp for the implementation of this class 16 | // 17 | 18 | class CRandomNumberApp : public CWinApp 19 | { 20 | public: 21 | CRandomNumberApp(); 22 | 23 | // Overrides 24 | public: 25 | virtual BOOL InitInstance(); 26 | 27 | // Implementation 28 | 29 | DECLARE_MESSAGE_MAP() 30 | }; 31 | 32 | extern CRandomNumberApp theApp; -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/RandomNumber.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber/RandomNumber.rc -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/RandomNumberDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber/RandomNumberDlg.cpp -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/RandomNumberDlg.h: -------------------------------------------------------------------------------- 1 | 2 | // RandomNumberDlg.h : header file 3 | // 4 | 5 | #pragma once 6 | #include "afxwin.h" 7 | #include "afxcmn.h" 8 | 9 | 10 | // CRandomNumberDlg dialog 11 | class CRandomNumberDlg : public CDialogEx 12 | { 13 | // Construction 14 | public: 15 | CRandomNumberDlg(CWnd* pParent = NULL); // standard constructor 16 | 17 | // Dialog Data 18 | enum { IDD = IDD_RANDOMNUMBER_DIALOG }; 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | 24 | // Implementation 25 | protected: 26 | HICON m_hIcon; 27 | 28 | // Generated message map functions 29 | virtual BOOL OnInitDialog(); 30 | afx_msg void OnPaint(); 31 | afx_msg HCURSOR OnQueryDragIcon(); 32 | DECLARE_MESSAGE_MAP() 33 | public: 34 | CButton m_btnRandom; 35 | CButton m_btnRedo; 36 | CEdit m_editStart; 37 | CEdit m_editNum; 38 | CEdit m_editEnd; 39 | afx_msg void OnBnClickedBtnRandom(); 40 | virtual BOOL PreTranslateMessage(MSG* pMsg); 41 | CEdit m_editResult; 42 | afx_msg void OnBnClickedBtnRedo(); 43 | }; 44 | -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/res/RandomNumber.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber/res/RandomNumber.ico -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/res/RandomNumber.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber/res/RandomNumber.rc2 -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/RandomNumber/RandomNumber/resource.h -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/stdafx.cpp: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.cpp : source file that includes just the standard includes 3 | // RandomNumber.pch will be the pre-compiled header 4 | // stdafx.obj will contain the pre-compiled type information 5 | 6 | #include "stdafx.h" 7 | 8 | 9 | -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, 4 | // but are changed infrequently 5 | 6 | #pragma once 7 | 8 | #ifndef VC_EXTRALEAN 9 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 10 | #endif 11 | 12 | #include "targetver.h" 13 | 14 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 15 | 16 | // turns off MFC's hiding of some common and often safely ignored warning messages 17 | #define _AFX_ALL_WARNINGS 18 | 19 | #include // MFC core and standard components 20 | #include // MFC extensions 21 | 22 | 23 | #include // MFC Automation classes 24 | 25 | 26 | 27 | #ifndef _AFX_NO_OLE_SUPPORT 28 | #include // MFC support for Internet Explorer 4 Common Controls 29 | #endif 30 | #ifndef _AFX_NO_AFXCMN_SUPPORT 31 | #include // MFC support for Windows Common Controls 32 | #endif // _AFX_NO_AFXCMN_SUPPORT 33 | 34 | #include // MFC support for ribbons and control bars 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | #ifdef _UNICODE 45 | #if defined _M_IX86 46 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 47 | #elif defined _M_X64 48 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 49 | #else 50 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 51 | #endif 52 | #endif 53 | 54 | 55 | -------------------------------------------------------------------------------- /RandomNumber/RandomNumber/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SCM", "SCM\SCM.vcxproj", "{31BB0CAE-F0AE-4333-90D9-4EF5B722990E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {31BB0CAE-F0AE-4333-90D9-4EF5B722990E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {31BB0CAE-F0AE-4333-90D9-4EF5B722990E}.Debug|Win32.Build.0 = Debug|Win32 16 | {31BB0CAE-F0AE-4333-90D9-4EF5B722990E}.Release|Win32.ActiveCfg = Release|Win32 17 | {31BB0CAE-F0AE-4333-90D9-4EF5B722990E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/ServicesContrlManager/SCM.v12.suo -------------------------------------------------------------------------------- /ServicesContrlManager/SCM/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | CONSOLE APPLICATION : SCM Project Overview 3 | ======================================================================== 4 | 5 | AppWizard has created this SCM application for you. 6 | 7 | This file contains a summary of what you will find in each of the files that 8 | make up your SCM application. 9 | 10 | 11 | SCM.vcxproj 12 | This is the main project file for VC++ projects generated using an Application Wizard. 13 | It contains information about the version of Visual C++ that generated the file, and 14 | information about the platforms, configurations, and project features selected with the 15 | Application Wizard. 16 | 17 | SCM.vcxproj.filters 18 | This is the filters file for VC++ projects generated using an Application Wizard. 19 | It contains information about the association between the files in your project 20 | and the filters. This association is used in the IDE to show grouping of files with 21 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the 22 | "Source Files" filter). 23 | 24 | SCM.cpp 25 | This is the main application source file. 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | Other standard files: 29 | 30 | StdAfx.h, StdAfx.cpp 31 | These files are used to build a precompiled header (PCH) file 32 | named SCM.pch and a precompiled types file named StdAfx.obj. 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | Other notes: 36 | 37 | AppWizard uses "TODO:" comments to indicate parts of the source code you 38 | should add to or customize. 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM/SCM.cpp: -------------------------------------------------------------------------------- 1 | // SCM.cpp : Defines the entry point for the console application. 2 | // 3 | 4 | #include "stdafx.h" 5 | #include 6 | #include 7 | 8 | int _tmain(int argc, _TCHAR* argv[]) 9 | { 10 | SC_HANDLE hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); 11 | if (hSCM == NULL) 12 | { 13 | std::cout << "OpenSCManager failed!\n"; 14 | return 0; 15 | } 16 | 17 | DWORD ServiceCount = 0; 18 | DWORD dwSize = 0; 19 | LPENUM_SERVICE_STATUS lpInfo; 20 | 21 | BOOL bRet = EnumServicesStatus(hSCM, SERVICE_TYPE_ALL, SERVICE_STATE_ALL, NULL, 0, &dwSize, &ServiceCount, NULL); 22 | 23 | if (!bRet && GetLastError() == ERROR_MORE_DATA) 24 | { 25 | lpInfo = (LPENUM_SERVICE_STATUS)(new BYTE[dwSize]); 26 | bRet = EnumServicesStatus(hSCM, SERVICE_TYPE_ALL, SERVICE_STATE_ALL, (LPENUM_SERVICE_STATUS)lpInfo, dwSize, &dwSize, &ServiceCount, NULL); 27 | if (!bRet) 28 | { 29 | delete lpInfo; 30 | CloseServiceHandle(hSCM); 31 | return 0; 32 | } 33 | } 34 | 35 | for (DWORD i = 0; i < ServiceCount; i++) 36 | { 37 | if ((!strcmp("Wired AutoConfig", lpInfo[i].lpDisplayName) && (lpInfo[i].ServiceStatus.dwCurrentState == 4))) 38 | { 39 | // std::cout << lpInfo[i].lpDisplayName << " " << lpInfo[i].ServiceStatus.dwCurrentState << std::endl; 40 | SC_HANDLE hSCService = OpenService(hSCM, lpInfo[i].lpServiceName, SERVICE_ALL_ACCESS); 41 | SERVICE_STATUS ServiceStatus; 42 | BOOL bRet = ControlService(hSCService, SERVICE_CONTROL_STOP, &ServiceStatus); 43 | if (bRet) 44 | { 45 | std::cout << " stop succeed! \n"; 46 | } 47 | else 48 | { 49 | std::cout << " stop failed! \n"; 50 | } 51 | CloseServiceHandle(hSCService); 52 | } 53 | } 54 | CloseServiceHandle(hSCM); 55 | delete lpInfo; 56 | system("pause"); 57 | return 0; 58 | } 59 | 60 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM/SCM.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | 29 | 30 | Source Files 31 | 32 | 33 | Source Files 34 | 35 | 36 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // SCM.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | 13 | 14 | 15 | // TODO: reference additional headers your program requires here 16 | -------------------------------------------------------------------------------- /ServicesContrlManager/SCM/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.vcxproj", "{84C8D896-011A-49C5-B58C-33F171A6D0EF}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {84C8D896-011A-49C5-B58C-33F171A6D0EF}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {84C8D896-011A-49C5-B58C-33F171A6D0EF}.Debug|Win32.Build.0 = Debug|Win32 16 | {84C8D896-011A-49C5-B58C-33F171A6D0EF}.Release|Win32.ActiveCfg = Release|Win32 17 | {84C8D896-011A-49C5-B58C-33F171A6D0EF}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1.v12.suo -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/ConsoleApplication1.cpp: -------------------------------------------------------------------------------- 1 | // ConsoleApplication1.cpp : Defines the entry point for the console application. 2 | // 3 | 4 | #include "stdafx.h" 5 | #include 6 | 7 | bool IsProcessRunAsAdmin() 8 | { 9 | SID_IDENTIFIER_AUTHORITY NtAuthority = SECURITY_NT_AUTHORITY; 10 | PSID AdministratorsGroup; 11 | 12 | BOOL b = AllocateAndInitializeSid( 13 | &NtAuthority, 14 | 2, 15 | SECURITY_BUILTIN_DOMAIN_RID, 16 | DOMAIN_ALIAS_RID_ADMINS, 17 | 0, 0, 0, 0, 0, 0, 18 | &AdministratorsGroup); 19 | 20 | if (b) 21 | { 22 | CheckTokenMembership(NULL, AdministratorsGroup, &b); 23 | FreeSid(AdministratorsGroup); 24 | } 25 | 26 | return b == TRUE; 27 | } 28 | 29 | int _tmain(int argc, _TCHAR* argv[]) 30 | { 31 | if (IsProcessRunAsAdmin()) 32 | { 33 | printf_s("admin\n"); 34 | } 35 | else 36 | { 37 | printf_s("not admin\n"); 38 | } 39 | system("pause"); 40 | return 0; 41 | } 42 | 43 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/ConsoleApplication1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | 29 | 30 | Source Files 31 | 32 | 33 | Source Files 34 | 35 | 36 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/ConsoleApplication1.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Jovi\Desktop\ConsoleApplication1\| 3 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleA.84C8D896.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleApplication1.log: -------------------------------------------------------------------------------- 1 | Build started 4/5/2015 2:13:28 PM. 2 | 1>Project "C:\Users\Jovi\Desktop\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.vcxproj" on node 2 (Build target(s)). 3 | 1>ClCompile: 4 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\ConsoleApplication1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ConsoleApplication1.cpp 5 | ConsoleApplication1.cpp 6 | Link: 7 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\Jovi\Desktop\ConsoleApplication1\Debug\ConsoleApplication1.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\Jovi\Desktop\ConsoleApplication1\Debug\ConsoleApplication1.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Jovi\Desktop\ConsoleApplication1\Debug\ConsoleApplication1.lib" /MACHINE:X86 Debug\ConsoleApplication1.obj 8 | Debug\stdafx.obj 9 | ConsoleApplication1.vcxproj -> C:\Users\Jovi\Desktop\ConsoleApplication1\Debug\ConsoleApplication1.exe 10 | 1>Done Building Project "C:\Users\Jovi\Desktop\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.vcxproj" (Build target(s)). 11 | 12 | Build succeeded. 13 | 14 | Time Elapsed 00:00:01.40 15 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleApplication1.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleApplication1.obj -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/ConsoleApplication1.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/ConsoleApplication1.pch -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/stdafx.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/stdafx.obj -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/vc120.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/vc120.idb -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/Debug/vc120.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/UAC Run permissions/ConsoleApplication1/Debug/vc120.pdb -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | CONSOLE APPLICATION : ConsoleApplication1 Project Overview 3 | ======================================================================== 4 | 5 | AppWizard has created this ConsoleApplication1 application for you. 6 | 7 | This file contains a summary of what you will find in each of the files that 8 | make up your ConsoleApplication1 application. 9 | 10 | 11 | ConsoleApplication1.vcxproj 12 | This is the main project file for VC++ projects generated using an Application Wizard. 13 | It contains information about the version of Visual C++ that generated the file, and 14 | information about the platforms, configurations, and project features selected with the 15 | Application Wizard. 16 | 17 | ConsoleApplication1.vcxproj.filters 18 | This is the filters file for VC++ projects generated using an Application Wizard. 19 | It contains information about the association between the files in your project 20 | and the filters. This association is used in the IDE to show grouping of files with 21 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the 22 | "Source Files" filter). 23 | 24 | ConsoleApplication1.cpp 25 | This is the main application source file. 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | Other standard files: 29 | 30 | StdAfx.h, StdAfx.cpp 31 | These files are used to build a precompiled header (PCH) file 32 | named ConsoleApplication1.pch and a precompiled types file named StdAfx.obj. 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | Other notes: 36 | 37 | AppWizard uses "TODO:" comments to indicate parts of the source code you 38 | should add to or customize. 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // ConsoleApplication1.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | 13 | 14 | 15 | // TODO: reference additional headers your program requires here 16 | -------------------------------------------------------------------------------- /UAC Run permissions/ConsoleApplication1/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NewFileTree", "NewFileTree\NewFileTree.vcxproj", "{F8DF6E83-3F1B-43EB-8A3A-A18EB0ECC042}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {F8DF6E83-3F1B-43EB-8A3A-A18EB0ECC042}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {F8DF6E83-3F1B-43EB-8A3A-A18EB0ECC042}.Debug|Win32.Build.0 = Debug|Win32 16 | {F8DF6E83-3F1B-43EB-8A3A-A18EB0ECC042}.Release|Win32.ActiveCfg = Release|Win32 17 | {F8DF6E83-3F1B-43EB-8A3A-A18EB0ECC042}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree.v12.suo -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/NewFileTree.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree/NewFileTree.aps -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/NewFileTree.h: -------------------------------------------------------------------------------- 1 | 2 | // NewFileTree.h : main header file for the PROJECT_NAME application 3 | // 4 | 5 | #pragma once 6 | 7 | #ifndef __AFXWIN_H__ 8 | #error "include 'stdafx.h' before including this file for PCH" 9 | #endif 10 | 11 | #include "resource.h" // main symbols 12 | 13 | 14 | // CNewFileTreeApp: 15 | // See NewFileTree.cpp for the implementation of this class 16 | // 17 | 18 | class CNewFileTreeApp : public CWinApp 19 | { 20 | public: 21 | CNewFileTreeApp(); 22 | 23 | // Overrides 24 | public: 25 | virtual BOOL InitInstance(); 26 | 27 | // Implementation 28 | 29 | DECLARE_MESSAGE_MAP() 30 | }; 31 | 32 | extern CNewFileTreeApp theApp; -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/NewFileTree.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree/NewFileTree.rc -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/NewFileTreeDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree/NewFileTreeDlg.cpp -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/SystemImageList.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "SystemImageList.h" 3 | 4 | int CSystemImageList::m_nRefCount = 0; 5 | 6 | CSystemImageList::CSystemImageList() 7 | { 8 | // We need to implement reference counting to 9 | // overcome an MFC limitation whereby you cannot 10 | // have two CImageLists attached to the one underlyinh 11 | // HIMAGELIST. If this was not done then you would get 12 | // an ASSERT in MFC if you had two or more CTreeFileCtrl's 13 | // in your program at the same time 14 | if (m_nRefCount == 0) { 15 | // Attach to the system image list 16 | SHFILEINFO shFileInfo; 17 | HIMAGELIST hSystemImageList = (HIMAGELIST)SHGetFileInfo(_T("C:\\"), 0, &shFileInfo, sizeof(SHFILEINFO), SHGFI_SYSICONINDEX | SHGFI_SMALLICON); 18 | VERIFY(m_ImageList.Attach(hSystemImageList)); 19 | } 20 | 21 | // Increment the reference count 22 | m_nRefCount++; 23 | } 24 | 25 | CSystemImageList::~CSystemImageList() 26 | { 27 | // Decrement the reference count 28 | m_nRefCount--; 29 | 30 | if (m_nRefCount == 0) { 31 | // Detach from the image list to prevent problems on 95/98 where 32 | // the system image list is shared across processes 33 | m_ImageList.Detach(); 34 | } 35 | } 36 | 37 | CImageList & CSystemImageList::GetImageList() { return m_ImageList; } 38 | 39 | int CSystemImageList::GetIconIndex(const CString &strFileName) 40 | { 41 | SHFILEINFO shFileInfo; 42 | if (SHGetFileInfo(strFileName, 0, &shFileInfo, sizeof(SHFILEINFO), SHGFI_ICON | SHGFI_SMALLICON) == 0) { 43 | return -1; 44 | } 45 | 46 | return shFileInfo.iIcon; 47 | } 48 | 49 | int CSystemImageList::GetSelectIconIndex(const CString &strFileName) 50 | { 51 | // Retreive the icon index for a specified file/folder 52 | SHFILEINFO shFileInfo; 53 | if (SHGetFileInfo(strFileName, 0, &shFileInfo, sizeof(SHFILEINFO), SHGFI_ICON | SHGFI_OPENICON | SHGFI_SMALLICON) == 0) { 54 | return -1; 55 | } 56 | 57 | return shFileInfo.iIcon; 58 | } 59 | -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/SystemImageList.h: -------------------------------------------------------------------------------- 1 | #ifndef SystemImageList_H 2 | #define SystemImageList_H 3 | 4 | #include 5 | 6 | class CSystemImageList 7 | { 8 | public: 9 | CSystemImageList(); 10 | ~CSystemImageList(); 11 | 12 | CImageList & GetImageList(); 13 | 14 | int GetIconIndex(const CString &strFileName); 15 | int GetSelectIconIndex(const CString &strFileName); 16 | 17 | protected: 18 | CImageList m_ImageList; 19 | 20 | static int m_nRefCount; 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/res/NewFileTree.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree/res/NewFileTree.ico -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/res/NewFileTree.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree/res/NewFileTree.rc2 -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/WindowsFileTree/NewFileTree/resource.h -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/stdafx.cpp: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.cpp : source file that includes just the standard includes 3 | // NewFileTree.pch will be the pre-compiled header 4 | // stdafx.obj will contain the pre-compiled type information 5 | 6 | #include "stdafx.h" 7 | 8 | 9 | -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, 4 | // but are changed infrequently 5 | 6 | #pragma once 7 | 8 | #ifndef VC_EXTRALEAN 9 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 10 | #endif 11 | 12 | #include "targetver.h" 13 | 14 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 15 | 16 | // turns off MFC's hiding of some common and often safely ignored warning messages 17 | #define _AFX_ALL_WARNINGS 18 | 19 | #include // MFC core and standard components 20 | #include // MFC extensions 21 | 22 | 23 | #include // MFC Automation classes 24 | 25 | 26 | 27 | #ifndef _AFX_NO_OLE_SUPPORT 28 | #include // MFC support for Internet Explorer 4 Common Controls 29 | #endif 30 | #ifndef _AFX_NO_AFXCMN_SUPPORT 31 | #include // MFC support for Windows Common Controls 32 | #endif // _AFX_NO_AFXCMN_SUPPORT 33 | 34 | #include // MFC support for ribbons and control bars 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | #ifdef _UNICODE 45 | #if defined _M_IX86 46 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 47 | #elif defined _M_X64 48 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 49 | #else 50 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 51 | #endif 52 | #endif 53 | -------------------------------------------------------------------------------- /WindowsFileTree/NewFileTree/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /iniEncrypt/VC++中ini文件加密解密.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/VC++中ini文件加密解密.txt -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iniEncaypt", "iniEncaypt\iniEncaypt.vcxproj", "{B68DBF00-A1AF-4C14-88A1-4255332E8488}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {B68DBF00-A1AF-4C14-88A1-4255332E8488}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {B68DBF00-A1AF-4C14-88A1-4255332E8488}.Debug|Win32.Build.0 = Debug|Win32 16 | {B68DBF00-A1AF-4C14-88A1-4255332E8488}.Release|Win32.ActiveCfg = Release|Win32 17 | {B68DBF00-A1AF-4C14-88A1-4255332E8488}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt.v12.suo -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/iniEncaypt.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt/iniEncaypt.aps -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/iniEncaypt.h: -------------------------------------------------------------------------------- 1 | 2 | // iniEncaypt.h : main header file for the PROJECT_NAME application 3 | // 4 | 5 | #pragma once 6 | 7 | #ifndef __AFXWIN_H__ 8 | #error "include 'stdafx.h' before including this file for PCH" 9 | #endif 10 | 11 | #include "resource.h" // main symbols 12 | 13 | 14 | // CiniEncayptApp: 15 | // See iniEncaypt.cpp for the implementation of this class 16 | // 17 | 18 | class CiniEncayptApp : public CWinApp 19 | { 20 | public: 21 | CiniEncayptApp(); 22 | 23 | // Overrides 24 | public: 25 | virtual BOOL InitInstance(); 26 | 27 | // Implementation 28 | 29 | DECLARE_MESSAGE_MAP() 30 | }; 31 | 32 | extern CiniEncayptApp theApp; -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/iniEncaypt.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt/iniEncaypt.rc -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/iniEncayptDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt/iniEncayptDlg.cpp -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/iniEncayptDlg.h: -------------------------------------------------------------------------------- 1 | 2 | // iniEncayptDlg.h : header file 3 | // 4 | 5 | #pragma once 6 | #include "afxwin.h" 7 | 8 | 9 | // CiniEncayptDlg dialog 10 | class CiniEncayptDlg : public CDialogEx 11 | { 12 | // Construction 13 | public: 14 | CiniEncayptDlg(CWnd* pParent = NULL); // standard constructor 15 | 16 | // Dialog Data 17 | enum { IDD = IDD_INIENCAYPT_DIALOG }; 18 | 19 | protected: 20 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 21 | 22 | 23 | // Implementation 24 | protected: 25 | HICON m_hIcon; 26 | 27 | // Generated message map functions 28 | virtual BOOL OnInitDialog(); 29 | afx_msg void OnPaint(); 30 | afx_msg HCURSOR OnQueryDragIcon(); 31 | DECLARE_MESSAGE_MAP() 32 | public: 33 | CEdit m_tb_sString; 34 | CEdit m_tb_dString; 35 | afx_msg void OnBnClickedBtnEncrypt(); 36 | afx_msg void OnBnClickedBtnDecrypt(); 37 | afx_msg void OnBnClickedBtnInput(); 38 | afx_msg void OnBnClickedBtnOutput(); 39 | }; 40 | 41 | CString Encrypt(CString S, WORD Key); 42 | CString Decrypt(CString S, WORD Key); 43 | CStringW CStrA2CStrW(const CStringA &cstrSrcA); 44 | CStringA CStrW2CStrA(const CStringW &cstrSrcW); -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/res/iniEncaypt.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt/res/iniEncaypt.ico -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/res/iniEncaypt.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt/res/iniEncaypt.rc2 -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HoCheung1993/Win32-Program/df792c303a23b66d377fcdee14e4c43049a4f971/iniEncrypt/iniEncaypt/resource.h -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/stdafx.cpp: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.cpp : source file that includes just the standard includes 3 | // iniEncaypt.pch will be the pre-compiled header 4 | // stdafx.obj will contain the pre-compiled type information 5 | 6 | #include "stdafx.h" 7 | 8 | 9 | -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, 4 | // but are changed infrequently 5 | 6 | #pragma once 7 | 8 | #ifndef VC_EXTRALEAN 9 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 10 | #endif 11 | 12 | #include "targetver.h" 13 | 14 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 15 | 16 | // turns off MFC's hiding of some common and often safely ignored warning messages 17 | #define _AFX_ALL_WARNINGS 18 | 19 | #include // MFC core and standard components 20 | #include // MFC extensions 21 | 22 | 23 | #include // MFC Automation classes 24 | 25 | 26 | 27 | #ifndef _AFX_NO_OLE_SUPPORT 28 | #include // MFC support for Internet Explorer 4 Common Controls 29 | #endif 30 | #ifndef _AFX_NO_AFXCMN_SUPPORT 31 | #include // MFC support for Windows Common Controls 32 | #endif // _AFX_NO_AFXCMN_SUPPORT 33 | 34 | #include // MFC support for ribbons and control bars 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | #ifdef _UNICODE 45 | #if defined _M_IX86 46 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 47 | #elif defined _M_X64 48 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 49 | #else 50 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 51 | #endif 52 | #endif 53 | 54 | 55 | -------------------------------------------------------------------------------- /iniEncrypt/iniEncaypt/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | --------------------------------------------------------------------------------