资源简介

一共21个工具的源代码,包括流传最广的filemon和regmon。唯独缺少TcpView源代码。 要下载sysinternal工具,请到微软网站:http://technet.microsoft.com/sysinternals/

资源截图

代码片段和文件信息

#define _WIN32_WINNT 0x0400		// WM_MOUSEWHEEL support
#include 
#include 
#include 
#include 
#include 
#include 
#include  // ASSERT
#include  // bstr_t support
#include 
#include 


#include 
#include “AccessEnum.h“
#include “resource.h“
#include “resizer.h“
#include “listview.h“
#include “Enumeration.h“
#include “registry.h“


PSID DomainAdminSid();
bool IsDomainAdmin();
int GetAccountName( TCHAR * buf const TCHAR * host PSID sid );


const TCHAR ALL_DOMAINS[] = _T(““);

struct _globals {
HINSTANCE hInst;
HWND Abort; // ‘abort in progress‘ window
DWORD ShowAllFiles;
DWORD ShowLocalSystemAccount;
CShare * ShareList;
long ThreadCount;
HWND hMainDlg;
_bstr_t Exclude;
} g;

REG_SETTING RegSettings[] = {
{ _T(“ShowAllFiles“) SETTING_TYPE_DWORD sizeof g.ShowAllFiles  &g.ShowAllFiles 0 }
{ _T(“ShowLocalSystem“) SETTING_TYPE_DWORD sizeof g.ShowLocalSystemAccount  &g.ShowLocalSystemAccount 0 }
{ NULL SETTING_TYPE_DWORD 0 NULL 0 }
};




const DWORD CFileEnumeration::READ_MASK = GENERIC_ALL|GENERIC_READ|GENERIC_EXECUTE|READ_CONTROL|FILE_READ_ATTRIBUTES|FILE_READ_DATA|FILE_READ_EA;
const DWORD CFileEnumeration::WRITE_MASK = GENERIC_ALL|GENERIC_WRITE|DELETE|WRITE_DAC|WRITE_OWNER|FILE_APPEND_DATA|FILE_WRITE_ATTRIBUTES|FILE_WRITE_DATA|FILE_WRITE_EA;

const DWORD CRegEnumeration::READ_MASK = GENERIC_ALL|GENERIC_READ|GENERIC_EXECUTE|READ_CONTROL|KEY_QUERY_VALUE|KEY_ENUMERATE_SUB_KEYS|KEY_NOTIFY;
const DWORD CRegEnumeration::WRITE_MASK = GENERIC_ALL|GENERIC_WRITE|DELETE|WRITE_DAC|WRITE_OWNER|KEY_SET_VALUE|KEY_CREATE_SUB_KEY|KEY_CREATE_link;


// Everyone
static const SID SID_EVERYONE = { 1 1 SECURITY_WORLD_SID_AUTHORITY SECURITY_NULL_RID };
// creator owner
static const SID SID_CREATOR_OWNER = { 1 1 SECURITY_CREATOR_SID_AUTHORITY SECURITY_CREATOR_OWNER_RID };
static const SID SID_CREATOR_GROUP = { 1 1 SECURITY_CREATOR_SID_AUTHORITY SECURITY_CREATOR_GROUP_RID };
static const SID SID_CREATOR_OWNERSERVER = { 1 1 SECURITY_CREATOR_SID_AUTHORITY SECURITY_CREATOR_OWNER_SERVER_RID  };
static const SID SID_CREATOR_GROUPSERVER = { 1 1 SECURITY_CREATOR_SID_AUTHORITY SECURITY_CREATOR_GROUP_SERVER_RID };
// local system
static const SID SID_NTAUTHORITY_SYSTEM = { 1 1 SECURITY_NT_AUTHORITY SECURITY_LOCAL_SYSTEM_RID };
// alias sids
#if 0
static const SID SID_BUILTIN_ADMIN = { 1 1 SECURITY_BUILTIN_DOMAIN_RID DOMAIN_ALIAS_RID_ADMINS };
static const SID SID_BUILTIN_POWERUSERS = { 1 1 SECURITY_BUILTIN_DOMAIN_RID DOMAIN_ALIAS_RID_POWER_USERS };
static const SID SID_BUILTIN_GUESTS = { 1 1 SECURITY_BUILTIN_DOMAIN_RID DOMAIN_ALIAS_RID_GUESTS };
static const SID SID_BUILTIN_USERS = { 1 1 SECURITY_BUILTIN_DOMAIN_RID DOMAIN_ALIAS_RID_USERS };
#endif



