• 大小: 1.71MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-01
  • 语言: 其他
  • 标签: sysinternals  source  code  

资源简介

大名鼎鼎的Sysinternal 工具套件的所有源代码,很强很好大!

资源截图

代码片段和文件信息

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

评论

共有 条评论