├── .gitattributes
├── .gitignore
├── Debug
├── PCMgr32.lib
├── PCMgrCmd32.lib
├── PCMgrKernel32.lib
└── PCMgrKernel32.sys
├── Debug_64
├── PCMgr64.lib
├── PCMgrCmd64.lib
└── PCMgrKernel64.lib
├── PCMgr.sln
├── PCMgrCmd
├── Debug
│ └── PCMgrCmd32.exe.recipe
├── PCMgrCmd.aps
├── PCMgrCmd.cpp
├── PCMgrCmd.rc
├── PCMgrCmd.vcxproj
├── PCMgrCmd.vcxproj.filters
├── PCMgrCmd.vcxproj.user
└── resource.h
├── PCMgrCmdRunner
├── Debug
│ └── PCMgrCmd32.dll.recipe
├── PCMgrCmdRunner.aps
├── PCMgrCmdRunner.cpp
├── PCMgrCmdRunner.rc
├── PCMgrCmdRunner.vcxproj
├── PCMgrCmdRunner.vcxproj.filters
├── PCMgrCmdRunner.vcxproj.user
├── PCMgrCmdRunnerEntry.h
├── dllmain.cpp
├── resource.h
├── stdafx.cpp
├── stdafx.h
└── targetver.h
├── PCMgrCore_en
├── Debug
│ ├── PCMgrApp32.resource2.dll.recipe
│ ├── RCa04996
│ └── RCa10624
├── PCMgrCore_en.vcxproj
├── PCMgrCore_en.vcxproj.filters
├── PCMgrCore_en.vcxproj.user
├── TaskMgrCore.aps
└── TaskMgrCore.rc
├── PCMgrKernel32
├── Driver.c
├── Driver.h
├── PCMgrKernel32.aps
├── PCMgrKernel32.rc
├── PCMgrKernel32.vcxproj
├── PCMgrKernel32.vcxproj.filters
├── PCMgrKernel32.vcxproj.user
├── defs.h
├── handle.c
├── handle.h
├── internalcall_x64.asm
├── internalcall_x86.asm
├── istructs.h
├── kmodul.c
├── kmodul.h
├── monitor.c
├── monitor.h
├── proc.c
├── proc.h
├── protect.c
├── protect.h
├── resource.h
├── sys.c
├── sys.h
├── unexp.c
└── unexp.h
├── PCMgrKrnlMgr
├── Debug
│ └── PCMgrKernel32.dll.recipe
├── MDriverLoader.cpp
├── MDriverLoader.h
├── MKrnlMgr.cpp
├── MKrnlMgr.h
├── PCMgrKrnlMgr.aps
├── PCMgrKrnlMgr.cpp
├── PCMgrKrnlMgr.h
├── PCMgrKrnlMgr.rc
├── PCMgrKrnlMgr.vcxproj
├── PCMgrKrnlMgr.vcxproj.filters
├── PCMgrKrnlMgr.vcxproj.user
├── RCa01072
├── dllmain.cpp
├── resource.h
├── stdafx.cpp
├── stdafx.h
└── targetver.h
├── PCMgrLoader
├── Debug
│ └── PCMgr32.exe.recipe
├── PCMgrDyFuns.c
├── PCMgrDyFuns.h
├── PCMgrLoader.aps
├── PCMgrLoader.c
├── PCMgrLoader.h
├── PCMgrLoader.ico
├── PCMgrLoader.rc
├── PCMgrLoader.vcxproj
├── PCMgrLoader.vcxproj.filters
├── PCMgrLoader.vcxproj.user
├── PCMgrPELoader.c
├── PCMgrPELoader.h
├── Release
│ ├── RCa03784
│ ├── RCa06064
│ └── RCa14620
├── mcrt.c
├── mcrt.h
├── resource.h
├── shellcode_x64.asm
├── shellcode_x86.asm
├── small.ico
├── stdafx.h
└── targetver.h
├── PCMgrNetMon
├── FormMain.Designer.cs
├── FormMain.cs
├── FormMain.resx
├── PCMgrNetMon.csproj
├── PCMgrNetMon.csproj.user
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── icoPcmgrNetMon.ico
├── PCMgrRegedit
├── FormMain.Designer.cs
├── FormMain.cs
├── FormMain.resx
├── NativeMethods.cs
├── PCMgrRegedit.csproj
├── PCMgrRegedit.csproj.user
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── icoPcmgrRegedit.ico
├── PCMgrUpdate
├── FormA.Designer.cs
├── FormA.cs
├── FormA.resx
├── FormErrLog.Designer.cs
├── FormErrLog.cs
├── FormErrLog.resx
├── FormMain.Designer.cs
├── FormMain.cs
├── FormMain.resx
├── NativeMethods.cs
├── PCMgrUpdate.csproj
├── PCMgrUpdate.csproj.user
├── PCMgrUpdate64.csproj
├── PCMgrUpdate64.csproj.user
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── UpdateWorker.cs
└── icoPcmgrUpr.ico
├── README.md
├── Release
├── PCMgr32.lib
├── PCMgrCmd32.lib
├── PCMgrKernel32.lib
├── PCMgrKernel32.sys
└── Release_x86_1.3.2.6.zip
├── Release_64
├── PCMgr64.lib
├── PCMgrCmd64.lib
├── PCMgrKernel64.lib
└── Release_x64_1.3.2.6.zip
├── TaskMgr
├── Aero
│ ├── CommandLink.cs
│ ├── ExpandButton.cs
│ ├── NativeMethods.cs
│ ├── Progressbar.cs
│ └── TaskDialog
│ │ ├── CustomButton.cs
│ │ ├── EventArgs.cs
│ │ ├── Message.cs
│ │ ├── NativeMethods.cs
│ │ ├── Results.cs
│ │ ├── TaskDialog.cs
│ │ ├── TaskDialogButton.cs
│ │ ├── TaskDialogIcon.cs
│ │ └── TaskDialog_static.cs
├── Ctls
│ ├── IPerformancePage.cs
│ ├── PerformanceGrid.cs
│ ├── PerformanceInfos.cs
│ ├── PerformanceList.cs
│ ├── PerformancePageCpu.Designer.cs
│ ├── PerformancePageCpu.cs
│ ├── PerformancePageCpu.en.resx
│ ├── PerformancePageCpu.resx
│ ├── PerformancePageDisk.Designer.cs
│ ├── PerformancePageDisk.cs
│ ├── PerformancePageDisk.en.resx
│ ├── PerformancePageDisk.resx
│ ├── PerformancePageNet.Designer.cs
│ ├── PerformancePageNet.cs
│ ├── PerformancePageNet.en.resx
│ ├── PerformancePageNet.resx
│ ├── PerformancePageRam.Designer.cs
│ ├── PerformancePageRam.cs
│ ├── PerformancePageRam.en.resx
│ ├── PerformancePageRam.resx
│ ├── PerformanceRamPoolGrid.cs
│ ├── PerformanceTitle.cs
│ ├── TaskMgrList.cs
│ ├── TaskMgrListApis.cs
│ ├── TaskMgrListHeader.cs
│ └── TaskMgrTabHeader.cs
├── FormMain.Designer.cs
├── FormMain.cs
├── FormMain.en.resx
├── FormMain.resx
├── FormSL.Designer.cs
├── FormSL.cs
├── FormSL.resx
├── Helpers
│ ├── ClassicalMenuRender.cs
│ ├── ConstVals.cs
│ ├── IconUtils.cs
│ └── SysVer.cs
├── Lanuages
│ ├── LanuageFBuffers.cs
│ ├── LanuageMgr.cs
│ ├── LanuageResource_en.Designer.cs
│ ├── LanuageResource_en.resx
│ ├── LanuageResource_zh.Designer.cs
│ └── LanuageResource_zh.resx
├── Main
│ ├── MainNativeBridge.cs
│ ├── MainPage.cs
│ ├── MainPageFileMgr.cs
│ ├── MainPageKernelDrvMgr.cs
│ ├── MainPagePerf.cs
│ ├── MainPageProcess.cs
│ ├── MainPageProcessDetails.cs
│ ├── MainPageScMgr.cs
│ ├── MainPageStartMgr.cs
│ ├── MainPageUserMgr.cs
│ ├── MainPageUwpMgr.cs
│ ├── MainSettings.cs
│ └── MainUtils.cs
├── NativeMethods.cs
├── PCMgr32.csproj
├── PCMgr32.csproj.user
├── PCMgr64.csproj
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Resources
│ ├── System.Windows.Forms.Button.bmp
│ ├── System.Windows.Forms.CheckBox.bmp
│ ├── System.Windows.Forms.ComboBox.bmp
│ ├── System.Windows.Forms.ContextMenu.bmp
│ ├── System.Windows.Forms.DateTimePicker.bmp
│ ├── System.Windows.Forms.DomainUpDown.bmp
│ ├── System.Windows.Forms.Form.bmp
│ ├── System.Windows.Forms.GroupBox.bmp
│ ├── System.Windows.Forms.HScrollBar.bmp
│ ├── System.Windows.Forms.Label.bmp
│ ├── System.Windows.Forms.LinkLabel.bmp
│ ├── System.Windows.Forms.ListBox.bmp
│ ├── System.Windows.Forms.ListView.bmp
│ ├── System.Windows.Forms.Panel.bmp
│ ├── System.Windows.Forms.PictureBox.bmp
│ ├── System.Windows.Forms.ProgressBar.bmp
│ ├── System.Windows.Forms.RadioButton.bmp
│ ├── System.Windows.Forms.RichTextBox.bmp
│ ├── System.Windows.Forms.StatusStrip.bmp
│ ├── System.Windows.Forms.TabControl.bmp
│ ├── System.Windows.Forms.TabPage.bmp
│ ├── System.Windows.Forms.TextBox.bmp
│ ├── System.Windows.Forms.ToolBar.bmp
│ ├── System.Windows.Forms.ToolTip.bmp
│ ├── System.Windows.Forms.TrackBar.bmp
│ ├── System.Windows.Forms.TreeView.bmp
│ ├── System.Windows.Forms.VScrollBar.bmp
│ ├── WizardHat.ico
│ ├── application_view_list.png
│ ├── ico131.ico
│ ├── ico148.ico
│ ├── ico30655.ico
│ ├── ico30656.ico
│ ├── ico30665.ico
│ ├── icoFiles.ico
│ ├── icoResourceMon.bmp
│ ├── icoService.ico
│ ├── icoServiceHost.ico
│ ├── icoWifiLevel0.ico
│ ├── icoWifiLevel1.ico
│ ├── icoWifiLevel2.ico
│ ├── icoWifiLevel3.ico
│ ├── icoWifiLevel4.ico
│ ├── icoWifiLevel5.ico
│ ├── iconContextMenu.png
│ ├── icon_background_uwp.png
│ ├── img_title_str.png
│ ├── img_x32.png
│ ├── img_x32inx64.png
│ ├── img_x64.png
│ ├── listHeaderArrowA.png
│ ├── listHeaderArrowAscending.png
│ ├── listHeaderArrowDisa.png
│ ├── listHeaderArrowDisascending.png
│ ├── pointCpu.png
│ ├── pointDisk.png
│ ├── pointGpu.png
│ ├── pointGray.png
│ ├── pointNet.png
│ └── pointRam.png
├── WorkWindow
│ ├── FormAbout.Designer.cs
│ ├── FormAbout.cs
│ ├── FormAbout.en.resx
│ ├── FormAbout.resx
│ ├── FormAlwaysOnTop.Designer.cs
│ ├── FormAlwaysOnTop.cs
│ ├── FormAlwaysOnTop.resx
│ ├── FormCheckFileUse.Designer.cs
│ ├── FormCheckFileUse.cs
│ ├── FormCheckFileUse.en.resx
│ ├── FormCheckFileUse.resx
│ ├── FormDelFileProgress.Designer.cs
│ ├── FormDelFileProgress.cs
│ ├── FormDelFileProgress.en.resx
│ ├── FormDelFileProgress.resx
│ ├── FormDetalsistHeaders.Designer.cs
│ ├── FormDetalsistHeaders.cs
│ ├── FormDetalsistHeaders.en.resx
│ ├── FormDetalsistHeaders.resx
│ ├── FormFillWithData.Designer.cs
│ ├── FormFillWithData.cs
│ ├── FormFillWithData.en.resx
│ ├── FormFillWithData.resx
│ ├── FormHelp.Designer.cs
│ ├── FormHelp.cs
│ ├── FormHelp.resx
│ ├── FormMainListHeaders.Designer.cs
│ ├── FormMainListHeaders.cs
│ ├── FormMainListHeaders.en.resx
│ ├── FormMainListHeaders.resx
│ ├── FormSetAffinity.Designer.cs
│ ├── FormSetAffinity.cs
│ ├── FormSetAffinity.en.resx
│ ├── FormSetAffinity.resx
│ ├── FormSettings.Designer.cs
│ ├── FormSettings.cs
│ ├── FormSettings.en.resx
│ ├── FormSettings.resx
│ ├── FormSpeedBall.Designer.cs
│ ├── FormSpeedBall.cs
│ ├── FormSpeedBall.resx
│ ├── FormSpyWindow.Designer.cs
│ ├── FormSpyWindow.cs
│ ├── FormSpyWindow.en.resx
│ ├── FormSpyWindow.resx
│ ├── FormTcp.Designer.cs
│ ├── FormTcp.cs
│ ├── FormTcp.resx
│ ├── FormTest.Designer.cs
│ ├── FormTest.cs
│ ├── FormTest.resx
│ ├── FormVHandles.Designer.cs
│ ├── FormVHandles.cs
│ ├── FormVHandles.en.resx
│ ├── FormVHandles.resx
│ ├── FormVHotKeys.Designer.cs
│ ├── FormVHotKeys.cs
│ ├── FormVHotKeys.en.resx
│ ├── FormVHotKeys.resx
│ ├── FormVKrnInfo.Designer.cs
│ ├── FormVKrnInfo.cs
│ ├── FormVKrnInfo.en.resx
│ ├── FormVKrnInfo.resx
│ ├── FormVPrivileges.Designer.cs
│ ├── FormVPrivileges.cs
│ ├── FormVPrivileges.en.resx
│ ├── FormVPrivileges.resx
│ ├── FormVTimers.Designer.cs
│ ├── FormVTimers.cs
│ ├── FormVTimers.en.resx
│ ├── FormVTimers.resx
│ ├── FormWindowKillAsk.Designer.cs
│ ├── FormWindowKillAsk.cs
│ ├── FormWindowKillAsk.resx
│ ├── KDbgPrint
│ │ ├── FormFind.Designer.cs
│ │ ├── FormFind.cs
│ │ ├── FormFind.resx
│ │ ├── FormKDbgPrint.Designer.cs
│ │ ├── FormKDbgPrint.cs
│ │ └── FormKDbgPrint.resx
│ ├── PageAbout.html
│ ├── PageAboutEn.html
│ └── Tools
│ │ ├── FormFileTool.Designer.cs
│ │ ├── FormFileTool.cs
│ │ ├── FormFileTool.en.resx
│ │ ├── FormFileTool.resx
│ │ ├── FormKDA.Designer.cs
│ │ ├── FormKDA.cs
│ │ ├── FormKDA.en.resx
│ │ ├── FormKDA.resx
│ │ ├── FormLoadDriver.Designer.cs
│ │ ├── FormLoadDriver.cs
│ │ ├── FormLoadDriver.en.resx
│ │ └── FormLoadDriver.resx
├── app.config
├── app.manifest
├── icoPcmgr.ico
├── icoPcmgrCos.ico
├── icoPcmgrNetMon.ico
├── icoPcmgrRegedit.ico
└── icoPcmgrUpr.ico
├── TaskMgrCore
├── Debug
│ └── PCMgr32.dll.recipe
├── DirectoryHelper.cpp
├── DirectoryHelper.h
├── DisOpCodeTable.cpp
├── Disassemble.cpp
├── Disassemble.h
├── DltHlp.h
├── MConnectionMonitor.cpp
├── MConnectionMonitor.h
├── MCpuInfoMonitor.cpp
├── MCpuInfoMonitor.h
├── MMonitor.cpp
├── MMonitor.h
├── MProcessMonitor.cpp
├── MProcessMonitor.h
├── MProcessPerformanctMonitor.cpp
├── MProcessPerformanctMonitor.h
├── MSystemPerformanctMonitor.cpp
├── MSystemPerformanctMonitor.h
├── PathHelper.cpp
├── PathHelper.h
├── ReadMe.txt
├── StringHlp.cpp
├── StringHlp.h
├── StringSplit.cpp
├── StringSplit.h
├── TaskMgrCore.aps
├── TaskMgrCore.rc
├── TaskMgrCore.vcxproj
├── TaskMgrCore.vcxproj.filters
├── TaskMgrCore.vcxproj.user
├── UidHlp.cpp
├── UidHlp.h
├── VersionHelpers.h
├── cmdhlp.cpp
├── cmdhlp.h
├── comdlghlp.cpp
├── comdlghlp.h
├── cscall.h
├── devicehlp.cpp
├── devicehlp.h
├── dllmain.cpp
├── fmhlp.cpp
├── fmhlp.h
├── handlehlp.cpp
├── handlehlp.h
├── ico
│ ├── icoActiveWin.ico
│ ├── icoDefApp.ico
│ ├── icoHiddenWin.ico
│ ├── icoLogin.ico
│ ├── icoOpen.ico
│ └── icoShutdown.ico
├── icoutils.cpp
├── icoutils.h
├── ioctls.h
├── kda.cpp
├── kda.h
├── kernelhlp.cpp
├── kernelhlp.h
├── lghlp.cpp
├── lghlp.h
├── loghlp.cpp
├── loghlp.h
├── mainprocs.cpp
├── mainprocs.h
├── mapphlp.cpp
├── mapphlp.h
├── msup.cpp
├── msup.h
├── netdef.h
├── ntdef.h
├── nthlp.cpp
├── nthlp.h
├── ntsymbol.cpp
├── ntsymbol.h
├── pehlp.cpp
├── pehlp.h
├── perfhlp.cpp
├── perfhlp.h
├── prochlp.cpp
├── prochlp.h
├── reghlp.cpp
├── reghlp.h
├── resource.h
├── runsdvui.cmd
├── schlp.cpp
├── schlp.h
├── settinghlp.cpp
├── settinghlp.h
├── srumhlp.cpp
├── srumhlp.h
├── starthlp.cpp
├── starthlp.h
├── stdafx.cpp
├── stdafx.h
├── suact.cpp
├── suact.h
├── sysfuns.h
├── syshlp.cpp
├── syshlp.h
├── sysstructs.h
├── targetver.h
├── thdhlp.cpp
├── thdhlp.h
├── userhlp.cpp
├── userhlp.h
├── uwphlp.cpp
├── uwphlp.h
├── vprocx.cpp
├── vprocx.h
├── winsta.h
├── wlanhlp.cpp
└── wlanhlp.h
├── ThirdPart
├── AeroWizard
│ ├── AeroWizard32.dll
│ └── AeroWizard64.dll
└── capstone
│ ├── include
│ ├── capstone
│ │ ├── arm.h
│ │ ├── arm64.h
│ │ ├── capstone.h
│ │ ├── evm.h
│ │ ├── m680x.h
│ │ ├── m68k.h
│ │ ├── mips.h
│ │ ├── platform.h
│ │ ├── ppc.h
│ │ ├── sparc.h
│ │ ├── systemz.h
│ │ ├── tms320c64x.h
│ │ ├── x86.h
│ │ └── xcore.h
│ ├── platform.h
│ └── windowsce
│ │ ├── intrin.h
│ │ └── stdint.h
│ └── lib
│ ├── x64
│ ├── capstone.dll
│ └── capstone_dll.lib
│ └── x86
│ ├── capstone.dll
│ └── capstone_dll.lib
├── image1.png
├── image10.png
├── image11.png
├── image2.png
├── image3.png
├── image4.png
├── image5.png
├── image6.png
├── image7.png
├── image8.png
├── image9.png
├── pcmgr_cmd_ico_256.png
├── pcmgr_cmd_ico_32.png
├── pcmgr_cmd_ico_64.png
├── pcmgr_update_ico_256.png
├── pcmgr_update_ico_32.png
├── pcmgrico_256.png
└── pcmgrico_32.png
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .vs/
2 | obj/
3 | bin/
4 | *.dll
5 | *.exe
6 | *.pdb
7 | *.cache
8 | *.idb
9 | *.tlog
10 | *.lnk
11 | *.obj
12 | *.res
13 | *.log
14 | *.pch
15 | *.lastbulidstate
16 | *.exp
17 | *.ilk
18 | *.pdb
19 | *.config
20 | *.xml
21 | *.diagsession
22 | *.iobj
23 | *.ipdb
24 | *.enc
25 | *.ini
26 | *.dmp
27 |
--------------------------------------------------------------------------------
/Debug/PCMgr32.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug/PCMgr32.lib
--------------------------------------------------------------------------------
/Debug/PCMgrCmd32.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug/PCMgrCmd32.lib
--------------------------------------------------------------------------------
/Debug/PCMgrKernel32.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug/PCMgrKernel32.lib
--------------------------------------------------------------------------------
/Debug/PCMgrKernel32.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug/PCMgrKernel32.sys
--------------------------------------------------------------------------------
/Debug_64/PCMgr64.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug_64/PCMgr64.lib
--------------------------------------------------------------------------------
/Debug_64/PCMgrCmd64.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug_64/PCMgrCmd64.lib
--------------------------------------------------------------------------------
/Debug_64/PCMgrKernel64.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Debug_64/PCMgrKernel64.lib
--------------------------------------------------------------------------------
/PCMgrCmd/Debug/PCMgrCmd32.exe.recipe:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | D:\Programming\WinProjects\PCMgr\Debug\PCMgrCmd32.exe
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PCMgrCmd/PCMgrCmd.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmd/PCMgrCmd.aps
--------------------------------------------------------------------------------
/PCMgrCmd/PCMgrCmd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmd/PCMgrCmd.cpp
--------------------------------------------------------------------------------
/PCMgrCmd/PCMgrCmd.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmd/PCMgrCmd.rc
--------------------------------------------------------------------------------
/PCMgrCmd/PCMgrCmd.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 |
--------------------------------------------------------------------------------
/PCMgrCmd/PCMgrCmd.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WindowsLocalDebugger
5 |
6 |
--------------------------------------------------------------------------------
/PCMgrCmd/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmd/resource.h
--------------------------------------------------------------------------------
/PCMgrCmdRunner/Debug/PCMgrCmd32.dll.recipe:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | D:\Programming\WinProjects\PCMgr\Debug\PCMgrCmd32.dll
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PCMgrCmdRunner/PCMgrCmdRunner.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/PCMgrCmdRunner.aps
--------------------------------------------------------------------------------
/PCMgrCmdRunner/PCMgrCmdRunner.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/PCMgrCmdRunner.cpp
--------------------------------------------------------------------------------
/PCMgrCmdRunner/PCMgrCmdRunner.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/PCMgrCmdRunner.rc
--------------------------------------------------------------------------------
/PCMgrCmdRunner/PCMgrCmdRunner.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 |
--------------------------------------------------------------------------------
/PCMgrCmdRunner/PCMgrCmdRunner.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/PCMgrCmdRunner/PCMgrCmdRunnerEntry.h:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include
3 | #include
4 | #include
5 | #include
6 |
7 | using namespace std;
8 |
9 | typedef void (*COS_FOR_ALLOC_EXIT_CALLBACK)();
10 |
11 | #define M_CMD_HANDLER(name)void name(vector* cmds, int size)
12 | #define M_CMD_HANDLER_WITH_RTN(name,rtn) rtn name(vector* cmds, int size)
13 |
14 | CMD_CAPI(VOID) MInitAllCmd();
15 | CMD_CAPI(BOOL) MStartRunCmdThread(COS_FOR_ALLOC_EXIT_CALLBACK callback);
16 | CMD_CAPI(BOOL) MStopRunCmdThread();
17 | CMD_CAPI(int) MAppCmdStart();
18 | CMD_CAPI(BOOL) MAppCmdCanRun();
19 | CMD_CAPI(BOOL) MAppCmdRunOne(BOOL isMain, char* cmd);
20 | CMD_CAPI(VOID) MAppCmdOnExit();
21 |
--------------------------------------------------------------------------------
/PCMgrCmdRunner/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/dllmain.cpp
--------------------------------------------------------------------------------
/PCMgrCmdRunner/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/resource.h
--------------------------------------------------------------------------------
/PCMgrCmdRunner/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/stdafx.cpp
--------------------------------------------------------------------------------
/PCMgrCmdRunner/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/stdafx.h
--------------------------------------------------------------------------------
/PCMgrCmdRunner/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCmdRunner/targetver.h
--------------------------------------------------------------------------------
/PCMgrCore_en/Debug/PCMgrApp32.resource2.dll.recipe:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | D:\Programming\WinProjects\PCMgr\Debug\en\PCMgrApp32.resource2.dll
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PCMgrCore_en/Debug/RCa04996:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCore_en/Debug/RCa04996
--------------------------------------------------------------------------------
/PCMgrCore_en/Debug/RCa10624:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCore_en/Debug/RCa10624
--------------------------------------------------------------------------------
/PCMgrCore_en/PCMgrCore_en.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 |
--------------------------------------------------------------------------------
/PCMgrCore_en/PCMgrCore_en.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/PCMgrCore_en/TaskMgrCore.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCore_en/TaskMgrCore.aps
--------------------------------------------------------------------------------
/PCMgrCore_en/TaskMgrCore.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrCore_en/TaskMgrCore.rc
--------------------------------------------------------------------------------
/PCMgrKernel32/Driver.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/Driver.c
--------------------------------------------------------------------------------
/PCMgrKernel32/Driver.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include
3 | #include "defs.h"
4 | #include "istructs.h"
5 |
6 | typedef struct tag_DBGPRINT_DATA
7 | {
8 | CHAR StrBuffer[128];
9 | void * Next;
10 | }DBGPRINT_DATA, *PDBGPRINT_DATA;
11 |
12 | NTSTATUS DriverEntry(IN PDRIVER_OBJECT pDriverObject, IN PUNICODE_STRING pRegPath);
13 | VOID DriverUnload(_In_ struct _DRIVER_OBJECT *DriverObject);
14 |
15 | NTSTATUS IOControlDispatch(IN PDEVICE_OBJECT pDeviceObject, IN PIRP Irp);
16 | NTSTATUS CreateDispatch(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
17 |
18 | NTSTATUS InitKernel(PKINITAGRS parm);
19 |
20 | VOID KxLoadFunctions();
21 | NTSTATUS KxInitMyDbgView();
22 | void KxMyDbgViewReset();
23 | BOOLEAN KxMyDbgViewWorking();
24 | NTSTATUS KxUnInitMyDbgView();
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/PCMgrKernel32/PCMgrKernel32.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/PCMgrKernel32.aps
--------------------------------------------------------------------------------
/PCMgrKernel32/PCMgrKernel32.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/PCMgrKernel32.rc
--------------------------------------------------------------------------------
/PCMgrKernel32/PCMgrKernel32.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/PCMgrKernel32/defs.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/defs.h
--------------------------------------------------------------------------------
/PCMgrKernel32/handle.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/handle.c
--------------------------------------------------------------------------------
/PCMgrKernel32/handle.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 | NTSTATUS KxForceCloseHandle(HANDLE pid, HANDLE HandleValue);
5 |
--------------------------------------------------------------------------------
/PCMgrKernel32/internalcall_x64.asm:
--------------------------------------------------------------------------------
1 |
2 | .data
3 | extern PsGetNextProcessThread:qword
4 |
5 | .code
6 |
7 |
8 | KxGetNextProcessThread_x64Call PROC
9 |
10 | arg_0= qword ptr 8
11 | arg_8= qword ptr 10h
12 |
13 | mov [rsp+arg_8], rdx
14 | mov [rsp+arg_0], rcx
15 | sub rsp, 28h
16 | mov rdx, [rsp+28h+arg_8]
17 | mov rcx, [rsp+28h+arg_0]
18 | mov rbx, rdx
19 | call PsGetNextProcessThread
20 | mov rbx, rax
21 | mov rax, rbx
22 | add rsp, 28h
23 | ret
24 | KxGetNextProcessThread_x64Call ENDP
25 |
26 | END
--------------------------------------------------------------------------------
/PCMgrKernel32/internalcall_x86.asm:
--------------------------------------------------------------------------------
1 | .model flat
2 | .data
3 | extern _PsGetNextProcessThread:dword
4 |
5 | .code
6 |
7 | _KxGetNextProcessThread_x86Call@8 PROC
8 |
9 | Process= dword ptr 8
10 | Thread= dword ptr 0Ch
11 |
12 | push ebp
13 | mov ebp, esp
14 | mov ebx, [ebp+Thread]
15 | push ebx
16 | mov eax, [ebp+Process]
17 | call _PsGetNextProcessThread
18 | mov ebx, eax
19 | mov eax, ebx
20 | pop ebp
21 | retn 8
22 | _KxGetNextProcessThread_x86Call@8 ENDP
23 |
24 | END
--------------------------------------------------------------------------------
/PCMgrKernel32/istructs.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/istructs.h
--------------------------------------------------------------------------------
/PCMgrKernel32/kmodul.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/kmodul.c
--------------------------------------------------------------------------------
/PCMgrKernel32/kmodul.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 | NTSTATUS KxUnLoadDrvObjectByDrvObject(ULONG_PTR pDrvObject);
5 |
6 | NTSTATUS KxGetDrvObjectByName(wchar_t * pszDrvName, ULONG_PTR* pDrvObject);
7 |
--------------------------------------------------------------------------------
/PCMgrKernel32/monitor.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/monitor.c
--------------------------------------------------------------------------------
/PCMgrKernel32/monitor.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 | NTSTATUS KxPsMonitorInit();
5 |
6 | VOID KxPsMonitorUnInit();
7 |
8 | VOID KxLmageNotifyRoutine(PUNICODE_STRING FullImageName, HANDLE ProcessId, PIMAGE_INFO ImageInfo);
9 |
10 | VOID KxCreateProcessNotifyEx(PEPROCESS Process, HANDLE ProcessId, PPS_CREATE_NOTIFY_INFO CreateInfo);
11 |
12 | VOID KxCreateThreadNotify(IN HANDLE ProcessId, IN HANDLE ThreadId, IN BOOLEAN Create);
13 |
14 | NTSTATUS KxRefuseCreateThread(IN HANDLE ProcessId, IN HANDLE ThreadId);
15 |
--------------------------------------------------------------------------------
/PCMgrKernel32/proc.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/proc.c
--------------------------------------------------------------------------------
/PCMgrKernel32/proc.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 | #define PS_PROCESS_FLAGS_PROCESS_DELETE 0x00000008UL // Delete process has been issued
5 | #define PS_CROSS_THREAD_FLAGS_TERMINATED 0x00000001UL
6 |
7 | #define PS_SET_BITS(Flags, Flag) \
8 | RtlInterlockedSetBitsDiscardReturn (Flags, Flag)
9 | #define PS_TEST_SET_BITS(Flags, Flag) \
10 | RtlInterlockedSetBits (Flags, Flag)
11 |
12 |
13 | NTSTATUS KxTerminateProcessTest(ULONG_PTR PID);
14 | NTSTATUS KxGetProcessHotKeys(ULONG_PTR PID, ULONG * outCount);
15 | NTSTATUS KxGetProcessTimers(ULONG_PTR PID, ULONG*outCount);
16 | NTSTATUS KxTerminateProcessByZero(ULONG_PTRPID);
17 | PUNICODE_STRING KxGetProcessCommandLine(PEPROCESS Process);
18 | PUNICODE_STRING KxGetProcessFullPath(PEPROCESS Process);
19 | VOID KxForceResumeThread(PETHREAD Thread);
20 | NTSTATUS KxTerminateThreadWithTid(ULONG_PTR tid, ULONG exitCode, BOOLEAN useapc);
21 | NTSTATUS KxTerminateProcessWithPid(ULONG_PTR pid, ULONG exitCode, BOOLEAN usepst, BOOLEAN useapc);
22 |
23 |
--------------------------------------------------------------------------------
/PCMgrKernel32/protect.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/protect.c
--------------------------------------------------------------------------------
/PCMgrKernel32/protect.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 | #define PROCESS_TERMINATE 0x0001
5 | #define PROCESS_VM_OPERATION 0x0008
6 | #define PROCESS_VM_READ 0x0010
7 | #define PROCESS_VM_WRITE 0x0020
8 |
9 | typedef struct tag_PROTECT_PROC_STORAGE
10 | {
11 | HANDLE ProcessId;
12 | void * Next;
13 | }PROTECT_PROC_STORAGE, *PPROTECT_PROC_STORAGE;
14 |
15 | BOOLEAN KxIsProcessProtect(HANDLE pid);
16 |
17 | VOID KxProtectProcessWithPid(HANDLE pid);
18 | VOID KxUnProtectProcessWithPid(HANDLE pid);
19 |
20 | NTSTATUS KxInitProtectProcess();
21 | VOID KxUnInitProtectProcess();
22 |
23 | OB_PREOP_CALLBACK_STATUS KxObPreCall(PVOID RegistrationContext, POB_PRE_OPERATION_INFORMATION pOperationInformation);
24 |
--------------------------------------------------------------------------------
/PCMgrKernel32/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/resource.h
--------------------------------------------------------------------------------
/PCMgrKernel32/sys.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/sys.c
--------------------------------------------------------------------------------
/PCMgrKernel32/sys.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 |
5 | VOID KxForceReBoot(void);
6 |
7 | VOID KxForceShutdown(void);
8 |
9 | BOOLEAN KxDasm(ULONG_PTR address, ULONG_PTR offest, PUCHAR buf);
10 |
--------------------------------------------------------------------------------
/PCMgrKernel32/unexp.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKernel32/unexp.c
--------------------------------------------------------------------------------
/PCMgrKernel32/unexp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "Driver.h"
3 |
4 | NTSTATUS KxGetFunctions(PWINVERS parm);
5 |
6 | VOID KxGetFunctionsFormPDBData(PNTOS_PDB_DATA data);
7 |
8 | VOID KxGetStructOffestsFormPDBData(PNTOS_EPROCESS_OFF_DATA data);
9 |
10 | VOID KxGetWin32kFunctionsFormPDBData(PWIN32K_PDB_DATA data);
11 |
12 | VOID KxPrintInternalFuns();
13 |
14 | VOID KxPrintInternalOffests();
15 |
16 | NTSTATUS KxLoadStructOffests(PWINVERS parm);
17 |
18 | ULONG_PTR KxSearchFeatureCodeForAddress(ULONG_PTR StartAddress, PUCHAR FeatureCode, int FeatureCodeSize, int Search_MaxLength);
19 |
20 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/Debug/PCMgrKernel32.dll.recipe:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | D:\Programming\WinProjects\PCMgr\Debug\PCMgrKernel32.dll
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/MDriverLoader.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "MDriverLoader.h"
3 |
4 | #include "..\TaskMgrCore\reghlp.h"
5 | #include "..\TaskMgrCore\kernelhlp.h"
6 |
7 | MDriverLoader::MDriverLoader()
8 | {
9 | }
10 | MDriverLoader::~MDriverLoader()
11 | {
12 | }
13 |
14 | bool MDriverLoader::LoadDriver(const wchar_t * lpszDriverServiceName, const wchar_t * driverFilePath)
15 | {
16 | return MLoadKernelDriver((LPWSTR)lpszDriverServiceName, (LPWSTR)driverFilePath, NULL);
17 | }
18 | bool MDriverLoader::UnLoadDriver(const wchar_t * lpszDriverServiceName)
19 | {
20 | return MUnLoadKernelDriver((LPWSTR)lpszDriverServiceName);
21 | }
22 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/MDriverLoader.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | class MK_API MDriverLoader
5 | {
6 | public:
7 | MDriverLoader();
8 | ~MDriverLoader();
9 |
10 | static bool LoadDriver(const wchar_t* lpszDriverServiceName, const wchar_t* driverFilePath);
11 | static bool UnLoadDriver(const wchar_t* lpszDriverServiceName);
12 | };
13 |
14 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/MKrnlMgr.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | class MK_API MKrnlMgr
5 | {
6 | public:
7 | MKrnlMgr();
8 | ~MKrnlMgr();
9 |
10 | static bool UnInitKernel();
11 | static bool InitKernel(LPCWSTR currentPath);
12 | static bool KernelInited();
13 | static bool KernelNeed64();
14 | static bool KernelCanUse();
15 |
16 | static HANDLE DriverHandle;
17 | private:
18 | static bool KernelInitHandle();
19 | };
20 |
21 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/PCMgrKrnlMgr.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/PCMgrKrnlMgr.aps
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/PCMgrKrnlMgr.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/PCMgrKrnlMgr.cpp
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/PCMgrKrnlMgr.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/PCMgrKrnlMgr.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/PCMgrKrnlMgr.rc
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/PCMgrKrnlMgr.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 |
59 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/PCMgrKrnlMgr.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/RCa01072:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/RCa01072
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/dllmain.cpp
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/resource.h
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/stdafx.cpp
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/stdafx.h
--------------------------------------------------------------------------------
/PCMgrKrnlMgr/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrKrnlMgr/targetver.h
--------------------------------------------------------------------------------
/PCMgrLoader/Debug/PCMgr32.exe.recipe:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | D:\Programming\WinProjects\PCMgr\Debug\PCMgr32.exe
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrDyFuns.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | typedef VOID(WINAPI*fnExitProcess)(__in UINT uExitCode);
5 | typedef HMODULE(WINAPI *fnLoadLibraryA)(LPCSTR lpLibFileName);
6 | typedef HMODULE(WINAPI *fnLoadLibraryW)(LPCWSTR lpLibFileName);
7 | typedef FARPROC(WINAPI*fnGetProcAddress)(__in HMODULE hModule,__in LPCSTR lpProcName);
8 | typedef HMODULE(WINAPI*fnGetModuleHandleA)(__in_opt LPCSTR lpModuleName);
9 |
10 | typedef long(NTAPI* fnRtlGetVersion)(PRTL_OSVERSIONINFOW lpVersionInformation);
11 |
12 | typedef int (WINAPI *fnMessageBoxW)(__in_opt HWND hWnd, __in_opt LPCWSTR lpText, __in_opt LPCWSTR lpCaption, __in UINT uType);
13 | typedef int (WINAPI *fnMessageBoxA)(__in_opt HWND hWnd, __in_opt LPCSTR lpText, __in_opt LPCSTR lpCaption, __in UINT uType);
14 |
15 | typedef DWORD(*_MAppMainGetExitCode)();
16 | typedef void(*_MAppMainRun)();
17 | typedef void(*_MAppSet)(int id, void*v);
18 |
19 |
20 | extern fnMessageBoxW _MessageBoxW;
21 | extern fnMessageBoxA _MessageBoxA;
22 | extern fnExitProcess _ExitProcess;
23 | extern fnLoadLibraryA _LoadLibraryA;
24 | extern fnLoadLibraryW _LoadLibraryW;
25 | extern fnRtlGetVersion RtlGetVersion;
26 |
27 | extern _MAppSet MAppSet;
28 | extern _MAppMainGetExitCode MAppMainGetExitCode;
29 | extern _MAppMainRun MAppMainRun;
30 | extern LPVOID clrcreateinstance;
31 |
32 | VOID M2();
33 | VOID MSet2(LPVOID x);
34 | BOOL MLoadDyamicFuns();
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrLoader.aps
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrLoader.c
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrLoader.h
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrLoader.ico
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrLoader.rc
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.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 |
59 |
60 |
61 | 资源文件
62 |
63 |
64 | 资源文件
65 |
66 |
67 | 资源文件
68 |
69 |
70 | 资源文件
71 |
72 |
73 |
74 |
75 | 源文件
76 |
77 |
78 | 源文件
79 |
80 |
81 |
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrLoader.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Mixed
5 | WindowsLocalDebugger
6 | select apphistory
7 | C:\Users\a\Desktop\Debug\
8 | RemoteWithoutAuthentication
9 | NativeOnly
10 | 192.168.11.136
11 | C:\Users\a\Desktop\Debug\PCMgr32.exe
12 |
13 |
14 | NativeOnly
15 | WindowsLocalDebugger
16 | select uwpapps
17 | 192.168.116.130
18 | RemoteWithoutAuthentication
19 | C:\Program Files\MyApps\
20 | Mixed
21 | C:\Program Files\MyApps\PCMgr32.exe
22 |
23 |
24 | Mixed
25 | WindowsLocalDebugger
26 |
27 |
28 |
29 |
30 | NativeOnly
31 | WindowsLocalDebugger
32 |
33 |
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrPELoader.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrPELoader.c
--------------------------------------------------------------------------------
/PCMgrLoader/PCMgrPELoader.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/PCMgrPELoader.h
--------------------------------------------------------------------------------
/PCMgrLoader/Release/RCa03784:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/Release/RCa03784
--------------------------------------------------------------------------------
/PCMgrLoader/Release/RCa06064:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/Release/RCa06064
--------------------------------------------------------------------------------
/PCMgrLoader/Release/RCa14620:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/Release/RCa14620
--------------------------------------------------------------------------------
/PCMgrLoader/mcrt.c:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "mcrt.h"
3 |
4 | wchar_t* __cdecl m_wcscpy(wchar_t* const destination, wchar_t const* source)
5 | {
6 | wchar_t* destination_it = destination;
7 | while ((*destination_it++ = *source++) != '\0') {}
8 |
9 | return destination;
10 | }
11 | wchar_t * __cdecl m_wcslwr(wchar_t * wsrc)
12 | {
13 | wchar_t * p;
14 | /* validation section */
15 | if (wsrc != NULL) {
16 |
17 | for (p = wsrc; *p; ++p)
18 | {
19 | if (L'A' <= *p && *p <= L'Z')
20 | *p += (wchar_t)L'a' - (wchar_t)L'A';
21 | }
22 | }
23 | return(wsrc);
24 | }
25 | int __cdecl m_wcscmp(wchar_t const* a, wchar_t const* b)
26 | {
27 | int result = 0;
28 | while ((result = (int)(*a - *b)) == 0 && *b)
29 | ++a, ++b;
30 |
31 | if (result < 0)
32 | return -1;
33 |
34 | else if (result > 0)
35 | return 1;
36 |
37 | return 0;
38 | }
39 |
40 | char * __cdecl m_strcat(char * dst, const char * src)
41 | {
42 | char * cp = dst;
43 |
44 | while (*cp)
45 | cp++; /* find end of dst */
46 |
47 | while ((*cp++ = *src++) != '\0'); /* Copy src to end of dst */
48 |
49 | return(dst); /* return dst */
50 |
51 | }
52 | char * __cdecl m_strcpy(char * dst, const char * src)
53 | {
54 | char * cp = dst;
55 |
56 | while ((*cp++ = *src++) != '\0')
57 | ; /* Copy src over dst */
58 |
59 | return(dst);
60 | }
61 | int __cdecl m_strcmp(const char * src, const char * dst)
62 | {
63 | int ret = 0;
64 | while ((ret = *(unsigned char *)src - *(unsigned char *)dst) == 0 && *dst)
65 | ++src, ++dst;
66 | if (ret < 0)
67 | ret = -1;
68 | else if (ret > 0)
69 | ret = 1;
70 | return(ret);
71 | }
72 | char * __cdecl m_strchr(const char * string, int ch)
73 | {
74 | while (*string && *string != (char)ch)
75 | string++;
76 |
77 | if (*string == (char)ch)
78 | return((char *)string);
79 | return(NULL);
80 | }
81 | char * m_memset(char *dst, char value, unsigned int count)
82 | {
83 | char *start = dst;
84 | while (count--)
85 | *dst++ = value;
86 | return(start);
87 | }
88 | void * m_memcpy(void * dst, void * src, size_t count)
89 | {
90 | void * ret = dst;
91 | while (count--)
92 | *((LPBYTE)dst)++ = *((LPBYTE)src)++;
93 |
94 | return(ret);
95 | }
96 | void m_copyto_wcsarray(wchar_t *dst, unsigned short *source, int maxlen)
97 | {
98 | for (int i = 0; i < maxlen; i++)
99 | dst[i] = (wchar_t)source[i];
100 | }
101 | void m_copyto_strarray(char *dst, unsigned int *source, int maxlen)
102 | {
103 | for (int i = 0; i < maxlen; i++)
104 | dst[i] = (char)source[i];
105 | }
--------------------------------------------------------------------------------
/PCMgrLoader/mcrt.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | wchar_t* __cdecl m_wcscpy(wchar_t* const destination, wchar_t const* source);
5 | wchar_t * __cdecl m_wcslwr(wchar_t * wsrc);
6 | int __cdecl m_wcscmp(wchar_t const* a, wchar_t const* b);
7 | char * __cdecl m_strcat(char * dst, const char * src);
8 | char * __cdecl m_strcpy(char * dst, const char * src);
9 | int __cdecl m_strcmp(const char * src, const char * dst);
10 | char * __cdecl m_strchr(const char * string, int ch);
11 | char * m_memset(char *dst, char value, unsigned int count);
12 | void * m_memcpy(void * dst, void * src, size_t count);
13 |
14 | void m_copyto_wcsarray(wchar_t *dst, unsigned short *source, int maxlen);
15 | void m_copyto_strarray(char *dst, unsigned int *source, int maxlen);
--------------------------------------------------------------------------------
/PCMgrLoader/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/resource.h
--------------------------------------------------------------------------------
/PCMgrLoader/shellcode_x64.asm:
--------------------------------------------------------------------------------
1 | .data
2 | .code
3 |
4 | MGetCurrentPeb PROC
5 | mov rbx, 0
6 | mov rbx, GS:[60h]
7 | mov rax, rbx
8 | ret
9 | MGetCurrentPeb ENDP
10 |
11 | END
--------------------------------------------------------------------------------
/PCMgrLoader/shellcode_x86.asm:
--------------------------------------------------------------------------------
1 | .model flat
2 | .data
3 | assume fs:nothing
4 | .code
5 |
6 | _MGetCurrentPeb PROC
7 | mov ebx, 0
8 | mov ebx, FS:[30h]
9 | mov eax, ebx
10 | ret
11 | _MGetCurrentPeb ENDP
12 |
13 | END
--------------------------------------------------------------------------------
/PCMgrLoader/small.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/small.ico
--------------------------------------------------------------------------------
/PCMgrLoader/stdafx.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include
--------------------------------------------------------------------------------
/PCMgrLoader/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrLoader/targetver.h
--------------------------------------------------------------------------------
/PCMgrNetMon/FormMain.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgrNetMon
2 | {
3 | partial class FormMain
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | private void InitializeComponent()
24 | {
25 | this.label1 = new System.Windows.Forms.Label();
26 | this.button1 = new System.Windows.Forms.Button();
27 | this.SuspendLayout();
28 | //
29 | // label1
30 | //
31 | this.label1.AutoSize = true;
32 | this.label1.Location = new System.Drawing.Point(390, 303);
33 | this.label1.Name = "label1";
34 | this.label1.Size = new System.Drawing.Size(89, 12);
35 | this.label1.TabIndex = 0;
36 | this.label1.Text = "正在制作......";
37 | //
38 | // button1
39 | //
40 | this.button1.Location = new System.Drawing.Point(858, 31);
41 | this.button1.Name = "button1";
42 | this.button1.Size = new System.Drawing.Size(75, 23);
43 | this.button1.TabIndex = 1;
44 | this.button1.Text = "button1";
45 | this.button1.UseVisualStyleBackColor = true;
46 | this.button1.Click += new System.EventHandler(this.button1_Click);
47 | //
48 | // FormMain
49 | //
50 | this.ClientSize = new System.Drawing.Size(940, 608);
51 | this.Controls.Add(this.button1);
52 | this.Controls.Add(this.label1);
53 | this.Name = "FormMain";
54 | this.ResumeLayout(false);
55 | this.PerformLayout();
56 |
57 | }
58 |
59 | private System.Windows.Forms.Label label1;
60 | private System.Windows.Forms.Button button1;
61 | }
62 | }
63 |
64 |
--------------------------------------------------------------------------------
/PCMgrNetMon/FormMain.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace PCMgrNetMon
10 | {
11 | public partial class FormMain : Form
12 | {
13 | public FormMain()
14 | {
15 | InitializeComponent();
16 | PCMgrUWP.Caller.ShowAboutDlg();
17 | }
18 |
19 | private void button1_Click(object sender, EventArgs e)
20 | {
21 | PCMgrUWP.Caller.ShowAboutDlg();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/PCMgrNetMon/PCMgrNetMon.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
7 | true
8 |
9 |
10 | true
11 |
12 |
13 | true
14 |
15 |
16 | true
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/PCMgrNetMon/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace PCMgrNetMon
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// 应用程序的主入口点。
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 |
18 | Application.Run(new FormMain());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/PCMgrNetMon/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("PCMgr 网络监控")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("DreamFish")]
12 | [assembly: AssemblyProduct("PC Manager")]
13 | [assembly: AssemblyCopyright("Copyright © 2018 DreamFish")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("b467cca3-84d3-4989-a41c-c5075c7b4e06")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.2.0.0")]
36 | [assembly: AssemblyFileVersion("1.2.0.0")]
37 |
--------------------------------------------------------------------------------
/PCMgrNetMon/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgrNetMon.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PCMgrNetMon.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/PCMgrNetMon/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgrNetMon.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/PCMgrNetMon/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/PCMgrNetMon/icoPcmgrNetMon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrNetMon/icoPcmgrNetMon.ico
--------------------------------------------------------------------------------
/PCMgrRegedit/PCMgrRegedit.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
7 | true
8 |
9 |
10 | true
11 |
12 |
13 | true
14 |
15 |
16 | true
17 |
18 |
19 | true
20 |
21 |
--------------------------------------------------------------------------------
/PCMgrRegedit/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Windows.Forms;
4 |
5 | namespace PCMgrRegedit
6 | {
7 | static class Program
8 | {
9 | ///
10 | /// 应用程序的主入口点。
11 | ///
12 | [STAThread]
13 | static void Main()
14 | {
15 | Application.EnableVisualStyles();
16 | Application.SetCompatibleTextRenderingDefault(false);
17 | Application.Run(new FormMain());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/PCMgrRegedit/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("PCMgr 注册表编辑器")]
9 | [assembly: AssemblyDescription("PCMgr 注册表编辑器")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("DreamFish")]
12 | [assembly: AssemblyProduct("PC Manager")]
13 | [assembly: AssemblyCopyright("Copyright © 2018 DreamFish")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("45d46754-8dc2-43ff-9251-8d10977f2b95")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.2.0.0")]
36 | [assembly: AssemblyFileVersion("1.2.0.0")]
37 |
--------------------------------------------------------------------------------
/PCMgrRegedit/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgrRegedit.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PCMgrRegedit.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/PCMgrRegedit/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgrRegedit.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/PCMgrRegedit/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/PCMgrRegedit/icoPcmgrRegedit.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrRegedit/icoPcmgrRegedit.ico
--------------------------------------------------------------------------------
/PCMgrUpdate/FormA.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgrUpdate
2 | {
3 | partial class FormA
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormA));
32 | this.textBox1 = new System.Windows.Forms.TextBox();
33 | this.SuspendLayout();
34 | //
35 | // textBox1
36 | //
37 | this.textBox1.Location = new System.Drawing.Point(25, 25);
38 | this.textBox1.Name = "textBox1";
39 | this.textBox1.Size = new System.Drawing.Size(758, 35);
40 | this.textBox1.TabIndex = 0;
41 | //
42 | // FormA
43 | //
44 | this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
45 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
46 | this.ClientSize = new System.Drawing.Size(811, 89);
47 | this.Controls.Add(this.textBox1);
48 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
49 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
50 | this.MaximizeBox = false;
51 | this.Name = "FormA";
52 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
53 | this.Text = "MD5";
54 | this.ResumeLayout(false);
55 | this.PerformLayout();
56 |
57 | }
58 |
59 | #endregion
60 |
61 | private System.Windows.Forms.TextBox textBox1;
62 | }
63 | }
--------------------------------------------------------------------------------
/PCMgrUpdate/FormA.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows.Forms;
9 |
10 | namespace PCMgrUpdate
11 | {
12 | public partial class FormA : Form
13 | {
14 | public FormA()
15 | {
16 | InitializeComponent();
17 | }
18 | public FormA(string s, string n)
19 | {
20 | InitializeComponent();
21 | textBox1.Text = s;
22 | Text = "MD5 for file : " + n;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/PCMgrUpdate/FormErrLog.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PCMgrUpdate
5 | {
6 | public partial class FormErrLog : Form
7 | {
8 | public FormErrLog()
9 | {
10 | InitializeComponent();
11 | }
12 | public FormErrLog(string s)
13 | {
14 | InitializeComponent();
15 | textBox1.Text = s;
16 | }
17 | private void FormErrLog_Load(object sender, EventArgs e)
18 | {
19 |
20 | }
21 |
22 | private void button1_Click(object sender, EventArgs e)
23 | {
24 | Close();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/PCMgrUpdate/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace PCMgrUpdate
5 | {
6 | class NativeMethods
7 | {
8 | ///
9 | /// Native dll名称
10 | ///
11 | #if _X64_
12 | public const string COREDLLNAME = "PCMgr64.dll";
13 | #else
14 | public const string COREDLLNAME = "PCMgr32.dll";
15 | #endif
16 |
17 | [DllImport("kernel32", CallingConvention = CallingConvention.Winapi)]
18 | public static extern bool FreeLibrary(IntPtr hModule);
19 |
20 | [DllImport(COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
21 | public static extern IntPtr MAppGetCoreModulHandle();
22 | [DllImport(COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
23 | public static extern IntPtr MAppGetVersion();
24 | [DllImport(COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
25 | public static extern void MAppTest(int id, IntPtr p);
26 | [DllImport(COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
27 | public static extern IntPtr MAppGetBulidDate();
28 |
29 | [DllImport(COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
30 | public static extern bool MIsRunasAdmin();
31 |
32 | [DllImport(COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
33 | public static extern bool MAppRebotAdmin3([MarshalAsAttribute(UnmanagedType.LPWStr)]string args, ref bool userCanceled);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/PCMgrUpdate/PCMgrUpdate.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/PCMgrUpdate/PCMgrUpdate64.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/PCMgrUpdate/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace PCMgrUpdate
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// 应用程序的主入口点。
13 | ///
14 | [STAThread]
15 | static void Main(string[] agrs)
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new FormMain(agrs));
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/PCMgrUpdate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("任务管理器 在线更新和修复程序")]
9 | [assembly: AssemblyDescription("PCMgrUpdate")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Dreamfish")]
12 | [assembly: AssemblyProduct("PCManager")]
13 | [assembly: AssemblyCopyright("Copyright © 2019 Dreamfish")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("2480c1d9-ffaf-41c4-a660-0bb8c42a2739")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.3.2.6")]
36 | [assembly: AssemblyFileVersion("1.3.2.6")]
37 |
--------------------------------------------------------------------------------
/PCMgrUpdate/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgrUpdate.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PCMgrUpdate.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 重写当前线程的 CurrentUICulture 属性
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/PCMgrUpdate/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgrUpdate.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/PCMgrUpdate/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/PCMgrUpdate/icoPcmgrUpr.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/PCMgrUpdate/icoPcmgrUpr.ico
--------------------------------------------------------------------------------
/Release/PCMgr32.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release/PCMgr32.lib
--------------------------------------------------------------------------------
/Release/PCMgrCmd32.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release/PCMgrCmd32.lib
--------------------------------------------------------------------------------
/Release/PCMgrKernel32.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release/PCMgrKernel32.lib
--------------------------------------------------------------------------------
/Release/PCMgrKernel32.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release/PCMgrKernel32.sys
--------------------------------------------------------------------------------
/Release/Release_x86_1.3.2.6.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release/Release_x86_1.3.2.6.zip
--------------------------------------------------------------------------------
/Release_64/PCMgr64.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release_64/PCMgr64.lib
--------------------------------------------------------------------------------
/Release_64/PCMgrCmd64.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release_64/PCMgrCmd64.lib
--------------------------------------------------------------------------------
/Release_64/PCMgrKernel64.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release_64/PCMgrKernel64.lib
--------------------------------------------------------------------------------
/Release_64/Release_x64_1.3.2.6.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/Release_64/Release_x64_1.3.2.6.zip
--------------------------------------------------------------------------------
/TaskMgr/Aero/TaskDialog/CustomButton.cs:
--------------------------------------------------------------------------------
1 | /*****************************************************
2 | * Vista Controls for .NET 2.0
3 | *
4 | * http://www.codeplex.com/vistacontrols
5 | *
6 | * @author: Lorenz Cuno Klopfenstein
7 | * Licensed under Microsoft Community License (Ms-CL)
8 | *
9 | *****************************************************/
10 |
11 | using System.Runtime.InteropServices;
12 |
13 | namespace PCMgr.Aero.TaskDialog
14 | {
15 |
16 | /// Represents a custom button shown on a Task Dialog.
17 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
18 | public struct CustomButton {
19 | private int _id;
20 |
21 | [MarshalAs(UnmanagedType.LPWStr)]
22 | private string _txt;
23 |
24 | /// Instantiates a new custom button with an ID and a text.
25 | /// Unique ID that will be returned by the Task Dialog if the button is clicked.
26 | /// Use values greater than 8 to prevent conflicts with common buttons.
27 | /// Text label shown on the button. If you enable Command Links, a newline here
28 | /// separates the upper from the lower string on the button.
29 | public CustomButton(int id, string text) {
30 | _id = id;
31 | _txt = text;
32 | }
33 |
34 | /// Instantiates a new custom button with an ID and a text.
35 | /// Common ID that will be returned by the Task Dialog if the button is clicked.
36 | /// Text label shown on the button. If you enable Command Links, a newline here
37 | /// separates the upper from the lower string on the button.
38 | public CustomButton(Result commonResult, string text) {
39 | _id = (int)commonResult;
40 | _txt = text;
41 | }
42 |
43 | /// Unique ID that will be returned by the Task Dialog if the button is clicked.
44 | public int Id {
45 | get { return _id; }
46 | set { _id = value; }
47 | }
48 |
49 | /// Text label shown on the button. If you enable Command Links, a newline here
50 | /// separates the upper from the lower string on the button.
51 | public string Text {
52 | get { return _txt; }
53 | set { _txt = value; }
54 | }
55 |
56 | public static int SizeOf() {
57 | return Marshal.SizeOf(typeof(CustomButton));
58 | }
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/TaskMgr/Aero/TaskDialog/EventArgs.cs:
--------------------------------------------------------------------------------
1 | /*****************************************************
2 | * Vista Controls for .NET 2.0
3 | *
4 | * http://www.codeplex.com/vistacontrols
5 | *
6 | * @author: Lorenz Cuno Klopfenstein
7 | * Licensed under Microsoft Community License (Ms-CL)
8 | *
9 | *****************************************************/
10 |
11 | using System;
12 |
13 | namespace PCMgr.Aero.TaskDialog
14 | {
15 |
16 | public class ClickEventArgs : EventArgs {
17 | public ClickEventArgs(int buttonID) {
18 | ButtonID = buttonID;
19 | PreventClosing = false;
20 | }
21 |
22 | public int ButtonID { get; set; }
23 | public bool PreventClosing { get; set; }
24 | }
25 |
26 | public class CheckEventArgs : EventArgs {
27 | public CheckEventArgs(bool state) {
28 | IsChecked = state;
29 | }
30 |
31 | public bool IsChecked { get; set; }
32 | }
33 |
34 | public class ExpandEventArgs : EventArgs {
35 | public ExpandEventArgs(bool state) {
36 | IsExpanded = state;
37 | }
38 |
39 | public bool IsExpanded { get; set; }
40 | }
41 |
42 | public class TimerEventArgs : EventArgs {
43 | public TimerEventArgs(long ticks) {
44 | Ticks = ticks;
45 | ResetCount = false;
46 | }
47 |
48 | public long Ticks { get; set; }
49 | public bool ResetCount { get; set; }
50 | }
51 |
52 | public class HyperlinkEventArgs : EventArgs {
53 | public HyperlinkEventArgs(string url) {
54 | Url = url;
55 | }
56 |
57 | public string Url { get; set; }
58 | }
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/TaskMgr/Aero/TaskDialog/Results.cs:
--------------------------------------------------------------------------------
1 | /*****************************************************
2 | * Vista Controls for .NET 2.0
3 | *
4 | * http://www.codeplex.com/vistacontrols
5 | *
6 | * @author: Lorenz Cuno Klopfenstein
7 | * Licensed under Microsoft Community License (Ms-CL)
8 | *
9 | *****************************************************/
10 |
11 |
12 | namespace PCMgr.Aero.TaskDialog
13 | {
14 |
15 | /// Class that aggregates the results of an "indirect" Task Dialog.
16 | public class Results {
17 | public Results(int buttonId, int radioId, bool selVerification) {
18 | ButtonID = buttonId;
19 | RadioID = radioId;
20 | IsVerificationChecked = selVerification;
21 | }
22 |
23 | public int ButtonID { get; set; }
24 | public int RadioID { get; set; }
25 | public bool IsVerificationChecked { get; set; }
26 |
27 | public Result CommonButton {
28 | get {
29 | if (ButtonID > 0 && ButtonID <= 8)
30 | return (Result)ButtonID;
31 | else
32 | return Result.None;
33 | }
34 | }
35 | }
36 |
37 | /// Results returned by Task Dialogs when closed by the user.
38 | public enum Result : int {
39 | None = 0,
40 | OK = 1,
41 | Cancel = 2,
42 | Abort = 3,
43 | Retry = 4,
44 | Ignore = 5,
45 | Yes = 6,
46 | No = 7,
47 | Close = 8
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/TaskMgr/Aero/TaskDialog/TaskDialogButton.cs:
--------------------------------------------------------------------------------
1 | /*****************************************************
2 | * Vista Controls for .NET 2.0
3 | *
4 | * http://www.codeplex.com/vistacontrols
5 | *
6 | * @author: Lorenz Cuno Klopfenstein
7 | * Licensed under Microsoft Community License (Ms-CL)
8 | *
9 | *****************************************************/
10 |
11 | using System;
12 |
13 | namespace PCMgr.Aero.TaskDialog
14 | {
15 | /// Common Task Dialog buttons. OK is the default button.
16 | [Flags]
17 | public enum TaskDialogButton : int {
18 | OK = 0x0001,
19 | Cancel = 0x0008,
20 | Yes = 0x0002,
21 | No = 0x0004,
22 | Retry = 0x0010,
23 | Close = 0x0020
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/TaskMgr/Aero/TaskDialog/TaskDialogIcon.cs:
--------------------------------------------------------------------------------
1 | /*****************************************************
2 | * Vista Controls for .NET 2.0
3 | *
4 | * http://www.codeplex.com/vistacontrols
5 | *
6 | * @author: Lorenz Cuno Klopfenstein
7 | * Licensed under Microsoft Community License (Ms-CL)
8 | *
9 | *****************************************************/
10 |
11 | using System;
12 |
13 | namespace PCMgr.Aero.TaskDialog
14 | {
15 |
16 | /// Common Task Dialog icons. Determine the look of the main instruction.
17 | public enum TaskDialogIcon : long {
18 | Information = UInt16.MaxValue - 2,
19 | Warning = UInt16.MaxValue,
20 | Stop = UInt16.MaxValue - 1,
21 | None = 0,
22 | SecurityWarning = UInt16.MaxValue - 5,
23 | SecurityError = UInt16.MaxValue - 6,
24 | SecuritySuccess = UInt16.MaxValue - 7,
25 | SecurityShield = UInt16.MaxValue - 3,
26 | SecurityShieldBlue = UInt16.MaxValue - 4,
27 | SecurityShieldGray = UInt16.MaxValue - 8
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/TaskMgr/Ctls/IPerformancePage.cs:
--------------------------------------------------------------------------------
1 | using System.Drawing;
2 |
3 | namespace PCMgr.Ctls
4 | {
5 | public delegate void OpeningPageMenuEventHandler(IPerformancePage sender, System.Windows.Forms.ToolStripMenuItem menuItemView);
6 | public delegate void SwithGraphicViewEventHandler(IPerformancePage sender);
7 |
8 | public interface IPerformancePage
9 | {
10 | bool PageIsActive { get; set; }
11 | bool PageIsGraphicMode { get; set; }
12 |
13 | void PageInit();
14 | void PageDelete();
15 | void PageShow();
16 | void PageHide();
17 | void PageUpdate();
18 | bool PageUpdateSimple(out string customString, out int outdata1, out int outdata2);
19 | void PageSetGridUnit(string s);
20 | void PageFroceSetData(int s);
21 | void PageShowRightMenu();
22 |
23 | event SwithGraphicViewEventHandler SwithGraphicView;
24 | event OpeningPageMenuEventHandler OpeningPageMenu;
25 | event System.EventHandler AppKeyDown;
26 |
27 | System.Windows.Forms.Panel GridPanel { get; }
28 | Size Size { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/TaskMgr/Ctls/PerformanceTitle.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Drawing;
4 | using System.Windows.Forms;
5 |
6 | namespace PCMgr.Ctls
7 | {
8 | public class PerformanceTitle : Control
9 | {
10 | public PerformanceTitle()
11 | {
12 | SetStyle(ControlStyles.Selectable, false);
13 | SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
14 | SetStyle(ControlStyles.ResizeRedraw, true);
15 | LoadAllFonts();
16 | stringFormatRight = new StringFormat();
17 | stringFormatRight.Alignment = StringAlignment.Far;
18 | stringFormatRight.LineAlignment = StringAlignment.Far;
19 | stringFormatRight.Trimming = StringTrimming.EllipsisCharacter;
20 | stringFormatRight.FormatFlags = StringFormatFlags.LineLimit;
21 | }
22 |
23 | private void LoadAllFonts()
24 | {
25 | TitleFont = new Font(Font.FontFamily, 18);
26 | SmallTitleFont = new Font(Font.FontFamily, 12);
27 | }
28 |
29 | public Font TitleFont { get; set; }
30 | public Font SmallTitleFont { get; set; }
31 | [Localizable(true)]
32 | public string Title { get; set; }
33 | [Localizable(true)]
34 | public string SmallTitle { get; set; }
35 |
36 | private StringFormat stringFormatRight = null;
37 |
38 | protected override void OnFontChanged(EventArgs e)
39 | {
40 | base.OnFontChanged(e);
41 | LoadAllFonts();
42 | }
43 | protected override void OnPaint(PaintEventArgs e)
44 | {
45 | base.OnPaint(e);
46 | Graphics g = e.Graphics;
47 | using (SolidBrush s = new SolidBrush(ForeColor))
48 | {
49 | if (Title != "") g.DrawString(Title, TitleFont, s, 0, 0);
50 | int w = (int)g.MeasureString(Title, TitleFont).Width;
51 | if (SmallTitle != "") g.DrawString(SmallTitle, SmallTitleFont, s, new Rectangle(w + 2, 0, Width - w - 2, Height), stringFormatRight);
52 | }
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/TaskMgr/Ctls/TaskMgrListApis.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace PCMgr.Ctls
5 | {
6 | internal static class TaskMgrListApis
7 | {
8 | public static int M_DRAW_HEADER_HOT = 1;
9 | public static int M_DRAW_HEADER_PRESSED = 2;
10 | public static int M_DRAW_HEADER_SORTDOWN = 3;
11 | public static int M_DRAW_HEADER_SORTUP = 4;
12 |
13 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
14 | public static extern void MHeaderDrawItem(IntPtr hTheme, IntPtr hdc, int x, int y, int w, int h, int state);
15 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
16 | public static extern IntPtr MOpenThemeData(IntPtr hWnd, [MarshalAs(UnmanagedType.LPWStr)] string className);
17 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
18 | public static extern void MCloseThemeData(IntPtr hTheme);
19 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
20 | public static extern void MSetAsExplorerTheme(IntPtr hWnd);
21 |
22 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
23 | public static extern void MDrawIcon(IntPtr hIcon, IntPtr hdc, int x, int y);
24 |
25 | public static int M_DRAW_LISTVIEW_HOT = 1;
26 | public static int M_DRAW_LISTVIEW_SELECT_NOFOCUS = 2;
27 | public static int M_DRAW_LISTVIEW_HOT_SELECT = 3;
28 | public static int M_DRAW_LISTVIEW_SELECT = 4;
29 |
30 | public static int M_DRAW_TREEVIEW_GY_OPEN = 5;
31 | public static int M_DRAW_TREEVIEW_GY_CLOSED = 6;
32 | public static int M_DRAW_TREEVIEW_GY_OPEN_HOT = 7;
33 | public static int M_DRAW_TREEVIEW_GY_CLOSED_HOT = 8;
34 |
35 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
36 | public static extern void MListDrawItem(IntPtr hTheme, IntPtr hdc, int x, int y, int w, int h, int state);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/TaskMgr/FormSL.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgr
2 | {
3 | partial class FormSL
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.timer1 = new System.Windows.Forms.Timer(this.components);
33 | this.button1 = new System.Windows.Forms.Button();
34 | this.SuspendLayout();
35 | //
36 | // timer1
37 | //
38 | this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
39 | //
40 | // button1
41 | //
42 | this.button1.Location = new System.Drawing.Point(1, 1);
43 | this.button1.Name = "button1";
44 | this.button1.Size = new System.Drawing.Size(117, 23);
45 | this.button1.TabIndex = 1;
46 | this.button1.Text = "Loading...";
47 | this.button1.UseVisualStyleBackColor = true;
48 | this.button1.Click += new System.EventHandler(this.button1_Click);
49 | //
50 | // FormSL
51 | //
52 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
53 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
54 | this.ClientSize = new System.Drawing.Size(120, 27);
55 | this.Controls.Add(this.button1);
56 | this.MaximizeBox = false;
57 | this.MinimizeBox = false;
58 | this.Name = "FormSL";
59 | this.ShowIcon = false;
60 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
61 | this.Text = "FormSL";
62 | this.Shown += new System.EventHandler(this.FormSL_Shown);
63 | this.ResumeLayout(false);
64 |
65 | }
66 |
67 | #endregion
68 | private System.Windows.Forms.Timer timer1;
69 | private System.Windows.Forms.Button button1;
70 | }
71 | }
--------------------------------------------------------------------------------
/TaskMgr/FormSL.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Text;
6 |
7 | using System.Windows.Forms;
8 |
9 | namespace PCMgr
10 | {
11 | public partial class FormSL : Form
12 | {
13 | public FormSL(string[] agrs)
14 | {
15 | this.agrs = agrs;
16 | InitializeComponent();
17 | }
18 |
19 | protected override void OnHandleCreated(EventArgs e)
20 | {
21 | base.OnHandleCreated(e);
22 |
23 | }
24 |
25 | private void FormSL_Shown(object sender, EventArgs e)
26 | {
27 | NativeMethods.MAppWorkCall3(200, Handle);
28 | timer1.Start();
29 | }
30 |
31 | private string[] agrs;
32 |
33 | private void timer1_Tick(object sender, EventArgs e)
34 | {
35 | timer1.Stop();
36 |
37 | new FormMain(agrs).ShowDialog(this);
38 |
39 | Close();
40 | }
41 |
42 | private void button1_Click(object sender, EventArgs e)
43 | {
44 | Close();
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/TaskMgr/Helpers/ConstVals.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace PCMgr.Helpers
8 | {
9 | class ConstVals
10 | {
11 | public const string MICROSOFT = "Microsoft Corporation";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/TaskMgr/Helpers/SysVer.cs:
--------------------------------------------------------------------------------
1 | using System.Runtime.InteropServices;
2 |
3 | namespace PCMgr.Helpers
4 | {
5 | static class SysVer
6 | {
7 | private static bool _isWin8Upper = false;
8 |
9 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
10 | private static extern bool MGetWindowsWin8Upper();
11 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl)]
12 | private static extern bool MGetWindowsBulidVersion();
13 |
14 | public static bool IsWin8Upper()
15 | {
16 | return _isWin8Upper;
17 | }
18 | public static void Get()
19 | {
20 | MGetWindowsBulidVersion();
21 | _isWin8Upper = MGetWindowsWin8Upper();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/TaskMgr/Main/MainPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows.Forms;
8 |
9 | namespace PCMgr.Main
10 | {
11 | class MainPage
12 | {
13 | public MainPage(FormMain formMain, TabPage page)
14 | {
15 | Page = page;
16 | FormMain = formMain;
17 | NativeBridge = formMain.MainNativeBridge;
18 | Handle = formMain.Handle;
19 | }
20 |
21 | protected MainNativeBridge NativeBridge { get; private set; }
22 | protected TabPage Page { get; private set; }
23 | protected FormMain FormMain { get; private set; }
24 |
25 | public Size Size { get => FormMain.Size; set { FormMain.Size = value; } }
26 | public Font Font { get => FormMain.Font; }
27 | public Point MousePosition { get => Control.MousePosition; }
28 | public IntPtr Handle { get; } = IntPtr.Zero;
29 | public bool Inited { get; set; } = false;
30 | public virtual int GetUpdateDatum()
31 | {
32 | return 1;
33 | }
34 | public void UnLoad()
35 | {
36 | OnUnLoad();
37 | }
38 | public void Load()
39 | {
40 | OnLoad();
41 | OnLoadControlEvents();
42 | }
43 |
44 | protected virtual void OnUnLoad() { }
45 | protected virtual void OnLoad() { }
46 | protected virtual void OnLoadControlEvents() { }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/TaskMgr/PCMgr32.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | publish\
5 |
6 |
7 |
8 |
9 |
10 | zh-CN
11 | false
12 |
13 |
14 | true
15 |
16 |
17 | false
18 | 192.168.116.130
19 | Project
20 |
21 |
22 | \
23 |
24 |
25 | true
26 | kda
27 |
28 |
29 | true
30 |
31 |
--------------------------------------------------------------------------------
/TaskMgr/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // 有关程序集的一般信息由以下
5 | // 控制。更改这些特性值可修改
6 | // 与程序集关联的信息。
7 | [assembly: AssemblyTitle("任务管理器")]
8 | [assembly: AssemblyDescription("PCManager")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("DreamFish")]
11 | [assembly: AssemblyProduct("PCManager")]
12 | [assembly: AssemblyCopyright("Copyright © 2017 By MagicalSoft™ DreamFish")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | //将 ComVisible 设置为 false 将使此程序集中的类型
17 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
18 | //请将此类型的 ComVisible 特性设置为 true。
19 | [assembly: ComVisible(true)]
20 |
21 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
22 | [assembly: Guid("59fef6f8-2687-4046-8934-90a7e68b35b7")]
23 |
24 | // 程序集的版本信息由下列四个值组成:
25 | //
26 | // 主版本
27 | // 次版本
28 | // 生成号
29 | // 修订号
30 | //
31 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
32 | // 方法是按如下所示使用“*”: :
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.3.2.6")]
35 | [assembly: AssemblyFileVersion("1.3.2.6")]
36 |
--------------------------------------------------------------------------------
/TaskMgr/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PCMgr.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TaskMgr/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.Button.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.Button.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.CheckBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.CheckBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ComboBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ComboBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ContextMenu.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ContextMenu.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.DateTimePicker.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.DateTimePicker.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.DomainUpDown.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.DomainUpDown.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.Form.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.Form.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.GroupBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.GroupBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.HScrollBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.HScrollBar.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.Label.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.Label.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.LinkLabel.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.LinkLabel.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ListBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ListBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ListView.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ListView.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.Panel.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.Panel.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.PictureBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.PictureBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ProgressBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ProgressBar.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.RadioButton.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.RadioButton.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.RichTextBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.RichTextBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.StatusStrip.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.StatusStrip.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.TabControl.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.TabControl.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.TabPage.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.TabPage.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.TextBox.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.TextBox.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ToolBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ToolBar.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.ToolTip.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.ToolTip.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.TrackBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.TrackBar.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.TreeView.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.TreeView.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/System.Windows.Forms.VScrollBar.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/System.Windows.Forms.VScrollBar.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/WizardHat.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/WizardHat.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/application_view_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/application_view_list.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/ico131.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/ico131.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/ico148.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/ico148.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/ico30655.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/ico30655.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/ico30656.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/ico30656.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/ico30665.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/ico30665.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoFiles.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoFiles.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoResourceMon.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoResourceMon.bmp
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoService.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoService.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoServiceHost.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoServiceHost.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoWifiLevel0.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoWifiLevel0.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoWifiLevel1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoWifiLevel1.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoWifiLevel2.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoWifiLevel2.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoWifiLevel3.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoWifiLevel3.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoWifiLevel4.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoWifiLevel4.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/icoWifiLevel5.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icoWifiLevel5.ico
--------------------------------------------------------------------------------
/TaskMgr/Resources/iconContextMenu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/iconContextMenu.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/icon_background_uwp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/icon_background_uwp.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/img_title_str.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/img_title_str.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/img_x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/img_x32.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/img_x32inx64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/img_x32inx64.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/img_x64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/img_x64.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/listHeaderArrowA.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/listHeaderArrowA.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/listHeaderArrowAscending.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/listHeaderArrowAscending.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/listHeaderArrowDisa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/listHeaderArrowDisa.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/listHeaderArrowDisascending.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/listHeaderArrowDisascending.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/pointCpu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/pointCpu.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/pointDisk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/pointDisk.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/pointGpu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/pointGpu.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/pointGray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/pointGray.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/pointNet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/pointNet.png
--------------------------------------------------------------------------------
/TaskMgr/Resources/pointRam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/Resources/pointRam.png
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormAbout.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgr.WorkWindow
2 | {
3 | partial class FormAbout
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAbout));
32 | this.webBrowser1 = new System.Windows.Forms.WebBrowser();
33 | this.SuspendLayout();
34 | //
35 | // webBrowser1
36 | //
37 | this.webBrowser1.AllowWebBrowserDrop = false;
38 | resources.ApplyResources(this.webBrowser1, "webBrowser1");
39 | this.webBrowser1.Name = "webBrowser1";
40 | this.webBrowser1.WebBrowserShortcutsEnabled = false;
41 | //
42 | // FormAbout
43 | //
44 | resources.ApplyResources(this, "$this");
45 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
46 | this.BackColor = System.Drawing.Color.White;
47 | this.Controls.Add(this.webBrowser1);
48 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
49 | this.MaximizeBox = false;
50 | this.MinimizeBox = false;
51 | this.Name = "FormAbout";
52 | this.Load += new System.EventHandler(this.FormAbout_Load);
53 | this.ResumeLayout(false);
54 |
55 | }
56 |
57 | #endregion
58 | private System.Windows.Forms.WebBrowser webBrowser1;
59 | }
60 | }
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormAbout.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PCMgr.WorkWindow
5 | {
6 | public partial class FormAbout : Form
7 | {
8 | public FormAbout()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | public void BtnClose()
14 | {
15 | Close();
16 | }
17 | public void BtnRunUpdate()
18 | {
19 | NativeMethods.MRunExe("PCMgrUpdate.exe","");
20 | }
21 |
22 | private void FormAbout_Load(object sender, EventArgs e)
23 | {
24 | if(!NativeMethods.MREG_IsCurrentIEVersionOK(11000, NativeMethods.MAppGetName()))
25 | NativeMethods.MREG_SetCurrentIEVersion(11000, NativeMethods.MAppGetName());
26 |
27 | webBrowser1.ObjectForScripting = this;
28 | webBrowser1.Navigate("about:blank");
29 | webBrowser1.Document.Write(Lanuages.LanuageMgr.IsChinese ? Properties.Resources.PageAbout : Properties.Resources.PageAboutEn);
30 | webBrowser1.Document.GetElementById("txt_title").SetAttribute("src", Properties.Resources.ImgAboutTitle);
31 | webBrowser1.Document.GetElementById("txt_show_ver").InnerText = NativeMethods.MAppGetVersion() + " / " + NativeMethods.MAppGetBulidDate();
32 | webBrowser1.Document.GetElementById("txt_current_ver").InnerText = NativeMethods.MAppGetVersion();
33 |
34 | if (NativeMethods.MIs64BitOS()) {
35 | #if _X64_
36 | webBrowser1.Document.GetElementById("img_platform").SetAttribute("src", Properties.Resources.ImgX64);
37 | #elif _X86_
38 | webBrowser1.Document.GetElementById("img_platform").SetAttribute("src", Properties.Resources.ImgX32OnX64);
39 | #endif
40 | }
41 | else webBrowser1.Document.GetElementById("img_platform").SetAttribute("src", Properties.Resources.ImgX32);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormAlwaysOnTop.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgr.WorkWindow
2 | {
3 | partial class FormAlwaysOnTop
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.label1 = new System.Windows.Forms.Label();
32 | this.button1 = new System.Windows.Forms.Button();
33 | this.SuspendLayout();
34 | //
35 | // label1
36 | //
37 | this.label1.AutoSize = true;
38 | this.label1.Location = new System.Drawing.Point(27, 33);
39 | this.label1.Name = "label1";
40 | this.label1.Size = new System.Drawing.Size(82, 24);
41 | this.label1.TabIndex = 0;
42 | this.label1.Text = "label1";
43 | //
44 | // button1
45 | //
46 | this.button1.Location = new System.Drawing.Point(812, 12);
47 | this.button1.Name = "button1";
48 | this.button1.Size = new System.Drawing.Size(156, 125);
49 | this.button1.TabIndex = 1;
50 | this.button1.Text = "Force show main";
51 | this.button1.UseVisualStyleBackColor = true;
52 | this.button1.Click += new System.EventHandler(this.button1_Click);
53 | //
54 | // FormAlwaysOnTop
55 | //
56 | this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
57 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
58 | this.ClientSize = new System.Drawing.Size(998, 149);
59 | this.Controls.Add(this.button1);
60 | this.Controls.Add(this.label1);
61 | this.Name = "FormAlwaysOnTop";
62 | this.Text = "FormAlwaysOnTop";
63 | this.TopMost = true;
64 | this.Load += new System.EventHandler(this.FormAlwaysOnTop_Load);
65 | this.ResumeLayout(false);
66 | this.PerformLayout();
67 |
68 | }
69 |
70 | #endregion
71 |
72 | private System.Windows.Forms.Label label1;
73 | private System.Windows.Forms.Button button1;
74 | }
75 | }
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormAlwaysOnTop.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 |
6 | using System.Text;
7 |
8 | using System.Windows.Forms;
9 |
10 | namespace PCMgr.WorkWindow
11 | {
12 | public partial class FormAlwaysOnTop : Form
13 | {
14 | public FormAlwaysOnTop()
15 | {
16 | InitializeComponent();
17 | }
18 | public void UpdateText(string s)
19 | {
20 | label1.Text = s;
21 | }
22 | private void FormAlwaysOnTop_Load(object sender, EventArgs e)
23 | {
24 | Location = new Point(15, 15);
25 | if(NativeMethods.MAppWorkCall3(223)==1) label1.Text = "AOP Timer started.";
26 | else label1.Text = "AOP Timer not start.";
27 | }
28 |
29 | private void button1_Click(object sender, EventArgs e)
30 | {
31 | NativeMethods.MAppWorkCall3(224);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormDelFileProgress.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgr.WorkWindow
2 | {
3 | partial class FormDelFileProgress
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormDelFileProgress));
32 | this.progressBar = new System.Windows.Forms.ProgressBar();
33 | this.label = new System.Windows.Forms.Label();
34 | this.SuspendLayout();
35 | //
36 | // progressBar
37 | //
38 | resources.ApplyResources(this.progressBar, "progressBar");
39 | this.progressBar.Name = "progressBar";
40 | //
41 | // label
42 | //
43 | resources.ApplyResources(this.label, "label");
44 | this.label.AutoEllipsis = true;
45 | this.label.Name = "label";
46 | //
47 | // FormDelFileProgress
48 | //
49 | resources.ApplyResources(this, "$this");
50 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
51 | this.ControlBox = false;
52 | this.Controls.Add(this.label);
53 | this.Controls.Add(this.progressBar);
54 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
55 | this.MaximizeBox = false;
56 | this.MinimizeBox = false;
57 | this.Name = "FormDelFileProgress";
58 | this.Load += new System.EventHandler(this.FormDelFileProgress_Load);
59 | this.ResumeLayout(false);
60 |
61 | }
62 |
63 | #endregion
64 |
65 | public System.Windows.Forms.ProgressBar progressBar;
66 | public System.Windows.Forms.Label label;
67 | }
68 | }
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormDelFileProgress.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PCMgr.WorkWindow
5 | {
6 | public partial class FormDelFileProgress : Form
7 | {
8 | public FormDelFileProgress()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | protected override CreateParams CreateParams
14 | {
15 | get
16 | {
17 | CreateParams myCp = base.CreateParams;
18 | myCp.ClassStyle = myCp.ClassStyle | 0x200;
19 | return myCp;
20 | }
21 | }
22 |
23 | private void FormDelFileProgress_Load(object sender, EventArgs e)
24 | {
25 |
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormDetalsistHeaders.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PCMgr.WorkWindow
5 | {
6 | public partial class FormDetalsistHeaders : Form
7 | {
8 | public FormDetalsistHeaders(FormMain m)
9 | {
10 | InitializeComponent();
11 | formMain = m;
12 | }
13 |
14 | private FormMain formMain = null;
15 | private void buttonCancel_Click(object sender, EventArgs e)
16 | {
17 | Close();
18 | }
19 |
20 | private void FormDetalsistHeaders_Load(object sender, EventArgs e)
21 | {
22 | FormSettings.LoadFontSettingForUI(this);
23 | NativeMethods.MAppWorkCall3(182, listItems.Handle, IntPtr.Zero);
24 | foreach (string s in formMain.MainPageProcessDetails.allCols)
25 | {
26 | ListViewItem item = new ListViewItem();
27 | item.Name = s;
28 | item.Text = Lanuages.LanuageMgr.GetStr(s);
29 | if (formMain.MainPageProcessDetails.ProcessListDetailsGetListIndex(s) != -1)
30 | {
31 | item.Tag = "OldShow";
32 | item.Checked = true;
33 | }
34 | else item.Tag = "NewShow";
35 | listItems.Items.Add(item);
36 | }
37 | }
38 |
39 | private void buttonOk_Click(object sender, EventArgs e)
40 | {
41 | int checkedCount = 0;
42 | foreach (ListViewItem item in listItems.Items)
43 | if (item.Checked)
44 | checkedCount++;
45 | if (checkedCount > 16)
46 | {
47 | MessageBox.Show(Lanuages.LanuageMgr.GetStr("MaxShow16Item"));
48 | return;
49 | }
50 |
51 | foreach (ListViewItem item in listItems.Items)
52 | {
53 | if (item.Tag.ToString() == "OldShow" && item.Checked == false)
54 | formMain.MainPageProcessDetails.ProcessListDetailsRemoveHeader(item.Name);
55 | if (item.Tag.ToString() == "NewShow" && item.Checked)
56 | formMain.MainPageProcessDetails.ProcessListDetailsAddHeader(item.Name);
57 | }
58 | formMain.MainPageProcessDetails.ProcessListDetailsGetColumnsIndex();
59 | formMain.MainPageProcessDetails.nextUpdateStaticVals = true;
60 | Close();
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormFillWithData.cs:
--------------------------------------------------------------------------------
1 | using PCMgr.Lanuages;
2 | using System;
3 | using System.Runtime.InteropServices;
4 | using System.Windows.Forms;
5 |
6 | namespace PCMgr.WorkWindow
7 | {
8 | public partial class FormFillWithData : Form
9 | {
10 | public FormFillWithData(string path)
11 | {
12 | InitializeComponent();
13 | labelFilePath.Text = path;
14 | file = path;
15 | }
16 |
17 | private string file = "";
18 |
19 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
20 | private extern static bool MFM_FillData(string szFileDir, bool force, uint fileSize);
21 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
22 | private extern static bool MFM_EmeptyFile(string szFileDir, bool force);
23 |
24 | private void buttonStart_Click(object sender, EventArgs e)
25 | {
26 | if(radioButtonZeroData.Checked)
27 | {
28 | if (numericUpDownFileSize.Value == 0)
29 | MessageBox.Show(LanuageMgr.GetStr("FillFileNeedSize"));
30 | else
31 | {
32 | if(MFM_FillData(file, checkBoxForce.Checked, Convert.ToUInt32(numericUpDownFileSize.Value) * 1024))
33 | MessageBox.Show(LanuageMgr.GetStr("FillFileSuccess"));
34 | else MessageBox.Show(LanuageMgr.GetStr("FillFileFailed"));
35 | }
36 | }
37 | else if(radioButtonEmepty.Checked)
38 | {
39 | if(MFM_EmeptyFile(file, checkBoxForce.Checked))
40 | MessageBox.Show(LanuageMgr.GetStr("FillFileSuccess"));
41 | else MessageBox.Show(LanuageMgr.GetStr("FillFileFailed"));
42 | }
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormHelp.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgr.WorkWindow
2 | {
3 | partial class FormHelp
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormHelp));
32 | this.webBrowser1 = new System.Windows.Forms.WebBrowser();
33 | this.SuspendLayout();
34 | //
35 | // webBrowser1
36 | //
37 | this.webBrowser1.AllowWebBrowserDrop = false;
38 | this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
39 | this.webBrowser1.Location = new System.Drawing.Point(0, 0);
40 | this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
41 | this.webBrowser1.Name = "webBrowser1";
42 | this.webBrowser1.Size = new System.Drawing.Size(1775, 1015);
43 | this.webBrowser1.TabIndex = 0;
44 | //
45 | // FormHelp
46 | //
47 | this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
48 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
49 | this.ClientSize = new System.Drawing.Size(1775, 1015);
50 | this.Controls.Add(this.webBrowser1);
51 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
52 | this.Name = "FormHelp";
53 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
54 | this.Text = "帮助文档";
55 | this.Load += new System.EventHandler(this.FormHelp_Load);
56 | this.ResumeLayout(false);
57 |
58 | }
59 |
60 | #endregion
61 |
62 | private System.Windows.Forms.WebBrowser webBrowser1;
63 | }
64 | }
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormHelp.cs:
--------------------------------------------------------------------------------
1 | using PCMgr.Aero.TaskDialog;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.ComponentModel;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 |
11 | namespace PCMgr.WorkWindow
12 | {
13 | public partial class FormHelp : Form
14 | {
15 | public FormHelp()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | private void FormHelp_Load(object sender, EventArgs e)
21 | {
22 | if (!NativeMethods.MREG_IsCurrentIEVersionOK(11000, NativeMethods.MAppGetName()))
23 | if(!NativeMethods.MREG_SetCurrentIEVersion(11000, NativeMethods.MAppGetName()))
24 | {
25 | TaskDialog t = new TaskDialog("此页面无法打开", "错误");
26 | t.Content = "您的 IE 版本过低,无法打开此页面。或者,您可以使用其他浏览器访问我们的在线帮助:在线帮助文档";
27 | t.EnableHyperlinks = true;
28 | t.Show(this);
29 | }
30 |
31 | webBrowser1.ObjectForScripting = this;
32 | webBrowser1.Navigate("http://127.0.0.1/softs/pcmgr/help/");
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormSpeedBall.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PCMgr.WorkWindow
2 | {
3 | partial class FormSpeedBall
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.SuspendLayout();
32 | //
33 | // FormSpeedBall
34 | //
35 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
36 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37 | this.BackColor = System.Drawing.Color.White;
38 | this.ClientSize = new System.Drawing.Size(268, 205);
39 | this.DoubleBuffered = true;
40 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
41 | this.Name = "FormSpeedBall";
42 | this.Opacity = 0.9D;
43 | this.ShowInTaskbar = false;
44 | this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
45 | this.Text = "FormSpeedBall";
46 | this.TopMost = true;
47 | this.Paint += new System.Windows.Forms.PaintEventHandler(this.FormSpeedBall_Paint);
48 | this.MouseLeave += new System.EventHandler(this.FormSpeedBall_MouseLeave);
49 | this.ResumeLayout(false);
50 |
51 | }
52 |
53 | #endregion
54 | }
55 | }
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormTest.cs:
--------------------------------------------------------------------------------
1 | using PCMgr.Ctls;
2 | using PCMgr.Helpers;
3 | using PCMgr.Lanuages;
4 | using System;
5 | using System.Windows.Forms;
6 |
7 | namespace PCMgr.WorkWindow
8 | {
9 | public partial class FormTest : Form
10 | {
11 | public FormTest()
12 | {
13 | InitializeComponent();
14 | }
15 |
16 | private void FormTest_Load(object sender, EventArgs e)
17 | {
18 | contextMenuStripUWP.Renderer = new ClassicalMenuRender(Handle);
19 | }
20 |
21 | private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
22 | {
23 |
24 | }
25 |
26 | private void FormTest_MouseUp(object sender, MouseEventArgs e)
27 | {
28 | if(e.Button== MouseButtons.Right)
29 | {
30 | contextMenuStripUWP.Show(MousePosition);
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/FormWindowKillAsk.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PCMgr.WorkWindow
5 | {
6 | public partial class FormWindowKillAsk : Form
7 | {
8 | public FormWindowKillAsk()
9 | {
10 | InitializeComponent();
11 | }
12 | public FormWindowKillAsk(string info, IntPtr target)
13 | {
14 | InitializeComponent();
15 | lb_wndinfo.Text = info;
16 | targetWnd = target;
17 | }
18 |
19 | private IntPtr targetWnd = IntPtr.Zero;
20 | private void FormWindowKillAsk_Deactivate(object sender, EventArgs e)
21 | {
22 | NativeMethods.MAppWorkCall3(213, Handle);
23 | }
24 |
25 | private void btnKill_Click(object sender, EventArgs e)
26 | {
27 | NativeMethods.MAppWorkCall4(102, targetWnd, IntPtr.Zero);
28 | }
29 | private void btnWndize_Click(object sender, EventArgs e)
30 | {
31 | NativeMethods.MAppWorkCall4(103, targetWnd, IntPtr.Zero);
32 | }
33 | private void btnNoTop_Click(object sender, EventArgs e)
34 | {
35 | NativeMethods.MAppWorkCall4(104, targetWnd, IntPtr.Zero);
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/KDbgPrint/FormFind.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace PCMgr.WorkWindow.KDbgPrint
5 | {
6 | public partial class FormFind : Form
7 | {
8 | public FormFind()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | private void FormFind_Load(object sender, EventArgs e)
14 | {
15 | FormSettings.LoadFontSettingForUI(this);
16 | }
17 | public bool Down { get { return radioButtonFindLow.Checked; } set { radioButtonFindLow.Checked = value; } }
18 | public bool Up { get { return radioButtonFindUp.Checked; } set { radioButtonFindUp.Checked = value; } }
19 | public string KeyWord { get { return textBoxEnter.Text; } }
20 | public bool FullSearch { get { return checkBoxFullSearch.Checked; } set { checkBoxFullSearch.Checked = value; } }
21 | public bool CaseSensitive { get { return checkBoxDevideLorH.Checked; } set { checkBoxDevideLorH.Checked = value; } }
22 |
23 | public event EventHandler Find;
24 |
25 | private void buttonFind_Click(object sender, EventArgs e)
26 | {
27 | Find?.Invoke(this, e);
28 | }
29 | private void buttonClose_Click(object sender, EventArgs e)
30 | {
31 | Hide();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/TaskMgr/WorkWindow/Tools/FormFileTool.cs:
--------------------------------------------------------------------------------
1 | using PCMgr.Lanuages;
2 | using System;
3 | using System.Runtime.InteropServices;
4 | using System.Text;
5 | using System.Windows.Forms;
6 |
7 | namespace PCMgr.WorkWindow
8 | {
9 | public partial class FormFileTool : Form
10 | {
11 | public FormFileTool()
12 | {
13 | InitializeComponent();
14 | }
15 |
16 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
17 | private static extern bool MFM_DeleteFileForce(string path);
18 | [DllImport(NativeMethods.COREDLLNAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
19 | private static extern bool MFM_GetFileInformationString(string szFile, StringBuilder strbuf, uint bufsize);
20 |
21 | private void btnChooseFile_Click(object sender, EventArgs e)
22 | {
23 | if (openFileDialog1.ShowDialog() == DialogResult.OK)
24 | textBoxFilePath.Text = openFileDialog1.FileName;
25 | }
26 |
27 | private void btnCheckUsing_Click(object sender, EventArgs e)
28 | {
29 | new FormCheckFileUse(textBoxFilePath.Text).ShowDialog();
30 | }
31 |
32 | private void btnFroceDelete_Click(object sender, EventArgs e)
33 | {
34 | if (textBoxFilePath.Text != "")
35 | {
36 | if (MFM_DeleteFileForce(textBoxFilePath.Text))
37 | MessageBox.Show(LanuageMgr.GetStr("FroceDelSuccess"));
38 | }
39 | }
40 |
41 | private void btnFillWithData_Click(object sender, EventArgs e)
42 | {
43 | if (textBoxFilePath.Text != "")
44 | new FormFillWithData(textBoxFilePath.Text).ShowDialog();
45 | }
46 |
47 | private void btnDisplayFileInfo_Click(object sender, EventArgs e)
48 | {
49 | if (textBoxFilePath.Text != "")
50 | {
51 | StringBuilder buf = new StringBuilder(256);
52 | if (MFM_GetFileInformationString(textBoxFilePath.Text, buf, 256))
53 | labelFileInformation.Text = buf.ToString();
54 | else labelFileInformation.Text = LanuageMgr.GetStr("GetFileInfoFailed");
55 | }
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/TaskMgr/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/TaskMgr/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
51 |
58 |
59 |
60 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/TaskMgr/icoPcmgr.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/icoPcmgr.ico
--------------------------------------------------------------------------------
/TaskMgr/icoPcmgrCos.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/icoPcmgrCos.ico
--------------------------------------------------------------------------------
/TaskMgr/icoPcmgrNetMon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/icoPcmgrNetMon.ico
--------------------------------------------------------------------------------
/TaskMgr/icoPcmgrRegedit.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/icoPcmgrRegedit.ico
--------------------------------------------------------------------------------
/TaskMgr/icoPcmgrUpr.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgr/icoPcmgrUpr.ico
--------------------------------------------------------------------------------
/TaskMgrCore/Debug/PCMgr32.dll.recipe:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | D:\Programming\WinProjects\PCMgr\Debug\PCMgr32.dll
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/TaskMgrCore/DirectoryHelper.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "DirectoryHelper.h"
3 | #include "fmhlp.h"
4 |
5 |
6 | Directory::Directory()
7 | {
8 | }
9 | Directory::~Directory()
10 | {
11 | }
12 |
13 | bool Directory::Exists(std::wstring * path)
14 | {
15 | if (path != nullptr)
16 | {
17 | if (MFM_FileExist(path->c_str()))
18 | return true;
19 | }
20 | return false;
21 | }
22 | bool Directory::Exists(WCHAR * path)
23 | {
24 | if (path != nullptr)
25 | {
26 | if (MFM_FileExist(path))
27 | return true;
28 | }
29 | return false;
30 | }
31 | bool Directory::Delete(std::wstring * path)
32 | {
33 | if (Exists(path)) return RemoveDirectory(path->c_str());
34 | return false;
35 | }
36 | bool Directory::Delete(WCHAR * path)
37 | {
38 | if (Exists(path)) return RemoveDirectory(path);
39 | return false;
40 | }
41 | bool Directory::Create(std::wstring * path)
42 | {
43 | if (path != nullptr)
44 | {
45 | if (MFM_FileExist(path->c_str()))
46 | return true;
47 | else {
48 | return CreateDirectory(path->c_str(), 0);
49 | }
50 | }
51 | return false;
52 | }
53 | bool Directory::Create(WCHAR * path)
54 | {
55 | if (path != nullptr)
56 | {
57 | if (MFM_FileExist(path))
58 | return true;
59 | else
60 | return CreateDirectory(path, 0);
61 | }
62 | return false;
63 | }
64 |
65 | bool Directory::Exists(std::string * path)
66 | {
67 | if (path != nullptr)
68 | {
69 | if (MFM_FileExistA(path->c_str()))
70 | return true;
71 | }
72 | return false;
73 | }
74 | bool Directory::Exists(CHAR * path)
75 | {
76 | if (path != nullptr)
77 | {
78 | if (MFM_FileExistA(path))
79 | return true;
80 | }
81 | return false;
82 | }
83 | bool Directory::Delete(std::string * path)
84 | {
85 | if (Exists(path)) return RemoveDirectoryA(path->c_str());
86 | return false;
87 | }
88 | bool Directory::Delete(CHAR * path)
89 | {
90 | if (Exists(path)) return RemoveDirectoryA(path);
91 | return false;
92 | }
93 | bool Directory::Create(std::string * path)
94 | {
95 | if (path != nullptr)
96 | {
97 | if (MFM_FileExistA(path->c_str()))
98 | return true;
99 | else {
100 | return CreateDirectoryA(path->c_str(), 0);
101 | }
102 | }
103 | return false;
104 | }
105 | bool Directory::Create(CHAR * path)
106 | {
107 | if (path != nullptr)
108 | {
109 | if (MFM_FileExistA(path))
110 | return true;
111 | else
112 | return CreateDirectoryA(path, 0);
113 | }
114 | return false;
115 | }
--------------------------------------------------------------------------------
/TaskMgrCore/DirectoryHelper.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 |
5 | class M_API Directory
6 | {
7 | public:
8 | Directory();
9 | ~Directory();
10 |
11 | static bool Create(std::wstring* path);
12 | static bool Create(WCHAR * path);
13 | static bool Exists(std::wstring* path);
14 | static bool Exists(WCHAR * path);
15 | static bool Delete(std::wstring* path);
16 | static bool Delete(WCHAR * path);
17 |
18 | static bool Create(std::string* path);
19 | static bool Create(CHAR * path);
20 | static bool Exists(std::string* path);
21 | static bool Exists(CHAR * path);
22 | static bool Delete(std::string* path);
23 | static bool Delete(CHAR * path);
24 | };
25 |
26 |
--------------------------------------------------------------------------------
/TaskMgrCore/DisOpCodeTable.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "Disassemble.h"
3 |
4 | DWORD OneOpCodeMapTable[256]=
5 | {
6 | /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
7 | /*0*/ ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, OneByte, OneByte, ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, OneByte, TwoOpCode0F,
8 | /*1*/ ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, OneByte, OneByte, ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, OneByte, OneByte,
9 | /*2*/ ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, PreSegment, OneByte, ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, PreSegment, OneByte,
10 | /*3*/ ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, PreSegment, OneByte, ModRM, ModRM, ModRM, ModRM, Imm8, Imm66, PreSegment, OneByte,
11 | /*4*/ OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte,
12 | /*5*/ OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte,
13 | /*6*/ OneByte, OneByte, ModRM, ModRM, PreSegment, PreSegment, PreOperandSize66,PreAddressSize67,Imm66, Imm66+ModRM,Imm8, Imm8+ModRM, OneByte, OneByte, OneByte, OneByte,
14 | /*7*/ Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8,
15 | /*8*/ Imm8+ModRM, Imm66+ModRM,Imm8+ModRM, Imm8+ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM,
16 | /*9*/ OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, Imm16+Imm66,OneByte, OneByte, OneByte, OneByte, OneByte,
17 | /*A*/ Addr67, Addr67, Addr67, Addr67, OneByte, OneByte, OneByte, OneByte, Imm8, Imm66, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte,
18 | /*B*/ Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm66, Imm66, Imm66, Imm66, Imm66, Imm66, Imm66, Imm66,
19 | /*C*/ Imm8+ModRM, Imm8+ModRM, Imm16, OneByte, ModRM, ModRM, Imm8+ModRM, Imm66+ModRM,Imm16+Imm8, OneByte, Imm16, OneByte, OneByte, Imm8, OneByte, OneByte,
20 | /*D*/ ModRM, ModRM, ModRM, ModRM, Imm8, Imm8, Reserve, OneByte, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM, ModRM,
21 | /*E*/ Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm8, Imm66, Imm66, Imm66+Imm16,Imm8, OneByte, OneByte, OneByte, OneByte,
22 | /*F*/ PreLockF0, Reserve, PreRep, PreRep, OneByte, OneByte, ModRM, ModRM, OneByte, OneByte, OneByte, OneByte, OneByte, OneByte, ModRM, ModRM
23 | };
--------------------------------------------------------------------------------
/TaskMgrCore/Disassemble.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/Disassemble.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/Disassemble.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/Disassemble.h
--------------------------------------------------------------------------------
/TaskMgrCore/DltHlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | typedef struct _MSINGLE_DELTA
5 | {
6 | float Value;
7 | float Delta;
8 | } MSINGLE_DELTA, *PMSINGLE_DELTA;
9 |
10 | typedef struct _MUINT32_DELTA
11 | {
12 | ULONG Value;
13 | ULONG Delta;
14 | } MUINT32_DELTA, *PMUINT32_DELTA;
15 |
16 | typedef struct _MUINT64_DELTA
17 | {
18 | ULONG64 Value;
19 | ULONG64 Delta;
20 | } MUINT64_DELTA, *PMUINT64_DELTA;
21 |
22 | typedef struct _MUINTPTR_DELTA
23 | {
24 | ULONG_PTR Value;
25 | ULONG_PTR Delta;
26 | } MUINTPTR_DELTA, *PMUINTPTR_DELTA;
27 |
28 | #define MInitializeDelta(DltMgr) \
29 | ((DltMgr)->Value = 0, (DltMgr)->Delta = 0)
30 |
31 | #define MUpdateDelta(DltMgr, NewValue) \
32 | ((DltMgr)->Delta = (NewValue) - (DltMgr)->Value, \
33 | (DltMgr)->Value = (NewValue), (DltMgr)->Delta)
--------------------------------------------------------------------------------
/TaskMgrCore/MConnectionMonitor.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include "MMonitor.h"
4 | #include "mapphlp.h"
5 | #include "sysfuns.h"
6 | #include "loghlp.h"
7 | #include "prochlp.h"
8 | #include "StringHlp.h"
9 | #include
10 | #include
11 | #include
12 | #include
13 | #include
14 |
15 | #define M_CONNECTION_TYPE_TCP 4
16 | #define M_CONNECTION_TYPE_TCP6 6
17 | #define M_CONNECTION_TYPE_UDP 2
18 | #define M_CONNECTION_TYPE_UDP6 5
19 |
20 | typedef BOOL(*MCONNECTION_ENUM_CALLBACK)(DWORD ProcessId, DWORD Protcol, WCHAR *LocalAddr, DWORD LocalPort, WCHAR *RemoteAddr, DWORD RemotePort, DWORD state);
21 |
22 | class MConnectionMonitor : MMonitor
23 | {
24 | public:
25 | MConnectionMonitor();
26 | ~MConnectionMonitor();
27 |
28 | static bool GetConnectNetWorkAllBuffer(DWORD dwLocalAddr, DWORD dwLocalPort, DWORD dwRemoteAddr, DWORD dwRemotePort, DWORD dwState, MPerfAndProcessData*data);
29 | static bool GetConnectNetWorkAllBuffer6(IN6_ADDR LocalAddr, DWORD dwLocalPort, IN6_ADDR RemoteAddr, DWORD dwRemotePort, MIB_TCP_STATE State, MPerfAndProcessData*data);
30 |
31 | bool Update();
32 | bool UpdateListData(MCONNECTION_ENUM_CALLBACK cp);
33 |
34 | bool IsProcessHasConnection(DWORD pid);
35 | ULONG64 GetProcessConnectSpeed(PMPROCESS_ITEM p);
36 |
37 | private:
38 | PMIB_TCPTABLE_OWNER_PID netProcess = NULL;
39 | PMIB_TCP6TABLE_OWNER_PID net6Process = NULL;
40 |
41 |
42 | void FreeOld();
43 | };
--------------------------------------------------------------------------------
/TaskMgrCore/MCpuInfoMonitor.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/MCpuInfoMonitor.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/MCpuInfoMonitor.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/MCpuInfoMonitor.h
--------------------------------------------------------------------------------
/TaskMgrCore/MMonitor.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "MMonitor.h"
3 |
4 |
5 | MMonitor::MMonitor()
6 | {
7 | }
8 | MMonitor::~MMonitor()
9 | {
10 | }
11 |
12 | bool MMonitor::Update()
13 | {
14 | return false;
15 | }
16 | bool MMonitor::Start()
17 | {
18 | return false;
19 | }
20 | bool MMonitor::Stop()
21 | {
22 | return false;
23 | }
24 |
--------------------------------------------------------------------------------
/TaskMgrCore/MMonitor.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 |
5 |
6 | class M_API MMonitor
7 | {
8 | public:
9 | MMonitor();
10 | ~MMonitor();
11 |
12 | virtual bool Update();
13 | virtual bool Start();
14 | virtual bool Stop();
15 |
16 | };
17 |
18 |
--------------------------------------------------------------------------------
/TaskMgrCore/MProcessMonitor.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/MProcessMonitor.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/MProcessMonitor.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/MProcessMonitor.h
--------------------------------------------------------------------------------
/TaskMgrCore/MProcessPerformanctMonitor.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/MProcessPerformanctMonitor.h
--------------------------------------------------------------------------------
/TaskMgrCore/MSystemPerformanctMonitor.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/MSystemPerformanctMonitor.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/MSystemPerformanctMonitor.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include "ntdef.h"
4 | #include "DltHlp.h"
5 |
6 | class M_API MSystemPerformanctMonitor
7 | {
8 | public:
9 |
10 | static DWORD GetThreadCount();
11 | static DWORD GetHandleCount();
12 | static DWORD GetProcessCount();
13 | static DWORD GetPageSize();
14 | static DWORD GetCpuCount();
15 |
16 | static ULONGLONG GetSystemRunTime();
17 |
18 | static BOOL InitGlobal();
19 | static void DestroyGlobal();
20 |
21 | static BOOL UpdatePerformance();
22 | static BOOL UpdateCpuGlobal();
23 |
24 | static VOID UpdateCpuInformation();
25 | static VOID UpdateCpuCycleInformation(PULONG64 IdleCycleTime);
26 | static VOID UpdateCpuCycleUsageInformation(ULONG64 TotalCycleTime, ULONG64 IdleCycleTime);
27 |
28 | static double GetCpuUsage();
29 | static double GetCpuUsageKernel();
30 | static double GetCpuUsageUser();
31 |
32 | static __int64 UpdateTimeInterval; //Global update delta
33 | static PLARGE_INTEGER CpuIdleCycleTime; // cycle time for Idle
34 | static PLARGE_INTEGER CpuSystemCycleTime; // cycle time for DPCs and Interrupts
35 | static MUINT64_DELTA CpuIdleCycleDelta;
36 | static MUINT64_DELTA CpuSystemCycleDelta;
37 |
38 | static MUINT64_DELTA CpuKernelDelta;
39 | static MUINT64_DELTA CpuUserDelta;
40 | static MUINT64_DELTA CpuIdleDelta;
41 |
42 | static PMUINT64_DELTA CpusKernelDelta;
43 | static PMUINT64_DELTA CpusUserDelta;
44 | static PMUINT64_DELTA CpusIdleDelta;
45 |
46 | static ULONG64 CpuTotalTime;
47 |
48 | //Cpu infos
49 | static PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION CpuInformation;
50 | static SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION CpuTotals;
51 | };
52 |
53 |
54 | class M_API MSystemMemoryPerformanctMonitor
55 | {
56 | public:
57 |
58 | static ULONGLONG GetAllMemory();
59 | static ULONGLONG GetKernelPaged();
60 | static ULONGLONG GetKernelNonpaged();
61 | static ULONGLONG GetSystemCacheSize();
62 | static ULONGLONG GetCommitTotal();
63 | static ULONGLONG GetCommitLimit();
64 | static ULONGLONG GetMemoryAvail();
65 | static ULONGLONG GetMemoryUsed();
66 | static ULONGLONG GetMemoryAvailPageFile();
67 |
68 | static double GetMemoryUsage();
69 |
70 | static ULONGLONG GetStandBySize();
71 | static ULONGLONG GetModifiedSize();
72 |
73 | static BOOL GetMemoryCompressionInfo(PPROCESS_COMPRESSION_INFO outInfo);
74 | static BOOL UpdateMemoryListInfo();
75 | };
76 |
77 |
--------------------------------------------------------------------------------
/TaskMgrCore/PathHelper.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 |
5 | class M_API Path
6 | {
7 | public:
8 | Path();
9 | ~Path();
10 |
11 | static std::wstring *GetFileNameWithoutExtension(std::wstring * path);
12 | static std::wstring *GetExtension(std::wstring* path);
13 | static bool IsPathRooted(std::wstring * path1);
14 | static bool HasExtension(std::wstring * path);
15 | static bool CheckInvalidPathChars(std::wstring * path);
16 | static std::wstring *GetFileName(std::wstring * path);
17 | static std::wstring *GetDirectoryName(std::wstring * path);
18 | static bool IsValidateFolderFileName(std::wstring * path);
19 | static bool RemoveQuotes(LPWSTR pathBuffer, size_t bufferSize);
20 |
21 | static std::wstring *GetFileNameWithoutExtension(LPWSTR path);
22 | static std::wstring *GetExtension(LPWSTR path);
23 | static bool IsPathRooted(LPWSTR path1);
24 | static bool HasExtension(LPWSTR path);
25 | static bool CheckInvalidPathChars(LPWSTR path);
26 | static std::wstring *GetFileName(LPWSTR path);
27 | static std::wstring *GetDirectoryName(LPWSTR path);
28 |
29 | static std::string *GetFileNameWithoutExtension(std::string * path);
30 | static std::string *GetExtension(std::string* path);
31 | static bool IsPathRooted(std::string * path1);
32 | static bool HasExtension(std::string * path);
33 | static bool CheckInvalidPathChars(std::string * path);
34 | static std::string *GetFileName(std::string * path);
35 | static std::string *GetDirectoryName(std::string * path);
36 | static bool IsValidateFolderFileName(std::string * path);
37 |
38 | static std::string *GetFileNameWithoutExtension(LPCSTR path);
39 | static std::string *GetExtension(LPCSTR path);
40 | static bool IsPathRooted(LPCSTR path1);
41 | static bool HasExtension(LPCSTR path);
42 | static bool CheckInvalidPathChars(LPCSTR path);
43 | static std::string *GetFileName(LPCSTR path);
44 | static std::string *GetDirectoryName(LPCSTR path);
45 | };
46 |
47 |
48 |
--------------------------------------------------------------------------------
/TaskMgrCore/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 这是一个 Windows 平台的任务管理器/进程管理器
3 | ========================================================================
4 |
5 | 使用windows api开发,可以进行查看进程、获取路径、结束进程等。
6 |
7 | 还有一些其他功能,比如文件管理,服务管理。
8 |
9 | /////////////////////////////////////////////////////////////////////////////
10 | 目前只完成部分功能
11 | /////////////////////////////////////////////////////////////////////////////
12 |
--------------------------------------------------------------------------------
/TaskMgrCore/StringHlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/StringHlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/StringHlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/StringHlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/StringSplit.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "StringSplit.h"
3 |
4 | void SplitString2(const std::string* s, std::vector* v, const std::string& c)
5 | {
6 | std::string::size_type pos1, pos2;
7 | pos2 = s->find(c);
8 | pos1 = 0;
9 | while (std::string::npos != pos2)
10 | {
11 | v->push_back(s->substr(pos1, pos2 - pos1));
12 |
13 | pos1 = pos2 + c.size();
14 | pos2 = s->find(c, pos1);
15 | }
16 | if (pos1 != s->length()) v->push_back(s->substr(pos1));
17 | }
18 | void SplitString2(const std::wstring *s, std::vector* v, const std::wstring & c)
19 | {
20 | std::wstring::size_type pos1, pos2;
21 | pos2 = s->find(c);
22 | pos1 = 0;
23 | while (std::wstring::npos != pos2)
24 | {
25 | v->push_back(s->substr(pos1, pos2 - pos1));
26 |
27 | pos1 = pos2 + c.size();
28 | pos2 = s->find(c, pos1);
29 | }
30 | if (pos1 != s->length())
31 | v->push_back(s->substr(pos1));
32 | }
33 |
34 | void SplitString(const std::string& s, std::vector& v, const std::string& c)
35 | {
36 | std::string::size_type pos1, pos2;
37 | pos2 = s.find(c);
38 | pos1 = 0;
39 | while (std::string::npos != pos2)
40 | {
41 | v.push_back(s.substr(pos1, pos2 - pos1));
42 |
43 | pos1 = pos2 + c.size();
44 | pos2 = s.find(c, pos1);
45 | }
46 | if (pos1 != s.length())
47 | v.push_back(s.substr(pos1));
48 | }
49 | void SplitString(const std::wstring & s, std::vector& v, const std::wstring & c)
50 | {
51 | std::wstring::size_type pos1, pos2;
52 | pos2 = s.find(c);
53 | pos1 = 0;
54 | while (std::wstring::npos != pos2)
55 | {
56 | v.push_back(s.substr(pos1, pos2 - pos1));
57 |
58 | pos1 = pos2 + c.size();
59 | pos2 = s.find(c, pos1);
60 | }
61 | if (pos1 != s.length())
62 | v.push_back(s.substr(pos1));
63 | }
64 |
--------------------------------------------------------------------------------
/TaskMgrCore/StringSplit.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include
3 | #include
4 |
5 | void SplitString2(const std::string * s, std::vector* v, const std::string & c);
6 | void SplitString2(const std::wstring * s, std::vector* v, const std::wstring & c);
7 |
8 | void SplitString(const std::string& s, std::vector& v, const std::string& c);
9 | void SplitString(const std::wstring & s, std::vector& v, const std::wstring & c);
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TaskMgrCore/TaskMgrCore.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/TaskMgrCore.aps
--------------------------------------------------------------------------------
/TaskMgrCore/TaskMgrCore.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/TaskMgrCore.rc
--------------------------------------------------------------------------------
/TaskMgrCore/TaskMgrCore.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WindowsLocalDebugger
5 |
6 |
--------------------------------------------------------------------------------
/TaskMgrCore/UidHlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | #define CONVERT_STR_2_GUID(cstr, stGuid) do\
5 | {\
6 | swscanf_s((const wchar_t*)cstr, L"{%8x-%4x-%4x-%2x%2x-%2x%2x%2x%2x%2x%2x}",\
7 | &(stGuid.Data1),&(stGuid.Data2),&(stGuid.Data3),\
8 | &(stGuid.Data4[0]),&(stGuid.Data4[1]),&(stGuid.Data4[2]),&(stGuid.Data4[3]),\
9 | &(stGuid.Data4[4]),&(stGuid.Data4[5]),&(stGuid.Data4[6]),&(stGuid.Data4[7]));\
10 | }while(0);
11 |
12 | M_CAPI(int) MGetCurrentUserSid(PSID * outSid);
13 |
--------------------------------------------------------------------------------
/TaskMgrCore/cmdhlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/cmdhlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/cmdhlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 | #include
5 |
6 | typedef void(*COS_FOR_ALLOC_EXIT_CALLBACK)();
7 |
8 | using namespace std;
9 |
10 | typedef void(_cdecl* MCMD_HANDLER_NO_RETURN)(vector* cmds, int size);
11 | typedef bool(_cdecl* MCMD_HANDLER)(vector* cmds, int size);
12 | typedef bool(_cdecl* MCMD_HANDLER_NO_PARARM)();
13 |
14 | M_CAPI(int) MAppConsoleInit();;
15 |
16 | M_CAPI(int) MAppCmdRunner(BOOL isMain, COS_FOR_ALLOC_EXIT_CALLBACK callback);
17 | M_CAPI(int) MPrintMumberWithLen(DWORD n, size_t len);
18 | M_CAPI(int) MPrintStrWithLenW(LPWSTR s, size_t len);
19 | M_CAPI(int) MPrintStrWithLenA(LPCSTR s, size_t len);
20 | M_CAPI(void) MPrintSuccess();
21 |
22 | class M_API MCmdRunner
23 | {
24 | public:
25 | MCmdRunner();
26 | ~MCmdRunner();
27 |
28 | bool RegisterCommand(const char*cmd, MCMD_HANDLER handler);
29 | bool RegisterCommandNoParam(const char*cmd, MCMD_HANDLER_NO_PARARM handler);
30 | bool RegisterCommandNoReturn(const char*cmd, MCMD_HANDLER_NO_RETURN handler);
31 |
32 | bool UnRegisterCommand(const char*cmd);
33 | bool IsCommandRegistered(const char*cmd);
34 |
35 | bool MRunCmdWithString(char*maxbuf);
36 | bool MRunCmd(vector * cmds, LPCSTR oldCmd);
37 | private:
38 |
39 | };
40 |
41 | M_CAPI(MCmdRunner*) MGetStaticCmdRunner();
42 |
--------------------------------------------------------------------------------
/TaskMgrCore/comdlghlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/comdlghlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/comdlghlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/comdlghlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/cscall.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #define M_CALLBACK_SW_AOP_WND 1
4 | #define M_CALLBACK_CLEAR_ILLEGAL_TOP_WND 2
5 | #define M_CALLBACK_SWITCH_IDM_ALWAYSTOP_SET 3
6 | #define M_CALLBACK_SWITCH_MAINGROUP_SET 4
7 | #define M_CALLBACK_SWITCH_REFESHRATE_SET 5
8 | #define M_CALLBACK_SWITCH_TOPMOST_SET 6
9 | #define M_CALLBACK_SWITCH_CLOSEHIDE_SET 7
10 | #define M_CALLBACK_SWITCH_MINHIDE_SET 8
11 | #define M_CALLBACK_GOTO_SERVICE 9
12 | #define M_CALLBACK_REFESH_SCLIST 10
13 | #define M_CALLBACK_KILLPROCTREE 11
14 | #define M_CALLBACK_SPY_TOOL 12
15 | #define M_CALLBACK_FILE_TOOL 13
16 | #define M_CALLBACK_ABOUT 14
17 | #define M_CALLBACK_ENDTASK 15
18 | #define M_CALLBACK_LOADDRIVER_TOOL 16
19 | #define M_CALLBACK_SCITEM_REMOVED 17
20 | #define M_CALLBACK_SHOW_PROGRESS_DLG 18
21 | #define M_CALLBACK_UPDATE_PROGRESS_DLG_TO_DELETEING 19
22 | #define M_CALLBACK_UPDATE_PROGRESS_DLG_ALL 20
23 | #define M_CALLBACK_UPDATE_PROGRESS_DLG_TO_COLLECTING 21
24 | #define M_CALLBACK_KERNEL_INIT 22
25 | #define M_CALLBACK_VIEW_HANDLES 23
26 | #define M_CALLBACK_KERNEL_INIT_LIST 24
27 | #define M_CALLBACK_KERNEL_SWITCH_SHOWALLDRV 25
28 | #define M_CALLBACK_START_ITEM_REMVED 26
29 | #define M_CALLBACK_VIEW_KSTRUCTS 27
30 | #define M_CALLBACK_VIEW_TIMER 28
31 | #define M_CALLBACK_VIEW_HOTKEY 29
32 | #define M_CALLBACK_SHOW_TRUSTED_DLG 30
33 | #define M_CALLBACK_MDETALS_LIST_HEADER_RIGHTCLICK 31
34 | #define M_CALLBACK_KDA 32
35 | #define M_CALLBACK_SETAFFINITY 33
36 | #define M_CALLBACK_UPDATE_LOAD_STATUS 34
37 | #define M_CALLBACK_SHOW_NOPDB_WARN 35
38 | #define M_CALLBACK_INVOKE_LASTLOAD_STEP 36
39 | #define M_CALLBACK_DBGPRINT_SHOW 37
40 | #define M_CALLBACK_DBGPRINT_CLOSE 38
41 | #define M_CALLBACK_DBGPRINT_DATA 39
42 | #define M_CALLBACK_DBGPRINT_EMEPTY 40
43 | #define M_CALLBACK_SHOW_LOAD_STATUS 41
44 | #define M_CALLBACK_HLDE_LOAD_STATUS 42
45 | #define M_CALLBACK_MDETALS_LIST_HEADER_MOUSEMOVE 43
46 | #define M_CALLBACK_KERNEL_VIELL_PRGV 51
47 | #define M_CALLBACK_KERNEL_TOOL 52
48 | #define M_CALLBACK_HOOKS 53
49 | #define M_CALLBACK_NETMON 54
50 | #define M_CALLBACK_REGEDIT 55
51 | #define M_CALLBACK_FILEMGR 56
52 | #define M_CALLBACK_COLLAPSE_ALL 57
53 | #define M_CALLBACK_SIMPLEVIEW_ACT 58
54 | #define M_CALLBACK_UWPKILL 59
55 | #define M_CALLBACK_EXPAND_ALL 60
56 | #define M_CALLBACK_SHOW_HELP 61
57 | #define M_CALLBACK_RUN_APP_CMD 62
58 | #define M_CALLBACK_VIEW_TCP 63
59 | #define M_CALLBACK_RELOAD_PERF_DEVICE_LIST 64
60 | #define M_CALLBACK_ 1
61 |
62 |
63 |
--------------------------------------------------------------------------------
/TaskMgrCore/devicehlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/devicehlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/dllmain.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/fmhlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/fmhlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/fmhlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/fmhlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/handlehlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include "ntdef.h"
4 |
5 | typedef void(*EHCALLBACK)(VOID* handle, LPWSTR type, LPWSTR name, LPWSTR address, LPWSTR objaddr, ULONG refcount, int typeindex);
6 |
7 | M_CAPI(NTSTATUS) M_EH_DuplicateHandleFromProcess(HANDLE ProcessHandle, PHANDLE Handle, HANDLE HandleValue, ACCESS_MASK DesiredAccess);
8 | M_CAPI(BOOL) M_EH_CloseHandle(DWORD pid, LPVOID handleValue);
9 | M_CAPI(BOOL) M_EH_GetHandleTypeName(HANDLE HandleDup, LPWSTR buffer, size_t bufsize);
10 | M_CAPI(BOOL) M_EH_EnumProcessHandles(DWORD pid, EHCALLBACK callback);
--------------------------------------------------------------------------------
/TaskMgrCore/ico/icoActiveWin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ico/icoActiveWin.ico
--------------------------------------------------------------------------------
/TaskMgrCore/ico/icoDefApp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ico/icoDefApp.ico
--------------------------------------------------------------------------------
/TaskMgrCore/ico/icoHiddenWin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ico/icoHiddenWin.ico
--------------------------------------------------------------------------------
/TaskMgrCore/ico/icoLogin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ico/icoLogin.ico
--------------------------------------------------------------------------------
/TaskMgrCore/ico/icoOpen.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ico/icoOpen.ico
--------------------------------------------------------------------------------
/TaskMgrCore/ico/icoShutdown.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ico/icoShutdown.ico
--------------------------------------------------------------------------------
/TaskMgrCore/icoutils.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "icoutils.h"
3 | #include
4 |
5 | HICON MGetShieldIcon(VOID)
6 | {
7 | static HICON shieldIcon = NULL;
8 |
9 | if (!shieldIcon)
10 | LoadIconMetric(NULL, IDI_SHIELD, LIM_SMALL, &shieldIcon);
11 | return shieldIcon;
12 | }
13 | HICON MGetShieldIcon2(VOID)
14 | {
15 | static HICON shieldIcon2 = NULL;
16 | if (!shieldIcon2)
17 | LoadIconWithScaleDown(NULL, IDI_SHIELD, 16, 16, &shieldIcon2);
18 | return shieldIcon2;
19 | }
20 | HBITMAP MCreateBitmap32(HDC hdc, ULONG Width, ULONG Height, PVOID *Bits)
21 | {
22 | BITMAPINFO bitmapInfo;
23 |
24 | memset(&bitmapInfo, 0, sizeof(BITMAPINFO));
25 | bitmapInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
26 | bitmapInfo.bmiHeader.biPlanes = 1;
27 | bitmapInfo.bmiHeader.biCompression = BI_RGB;
28 |
29 | bitmapInfo.bmiHeader.biWidth = Width;
30 | bitmapInfo.bmiHeader.biHeight = Height;
31 | bitmapInfo.bmiHeader.biBitCount = 32;
32 |
33 | return CreateDIBSection(hdc, &bitmapInfo, DIB_RGB_COLORS, Bits, NULL, 0);
34 | }
35 | HBITMAP MIconToBitmap(HICON Icon, ULONG Width, ULONG Height)
36 | {
37 | HBITMAP bitmap;
38 | RECT iconRectangle;
39 | HDC screenHdc;
40 | HDC hdc;
41 | HBITMAP oldBitmap;
42 | BLENDFUNCTION blendFunction = { AC_SRC_OVER, 0, 255, AC_SRC_ALPHA };
43 | BP_PAINTPARAMS paintParams = { sizeof(paintParams) };
44 | HDC bufferHdc;
45 | HPAINTBUFFER paintBuffer;
46 |
47 | iconRectangle.left = 0;
48 | iconRectangle.top = 0;
49 | iconRectangle.right = Width;
50 | iconRectangle.bottom = Height;
51 |
52 |
53 | screenHdc = GetDC(NULL);
54 | hdc = CreateCompatibleDC(screenHdc);
55 | bitmap = MCreateBitmap32(screenHdc, Width, Height, NULL);
56 | ReleaseDC(NULL, screenHdc);
57 | oldBitmap = (HBITMAP)SelectObject(hdc, bitmap);
58 |
59 | paintParams.dwFlags = BPPF_ERASE;
60 | paintParams.pBlendFunction = &blendFunction;
61 |
62 | paintBuffer = BeginBufferedPaint(hdc, &iconRectangle, BPBF_DIB, &paintParams, &bufferHdc);
63 | DrawIconEx(bufferHdc, 0, 0, Icon, Width, Height, 0, NULL, DI_NORMAL);
64 | // If the icon did not have an alpha channel, we need to convert the buffer to PARGB.
65 | // PhpConvertToPArgb32IfNeeded(paintBuffer, hdc, Icon, Width, Height);
66 | // This will write the buffer contents to the destination bitmap.
67 | EndBufferedPaint(paintBuffer, TRUE);
68 |
69 | SelectObject(hdc, oldBitmap);
70 | DeleteDC(hdc);
71 |
72 | return bitmap;
73 | }
--------------------------------------------------------------------------------
/TaskMgrCore/icoutils.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | M_CAPI(HICON) MGetShieldIcon(VOID);
5 | M_CAPI(HICON) MGetShieldIcon2(VOID);
6 | HBITMAP MCreateBitmap32(HDC hdc, ULONG Width, ULONG Height, PVOID *Bits);
7 | HBITMAP MIconToBitmap(HICON Icon, ULONG Width, ULONG Height);
--------------------------------------------------------------------------------
/TaskMgrCore/kda.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/kda.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/kda.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/kda.h
--------------------------------------------------------------------------------
/TaskMgrCore/kernelhlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/kernelhlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/kernelhlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/kernelhlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/lghlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/lghlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/lghlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/lghlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/loghlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/loghlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/loghlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/loghlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/mainprocs.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/mainprocs.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/mainprocs.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 | #include
5 |
6 | #define IDC_TABMAIN 1003
7 | #define IDC_LISTMAIN 1004
8 |
9 | BOOL ShowMainCore(HWND hWnd);
10 | void ShowMainCoreStartUp();
11 | LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
--------------------------------------------------------------------------------
/TaskMgrCore/mapphlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/mapphlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/mapphlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/mapphlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/msup.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 |
5 | LPVOID MAlloc(SIZE_T size);
6 | LPVOID MRealloc(LPVOID ptr, SIZE_T size);;
7 | VOID MFree(LPVOID ptr);
8 | VOID MForceGC();
9 | VOID MForceGC(LONG Generation);
10 | VOID MShowProgramStats();
--------------------------------------------------------------------------------
/TaskMgrCore/netdef.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | typedef struct _MIB_TCP6ROW {
5 | MIB_TCP_STATE State;
6 | IN6_ADDR LocalAddr;
7 | DWORD dwLocalScopeId;
8 | DWORD dwLocalPort;
9 | IN6_ADDR RemoteAddr;
10 | DWORD dwRemoteScopeId;
11 | DWORD dwRemotePort;
12 | } MIB_TCP6ROW, *PMIB_TCP6ROW;
13 |
14 | typedef struct _MIB_TCP6ROW_OWNER_PID
15 | {
16 | UCHAR ucLocalAddr[16];
17 | DWORD dwLocalScopeId;
18 | DWORD dwLocalPort;
19 | UCHAR ucRemoteAddr[16];
20 | DWORD dwRemoteScopeId;
21 | DWORD dwRemotePort;
22 | DWORD dwState;
23 | DWORD dwOwningPid;
24 | } MIB_TCP6ROW_OWNER_PID, *PMIB_TCP6ROW_OWNER_PID;
25 |
26 | typedef struct _MIB_TCP6TABLE_OWNER_PID
27 | {
28 | DWORD dwNumEntries;
29 | _Field_size_(dwNumEntries)
30 | MIB_TCP6ROW_OWNER_PID table[ANY_SIZE];
31 | } MIB_TCP6TABLE_OWNER_PID, *PMIB_TCP6TABLE_OWNER_PID;
--------------------------------------------------------------------------------
/TaskMgrCore/ntdef.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/ntdef.h
--------------------------------------------------------------------------------
/TaskMgrCore/nthlp.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "nthlp.h"
3 | #include "msup.h"
4 | #include
5 |
6 | WCHAR ntStatusStrBuf[20];
7 |
8 | extern NtQueryInformationProcessFun NtQueryInformationProcess;
9 |
10 | NTSTATUS MQueryProcessVariableSize(_In_ HANDLE ProcessHandle,_In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID *Buffer)
11 | {
12 | NTSTATUS status;
13 | PVOID buffer;
14 | ULONG returnLength = 0;
15 |
16 | status = NtQueryInformationProcess(
17 | ProcessHandle,
18 | ProcessInformationClass,
19 | NULL,
20 | 0,
21 | &returnLength
22 | );
23 |
24 | if (status != STATUS_BUFFER_OVERFLOW && status != STATUS_BUFFER_TOO_SMALL && status != STATUS_INFO_LENGTH_MISMATCH)
25 | return status;
26 |
27 | buffer = MAlloc(returnLength);
28 | status = NtQueryInformationProcess(
29 | ProcessHandle,
30 | ProcessInformationClass,
31 | buffer,
32 | returnLength,
33 | &returnLength
34 | );
35 |
36 | if (NT_SUCCESS(status))
37 | {
38 | *Buffer = buffer;
39 | }
40 | else
41 | {
42 | MFree(buffer);
43 | }
44 |
45 | return status;
46 | }
47 | LPWSTR MNtStatusToStr(NTSTATUS status) {
48 | switch (status)
49 | {
50 | case STATUS_SUCCESS:
51 | return L"STATUS_SUCCESS";
52 | case STATUS_UNSUCCESSFUL:
53 | return L"STATUS_UNSUCCESSFUL";
54 | case STATUS_NOT_IMPLEMENTED:
55 | return L"STATUS_NOT_IMPLEMENTED";
56 | case STATUS_INVALID_INFO_CLASS:
57 | return L"STATUS_INVALID_INFO_CLASS";
58 | case STATUS_INFO_LENGTH_MISMATCH:
59 | return L"STATUS_INFO_LENGTH_MISMATCH";
60 | case STATUS_BUFFER_OVERFLOW:
61 | return L"STATUS_BUFFER_OVERFLOW";
62 | case STATUS_ACCESS_DENIED:
63 | return L"STATUS_ACCESS_DENIED";
64 | case STATUS_BUFFER_TOO_SMALL:
65 | return L"STATUS_BUFFER_TOO_SMALL";
66 | case STATUS_PROCESS_IS_TERMINATING:
67 | return L"STATUS_PROCESS_IS_TERMINATING";
68 | case STATUS_INVALID_HANDLE:
69 | return L"STATUS_INVALID_HANDLE";
70 | case STATUS_INVALID_CID:
71 | return L"STATUS_INVALID_CID";
72 | case STATUS_THREAD_IS_TERMINATING:
73 | return L"STATUS_THREAD_IS_TERMINATING";
74 | case STATUS_INVALID_PARAMETER:
75 | return L"STATUS_INVALID_PARAMETER";
76 | case STATUS_NOT_SUPPORTED:
77 | return L"STATUS_NOT_SUPPORTED";
78 | default:
79 | swprintf_s(ntStatusStrBuf, L"0x%08X", status);
80 | break;
81 | }
82 | return ntStatusStrBuf;
83 | }
--------------------------------------------------------------------------------
/TaskMgrCore/nthlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/nthlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/ntsymbol.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 |
5 | typedef BOOL (*MENUMSTRUCTOFFEST_CALLBACK)(_In_ LPCSTR structName,_In_ LPWSTR mumberName, _In_opt_ DWORD mumberOffest);
6 |
7 | BOOL CALLBACKMEnumSymStruct_Off_EPROCESS_Routine(_In_ LPCSTR structName, _In_ LPWSTR mumberName, _In_opt_ DWORD mumberOffest);
8 | BOOL CALLBACKMEnumSymStruct_Off_ETHREAD_Routine(LPCSTR structName, LPWSTR mumberName, DWORD mumberOffest);
9 |
10 | BOOLEAN CALLBACK CALLBACKMEnumSymStruct_EPROCESS_Routine(PSYMBOL_INFO psi, ULONG SymSize, PVOID Context);
11 | BOOLEAN CALLBACK CALLBACKMEnumSymStruct_ETHREAD_Routine(PSYMBOL_INFO psi, ULONG SymSize, PVOID Context);
12 | BOOLEAN CALLBACK MEnumSymNTOSRoutine(PSYMBOL_INFO psi, ULONG SymSize, PVOID Context);
13 | BOOLEAN CALLBACK MEnumSymWIN32KRoutine(PSYMBOL_INFO psi, ULONG SymSize, PVOID Context);
14 |
15 | BOOL MSendAllSymAddressToDriver();
16 | BOOLEAN InitSymHandler();
17 | BOOLEAN MEnumNTOSSyms(ULONG_PTR ModuleBase, PSYM_ENUMERATESYMBOLS_CALLBACK EnumRoutine, PVOID Context);
18 | BOOLEAN MEnumWIN32KSyms(ULONG_PTR ModuleBase, PSYM_ENUMERATESYMBOLS_CALLBACK EnumRoutine, PVOID Context);
19 | BOOLEAN MEnumSymsClear();
20 |
21 |
22 | M_CAPI(BOOLEAN) MKSymInit(char * ImageName, ULONG_PTR ModuleBase);
23 | M_CAPI(BOOLEAN) MKEnumAllSym(ULONG_PTR ModuleBase, PSYM_ENUMERATESYMBOLS_CALLBACK callback, PVOID Context);
24 | M_CAPI(BOOLEAN) MKEnumSymStructs(ULONG_PTR ModuleBase, LPCSTR structName, PSYM_ENUMERATESYMBOLS_CALLBACK callBack, PVOID Context);
25 | M_CAPI(BOOLEAN) MKEnumSymStructOffests(PSYMBOL_INFO psi, ULONG_PTR ModuleBase, MENUMSTRUCTOFFEST_CALLBACK callBack, PVOID Context);
26 |
--------------------------------------------------------------------------------
/TaskMgrCore/pehlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/pehlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/pehlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | BOOL MAppVPECheck(LPBYTE lpBaseAddress);
5 | VOID MAppVPE(LPWSTR pszFile, HWND hWnd);
6 | VOID MAppVPEExp(LPWSTR pszFile, HWND hWnd);
7 | VOID MAppVPEImp(LPWSTR pszFile, HWND hWnd);
8 |
9 |
--------------------------------------------------------------------------------
/TaskMgrCore/perfhlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/perfhlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/perfhlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/perfhlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/prochlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/prochlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/prochlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/prochlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/reghlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/reghlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/reghlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/reghlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/resource.h
--------------------------------------------------------------------------------
/TaskMgrCore/runsdvui.cmd:
--------------------------------------------------------------------------------
1 | cd /d "E:\主数据库\编程\方案8\PCMgr\TaskMgrCore" &msbuild "TaskMgrCore.vcxproj" /t:sdvViewer /p:configuration="Debug" /p:platform=Win32
2 | exit %errorlevel%
--------------------------------------------------------------------------------
/TaskMgrCore/schlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/schlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/schlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/schlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/settinghlp.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "settinghlp.h"
3 | #include "mapphlp.h"
4 | #include "PathHelper.h"
5 | #include "StringHlp.h"
6 |
7 | WCHAR iniPath[MAX_PATH];
8 |
9 | M_CAPI(LPWSTR) M_CFG_GetCfgFilePath() {
10 | return iniPath;
11 | }
12 | M_CAPI(BOOL) M_CFG_GetConfigBOOL(LPWSTR configkey, LPWSTR configSection, BOOL defaultValue)
13 | {
14 | BOOL rs = defaultValue;
15 |
16 | WCHAR temp[32];
17 | if (GetPrivateProfileString(configSection, configkey, defaultValue ? L"TRUE" : L"FALSE", temp, 32, iniPath) > 0)
18 | defaultValue = StrEqual(temp, L"1") || StrEqual(temp, L"TRUE") || StrEqual(temp, L"True");
19 | return defaultValue;
20 | }
21 | M_CAPI(BOOL) M_CFG_SetConfigBOOL(LPWSTR configkey, LPWSTR configSection, BOOL value)
22 | {
23 | return WritePrivateProfileStringW(configSection, configkey, value ? L"TRUE" : L"FALSE", iniPath);
24 | }
--------------------------------------------------------------------------------
/TaskMgrCore/settinghlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/settinghlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/srumhlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 |
4 | typedef struct _SRU_STATS_RECORD {
5 | PSID sid;
6 | }SRU_STATS_RECORD,*PSRU_STATS_RECORD;
7 | typedef struct _SRU_STATS_RECORD_SET {
8 | DWORD dword1;
9 | SRU_STATS_RECORD record;
10 |
11 | }SRU_STATS_RECORD_SET,*PSRU_STATS_RECORD_SET;
12 |
13 |
14 | typedef VOID (WINAPI *fnSruProviderCallback)(void* lpPararm, _SRU_STATS_RECORD_SET *pRecordSet);
15 | typedef ULONG(WINAPI *fnSruRegisterRealTimeStats)(int dataId, SYSTEMTIME* time, BOOL isAdmin, void* lpPararm, fnSruProviderCallback callback, DWORD *, DWORD *);
16 |
17 | class SrumProviderHandler {
18 |
19 | public:
20 | static void __stdcall SrumNetworkProviderCallback(void*lpPararm,_SRU_STATS_RECORD_SET *pRecordSet);
21 | static void __stdcall SrumCpuProviderCallback(void*lpPararm,_SRU_STATS_RECORD_SET *pRecordSet);
22 | static void __stdcall SrumNotificationsProviderCallback(void*lpPararm, _SRU_STATS_RECORD_SET *pRecordSet);
23 | static void __stdcall SrumNetworkProviderGlobalDataCallback(void*lpPararm, _SRU_STATS_RECORD_SET *pRecordSet);
24 |
25 | };
26 |
27 |
--------------------------------------------------------------------------------
/TaskMgrCore/starthlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/starthlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/starthlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/starthlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/stdafx.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/stdafx.h
--------------------------------------------------------------------------------
/TaskMgrCore/suact.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/suact.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/suact.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/suact.h
--------------------------------------------------------------------------------
/TaskMgrCore/syshlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/syshlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/syshlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/syshlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/sysstructs.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include "..\PCMgrKernel32\istructs.h"
--------------------------------------------------------------------------------
/TaskMgrCore/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/targetver.h
--------------------------------------------------------------------------------
/TaskMgrCore/thdhlp.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include "ntdef.h"
3 | #include "thdhlp.h"
4 | #include "prochlp.h"
5 | #include
6 |
7 | extern NtSuspendThreadFun NtSuspendThread;
8 | extern NtResumeThreadFun NtResumeThread;
9 | extern NtTerminateThreadFun NtTerminateThread;
10 | extern NtOpenThreadFun NtOpenThread;
11 | extern NtQueryInformationThreadFun NtQueryInformationThread;
12 | extern RtlNtStatusToDosErrorFun RtlNtStatusToDosError;
13 | extern RtlGetLastWin32ErrorFun RtlGetLastWin32Error;
14 | extern NtQuerySystemInformationFun NtQuerySystemInformation;
15 |
16 | M_API NTSTATUS MOpenThreadNt(DWORD dwId, PHANDLE pLandle, DWORD dwPId)
17 | {
18 | HANDLE hThread;
19 | OBJECT_ATTRIBUTES ObjectAttributes;
20 | CLIENT_ID ClientId;
21 |
22 | ObjectAttributes.Length = sizeof(OBJECT_ATTRIBUTES);
23 | ObjectAttributes.RootDirectory = NULL;
24 | ObjectAttributes.ObjectName = NULL;
25 | ObjectAttributes.Attributes = OBJ_KERNEL_HANDLE | OBJ_CASE_INSENSITIVE;
26 | ObjectAttributes.SecurityDescriptor = NULL;
27 | ObjectAttributes.SecurityQualityOfService = NULL;
28 |
29 | ClientId.UniqueThread = ((PVOID)(ULONG_PTR)dwId);
30 | ClientId.UniqueProcess = ((PVOID)(ULONG_PTR)dwPId);
31 |
32 | DWORD NtStatus = NtOpenThread(
33 | &hThread,
34 | THREAD_ALL_ACCESS,
35 | &ObjectAttributes,
36 | &ClientId);
37 |
38 | if (NtStatus == 0) {
39 | *pLandle = hThread;
40 | return 0;
41 | }
42 | else {
43 | return 0;
44 | }
45 | }
46 | M_API NTSTATUS MGetThreadBasicInformation(HANDLE ThreadHandle, PTHREAD_BASIC_INFORMATION BasicInformation)
47 | {
48 | return NtQueryInformationThread(
49 | ThreadHandle,
50 | ThreadBasicInformation,
51 | BasicInformation,
52 | sizeof(THREAD_BASIC_INFORMATION),
53 | NULL
54 | );
55 | }
56 | M_API NTSTATUS MGetThreadTeb(HANDLE hThread, PTEB*pPTeb) {
57 | THREAD_BASIC_INFORMATION tbi;
58 | NTSTATUS status = MGetThreadBasicInformation(hThread, &tbi);
59 | if (NT_SUCCESS(status))
60 | if (pPTeb)*pPTeb = tbi.TebBaseAddress;
61 | return status;
62 | }
63 | M_API NTSTATUS MGetThreadWin32StartAddress(HANDLE hThread, PVOID * outStartAddress) {
64 | PVOID startaddr = 0;
65 | NTSTATUS status = NtQueryInformationThread(hThread, ThreadQuerySetWin32StartAddress, &startaddr, sizeof(startaddr), NULL);
66 | if (NT_SUCCESS(status))
67 | if (outStartAddress)*outStartAddress = startaddr;
68 | return status;
69 | }
70 |
71 | M_API NTSTATUS MTerminateThreadNt(HANDLE handle)
72 | {
73 | return NtTerminateThread(handle, 0);
74 | }
75 | M_API NTSTATUS MResumeThreadNt(HANDLE handle)
76 | {
77 | ULONG count = 0;
78 | return NtResumeThread(handle, &count);
79 | }
80 | M_API NTSTATUS MSuspendThreadNt(HANDLE handle)
81 | {
82 | ULONG count = 0;
83 | return NtSuspendThread(handle, &count);
84 | }
85 |
86 |
87 |
--------------------------------------------------------------------------------
/TaskMgrCore/thdhlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/thdhlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/userhlp.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/userhlp.h
--------------------------------------------------------------------------------
/TaskMgrCore/uwphlp.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/uwphlp.cpp
--------------------------------------------------------------------------------
/TaskMgrCore/uwphlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 | #include
5 |
6 | typedef struct tag_UWP_PACKAGE_APP_INFO
7 | {
8 | WCHAR DisplayName[128];
9 | WCHAR AppUserModelId[128];
10 | }UWP_PACKAGE_APP_INFO,*PUWP_PACKAGE_APP_INFO;
11 | typedef struct tag_UWP_PACKAGE_INFO
12 | {
13 | WCHAR AppUserModelId[128];
14 | WCHAR AppPackageFamilyName[128];
15 | WCHAR AppPackageFullName[128];
16 |
17 | WCHAR InstallPath[MAX_PATH];
18 | WCHAR IconPath[MAX_PATH];
19 | WCHAR DisplayName[128];
20 | WCHAR PublisherDisplayName[128];
21 |
22 | UINT ApplicationsCount;
23 | tag_UWP_PACKAGE_APP_INFO Applications[16];
24 | }UWP_PACKAGE_INFO,*PUWP_PACKAGE_INFO;
25 | typedef struct tag_UWP_PACKAGE_INFO_EX
26 | {
27 | WCHAR AppUserModelId[128];
28 | WCHAR AppPackageFamilyName[128];
29 | WCHAR AppPackageFullName[128];
30 |
31 | WCHAR InstallPath[MAX_PATH];
32 | WCHAR IconPath[MAX_PATH];
33 | WCHAR DisplayName[128];
34 |
35 | int IconBackgroundColor;
36 | }UWP_PACKAGE_INFO_EX, *PUWP_PACKAGE_INFO_EX;
37 |
38 | #define DEFPROPERTYKEY(name, g1, g2, g3, b1,b2,b3,b4,b5,b6,b7,b8, pid) const PROPERTYKEY name = { { (long)g1, (short)g2, (short)g3, { b1,b2,b3,b4,b5,b6,b7,b8 } }, pid }
39 |
40 |
41 | M_CAPI(BOOL) M_UWP_IsInited();
42 | M_CAPI(BOOL) M_UWP_Init();
43 | M_CAPI(BOOL) M_UWP_UnInit();
44 | M_CAPI(BOOL) M_UWP_RunUWPApp(LPWSTR strAppUserModelId, PDWORD pdwProcessId);
45 | M_CAPI(BOOL) M_UWP_KillUWPApplication(LPWSTR packageName);
46 | M_CAPI(BOOL) M_UWP_UnInstallUWPApplication(LPWSTR packageName);
47 | M_CAPI(BOOL) M_UWP_EnumUWPApplications();
48 |
--------------------------------------------------------------------------------
/TaskMgrCore/vprocx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/TaskMgrCore/vprocx.h
--------------------------------------------------------------------------------
/TaskMgrCore/wlanhlp.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "stdafx.h"
3 | #include
4 |
5 | typedef struct _WlanInterface {
6 | GUID InterfaceGuid;
7 | WCHAR strInterfaceDescription[WLAN_MAX_NAME_LENGTH];
8 | DOT11_SSID dot11Ssid;
9 | ULONG uLinkQuality;
10 | DOT11_PHY_TYPE dot11BssPhyType;
11 | }WlanInterface,*PWlanInterface;
12 |
13 | typedef DWORD (WINAPI*fnWlanOpenHandle)(_In_ DWORD dwClientVersion, _Reserved_ PVOID pReserved, _Out_ PDWORD pdwNegotiatedVersion, _Out_ PHANDLE phClientHandle);
14 | typedef DWORD (WINAPI*fnWlanCloseHandle)( _In_ HANDLE hClientHandle, _Reserved_ PVOID pReserved);
15 | typedef DWORD (WINAPI*fnWlanEnumInterfaces)(_In_ HANDLE hClientHandle, _Reserved_ PVOID pReserved, _Outptr_ PWLAN_INTERFACE_INFO_LIST *ppInterfaceList);
16 | typedef DWORD (WINAPI*fnWlanGetNetworkBssList)(_In_ HANDLE hClientHandle, _In_ CONST GUID *pInterfaceGuid, _In_opt_ CONST PDOT11_SSID pDot11Ssid, _In_ DOT11_BSS_TYPE dot11BssType, _In_ BOOL bSecurityEnabled, _Reserved_ PVOID pReserved, _Outptr_ PWLAN_BSS_LIST *ppWlanBssList);
17 | typedef VOID (WINAPI*fnWlanFreeMemory)(_In_ PVOID pMemory);
18 | typedef DWORD (WINAPI*fnWlanQueryInterface)(_In_ HANDLE hClientHandle, _In_ CONST GUID *pInterfaceGuid, _In_ WLAN_INTF_OPCODE OpCode, _Reserved_ PVOID pReserved, _Out_ PDWORD pdwDataSize, _Outptr_result_bytebuffer_(*pdwDataSize) PVOID *ppData, _Out_opt_ PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType);
19 |
20 | BOOL MWLAN_InitApis();
21 | VOID MWLAN_Destroy();
22 | VOID MWLAN_DestroyInterfaceCaches();
23 |
--------------------------------------------------------------------------------
/ThirdPart/AeroWizard/AeroWizard32.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/ThirdPart/AeroWizard/AeroWizard32.dll
--------------------------------------------------------------------------------
/ThirdPart/AeroWizard/AeroWizard64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/ThirdPart/AeroWizard/AeroWizard64.dll
--------------------------------------------------------------------------------
/ThirdPart/capstone/include/windowsce/intrin.h:
--------------------------------------------------------------------------------
1 |
2 | #if defined(_MSC_VER) && defined(_WIN32_WCE) && (_WIN32_WCE < 0x800) && !defined(__INTRIN_H_) && !defined(_INTRIN)
3 | #define _STDINT
4 |
5 | #ifdef _M_ARM
6 | #include
7 | #if (_WIN32_WCE >= 0x700) && defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
8 | #include
9 | #endif
10 | #endif // _M_ARM
11 |
12 | #endif
13 |
--------------------------------------------------------------------------------
/ThirdPart/capstone/lib/x64/capstone.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/ThirdPart/capstone/lib/x64/capstone.dll
--------------------------------------------------------------------------------
/ThirdPart/capstone/lib/x64/capstone_dll.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/ThirdPart/capstone/lib/x64/capstone_dll.lib
--------------------------------------------------------------------------------
/ThirdPart/capstone/lib/x86/capstone.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/ThirdPart/capstone/lib/x86/capstone.dll
--------------------------------------------------------------------------------
/ThirdPart/capstone/lib/x86/capstone_dll.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/ThirdPart/capstone/lib/x86/capstone_dll.lib
--------------------------------------------------------------------------------
/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image1.png
--------------------------------------------------------------------------------
/image10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image10.png
--------------------------------------------------------------------------------
/image11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image11.png
--------------------------------------------------------------------------------
/image2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image2.png
--------------------------------------------------------------------------------
/image3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image3.png
--------------------------------------------------------------------------------
/image4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image4.png
--------------------------------------------------------------------------------
/image5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image5.png
--------------------------------------------------------------------------------
/image6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image6.png
--------------------------------------------------------------------------------
/image7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image7.png
--------------------------------------------------------------------------------
/image8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image8.png
--------------------------------------------------------------------------------
/image9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/image9.png
--------------------------------------------------------------------------------
/pcmgr_cmd_ico_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgr_cmd_ico_256.png
--------------------------------------------------------------------------------
/pcmgr_cmd_ico_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgr_cmd_ico_32.png
--------------------------------------------------------------------------------
/pcmgr_cmd_ico_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgr_cmd_ico_64.png
--------------------------------------------------------------------------------
/pcmgr_update_ico_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgr_update_ico_256.png
--------------------------------------------------------------------------------
/pcmgr_update_ico_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgr_update_ico_32.png
--------------------------------------------------------------------------------
/pcmgrico_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgrico_256.png
--------------------------------------------------------------------------------
/pcmgrico_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imengyu/PCMgr/0d0918a26644706417b80f4ca82f9472d4c9728e/pcmgrico_32.png
--------------------------------------------------------------------------------