static struct LISTVIEW_COL

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-08-23 12:37  Sysinternals\
     目录           0  2010-08-23 12:35  Sysinternals\AccessEnumSource\
     文件       56711  2005-09-08 13:22  Sysinternals\AccessEnumSource\AccessEnum.cpp
     文件        6078  2005-09-19 12:38  Sysinternals\AccessEnumSource\AccessEnum.dsp
     文件         543  2003-05-04 21:58  Sysinternals\AccessEnumSource\AccessEnum.dsw
     文件        2137  2003-09-10 14:23  Sysinternals\AccessEnumSource\AccessEnum.h
     文件       10623  2005-09-19 12:39  Sysinternals\AccessEnumSource\AccessEnum.rc
     文件        2424  2002-10-02 16:08  Sysinternals\AccessEnumSource\Admin.cpp
     文件        2238  2003-09-10 17:09  Sysinternals\AccessEnumSource\appicon.ico
     文件         326  2002-09-23 05:03  Sysinternals\AccessEnumSource\cursor1.cur
     文件        5511  2005-09-19 12:34  Sysinternals\AccessEnumSource\Enumeration.h
     文件        7005  2006-07-28 08:32  Sysinternals\AccessEnumSource\Eula.txt
     文件        6169  2005-09-08 16:36  Sysinternals\AccessEnumSource\file.cpp
     文件         326  2003-05-16 02:42  Sysinternals\AccessEnumSource\hand.cur
     文件         318  2005-07-14 16:34  Sysinternals\AccessEnumSource\ico00002.ico
     文件       10223  2005-10-08 19:58  Sysinternals\AccessEnumSource\ListView.cpp
     文件        1021  2005-07-14 16:39  Sysinternals\AccessEnumSource\ListView.h
     文件        8378  2005-07-13 14:40  Sysinternals\AccessEnumSource\Registry.h
     文件        2503  2003-07-22 18:44  Sysinternals\AccessEnumSource\RegJump.cpp
     目录           0  2010-08-23 12:33  Sysinternals\AccessEnumSource\res\
     文件       17105  2005-08-11 12:54  Sysinternals\AccessEnumSource\resizer.h
     文件        1700  2005-05-18 12:29  Sysinternals\AccessEnumSource\resource.h
     文件         666  2005-07-13 14:15  Sysinternals\AccessEnumSource\res\accessenum.exe.manifest
     文件         318  2003-07-23 14:48  Sysinternals\AccessEnumSource\res\binary.ico
     文件        3198  2002-08-05 18:20  Sysinternals\AccessEnumSource\res\bitmap2.bmp
     文件        3638  2003-05-12 17:35  Sysinternals\AccessEnumSource\res\dir.ico
     文件        1078  2002-06-13 16:28  Sysinternals\AccessEnumSource\res\dnarrow.ico
     文件        2734  2003-05-10 15:24  Sysinternals\AccessEnumSource\res\file.ico
     文件        2734  2002-06-13 16:28  Sysinternals\AccessEnumSource\res\filebad.ico
     文件        2734  2002-06-13 16:28  Sysinternals\AccessEnumSource\res\filegood.ico
     文件         318  2003-07-23 14:48  Sysinternals\AccessEnumSource\res\foldercl.ico
............此处省略515个文件信息

评论

共有 条评论