1 Star 0 Fork 1

陈奇/ComWeChatRobot

forked from Janisa/ComWeChatRobot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
3rdparty
CWeChatRobot
AddBrandContact.cpp
AddChatRoomMember.cpp
AddChatRoomMember.h
AddFriend.h
AddFriendByV3.cpp
AddFriendByWxid.cpp
CheckFriendStatus.cpp
CheckFriendStatus.h
DbBackup.cpp
DbBackup.h
DbExecuteSql.cpp
DbExecuteSql.h
DelChatRoomMember.cpp
DelChatRoomMember.h
DeleteUser.cpp
DeleteUser.h
EditRemark.cpp
EditRemark.h
ForwardMessage.cpp
ForwardMessage.h
FriendList.cpp
FriendList.h
GetA8Key.cpp
GetA8Key.h
GetChatRoomMemberNickname.cpp
GetChatRoomMemberNickname.h
GetChatRoomMembers.cpp
GetChatRoomMembers.h
GetDbHandles.cpp
GetDbHandles.h
GetHistoryPublicMsg.cpp
GetHistoryPublicMsg.h
GetMsgCDN.cpp
GetQrcodeImage.cpp
GetQrcodeImage.h
GetTransfer.cpp
GetTransfer.h
HookImageMessage.cpp
HookVoiceMessage.cpp
InjectDll.cpp
InjectDll.h
Logout.cpp
Logout.h
OpenBrowser.cpp
OpenBrowser.h
ReceiveMessage.cpp
ReceiveMessage.h
RobotEvent.cpp
RobotEvent.h
RobotEvent.rgs
SearchContact.h
SearchContactByCache.cpp
SearchContactByNet.cpp
SelfInfo.cpp
SelfInfo.h
SendAppMsg.cpp
SendAppMsg.h
SendArticle.cpp
SendArticle.h
SendAtText.cpp
SendAtText.h
SendCard.cpp
SendCard.h
SendEmotion.cpp
SendEmotion.h
SendFile.cpp
SendFile.h
SendImage.cpp
SendImage.h
SendText.cpp
SendText.h
SendXmlMsg.cpp
SendXmlMsg.h
SetChatRoomAnnouncement.cpp
SetChatRoomAnnouncement.h
SetChatRoomName.cpp
SetChatRoomName.h
SetChatRoomSelfNickname.cpp
SetChatRoomSelfNickname.h
VerifyFriendApply.cpp
VerifyFriendApply.h
WeChatRobot.cpp
WeChatRobot.h
WeChatRobot.rgs
WeChatRobotCOM.aps
WeChatRobotCOM.cpp
WeChatRobotCOM.idl
WeChatRobotCOM.rc
WeChatRobotCOM.rgs
WeChatRobotCOM.vcxproj
WeChatRobotCOM.vcxproj.filters
WeChatRobotCOM.vcxproj.user
WeChatRobotCOM_i.c
WeChatRobotCOM_i.h
WeChatRobotCOM_p.c
_IRobotEventEvents_CP.h
dlldata.c
framework.h
ntapi.cpp
ntapi.h
pch.cpp
pch.h
resource.h
robotdata.h
targetver.h
templatefunc.cpp
templatefunc.h
utils.h
wechatver.cpp
wechatver.h
xdlldata.c
xdlldata.h
DWeChatRobot
Python
old_projects
wxDriver
.clang-format
.gitignore
.pre-commit-config.yaml
ComWeChatRobot.sln
README.md
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ntapi.h 6.70 KB
一键复制 编辑 原始数据 按行查看 历史
Jack Li 提交于 3年前 . 提供多开管理Beta
#pragma once
#include<windows.h>
#ifndef _WIN64
typedef _Return_type_success_(return >= 0) LONG NTSTATUS;
typedef NTSTATUS* PNTSTATUS;
#endif // !_WIN64
#define STATUS_INFO_LENGTH_MISMATCH 0xc0000004
#define SystemHandleInformation 16
#define ObjectBasicInformation 0
#define ObjectNameInformation 1
#define ObjectTypeInformation 2
/*
* 函数指针、数据结构以及宏参考如下仓库
* https://github.com/winsiderss/systeminformer
*/
#define RtlPointerToOffset(Base, Pointer) ((ULONG)(((PCHAR)(Pointer)) - ((PCHAR)(Base))))
#define RtlOffsetToPointer(Base, Offset) ((PCHAR)(((PCHAR)(Base)) + ((ULONG_PTR)(Offset))))
#define NtCurrentProcess() ((HANDLE)(LONG_PTR)-1)
#ifndef OBJ_PROTECT_CLOSE
#define OBJ_PROTECT_CLOSE 0x00000001
#endif
#ifndef OBJ_INHERIT
#define OBJ_INHERIT 0x00000002
#endif
#ifndef OBJ_AUDIT_OBJECT_CLOSE
#define OBJ_AUDIT_OBJECT_CLOSE 0x00000004
#endif
#define InitializeObjectAttributes(p, n, a, r, s) { \
(p)->Length = sizeof(OBJECT_ATTRIBUTES); \
(p)->RootDirectory = r; \
(p)->Attributes = a; \
(p)->ObjectName = n; \
(p)->SecurityDescriptor = s; \
(p)->SecurityQualityOfService = NULL; \
}
typedef enum _SECTION_INHERIT
{
ViewShare = 1,
ViewUnmap = 2
} SECTION_INHERIT;
typedef enum _SECTION_INFORMATION_CLASS
{
SectionBasicInformation,
SectionImageInformation,
SectionRelocationInformation,
SectionOriginalBaseInformation,
SectionInternalImageInformation,
MaxSectionInfoClass
} SECTION_INFORMATION_CLASS;
typedef struct _UNICODE_STRING
{
USHORT Length;
USHORT MaximumLength;
_Field_size_bytes_part_(MaximumLength, Length) PWCH Buffer;
} UNICODE_STRING, * PUNICODE_STRING;
typedef struct _OBJECT_ATTRIBUTES
{
ULONG Length;
HANDLE RootDirectory;
PUNICODE_STRING ObjectName;
ULONG Attributes;
PVOID SecurityDescriptor;
PVOID SecurityQualityOfService;
} OBJECT_ATTRIBUTES, * POBJECT_ATTRIBUTES;
typedef struct _SECTION_IMAGE_INFORMATION
{
PVOID TransferAddress;
ULONG ZeroBits;
SIZE_T MaximumStackSize;
SIZE_T CommittedStackSize;
ULONG SubSystemType;
union
{
struct
{
USHORT SubSystemMinorVersion;
USHORT SubSystemMajorVersion;
};
ULONG SubSystemVersion;
};
union
{
struct
{
USHORT MajorOperatingSystemVersion;
USHORT MinorOperatingSystemVersion;
};
ULONG OperatingSystemVersion;
};
USHORT ImageCharacteristics;
USHORT DllCharacteristics;
USHORT Machine;
BOOLEAN ImageContainsCode;
union
{
UCHAR ImageFlags;
struct
{
UCHAR ComPlusNativeReady : 1;
UCHAR ComPlusILOnly : 1;
UCHAR ImageDynamicallyRelocated : 1;
UCHAR ImageMappedFlat : 1;
UCHAR BaseBelow4gb : 1;
UCHAR ComPlusPrefer32bit : 1;
UCHAR Reserved : 2;
};
};
ULONG LoaderFlags;
ULONG ImageFileSize;
ULONG CheckSum;
} SECTION_IMAGE_INFORMATION, * PSECTION_IMAGE_INFORMATION;
typedef struct _SYSTEM_HANDLE
{
ULONG ProcessId;
BYTE ObjectTypeNumber;
BYTE Flags;
USHORT Handle;
PVOID Object;
ACCESS_MASK GrantedAccess;
} SYSTEM_HANDLE, * PSYSTEM_HANDLE;
typedef struct _SYSTEM_HANDLE_INFORMATION
{
ULONG HandleCount;
SYSTEM_HANDLE Handles[1];
} SYSTEM_HANDLE_INFORMATION, * PSYSTEM_HANDLE_INFORMATION;
typedef enum _POOL_TYPE
{
NonPagedPool,
PagedPool,
NonPagedPoolMustSucceed,
DontUseThisType,
NonPagedPoolCacheAligned,
PagedPoolCacheAligned,
NonPagedPoolCacheAlignedMustS
} POOL_TYPE, * PPOOL_TYPE;
typedef struct _OBJECT_TYPE_INFORMATION
{
UNICODE_STRING Name;
ULONG TotalNumberOfObjects;
ULONG TotalNumberOfHandles;
ULONG TotalPagedPoolUsage;
ULONG TotalNonPagedPoolUsage;
ULONG TotalNamePoolUsage;
ULONG TotalHandleTableUsage;
ULONG HighWaterNumberOfObjects;
ULONG HighWaterNumberOfHandles;
ULONG HighWaterPagedPoolUsage;
ULONG HighWaterNonPagedPoolUsage;
ULONG HighWaterNamePoolUsage;
ULONG HighWaterHandleTableUsage;
ULONG InvalidAttributes;
GENERIC_MAPPING GenericMapping;
ULONG ValidAccess;
BOOLEAN SecurityRequired;
BOOLEAN MaintainHandleCount;
USHORT MaintainTypeList;
POOL_TYPE PoolType;
ULONG PagedPoolUsage;
ULONG NonPagedPoolUsage;
} OBJECT_TYPE_INFORMATION, * POBJECT_TYPE_INFORMATION;
typedef
NTSYSCALLAPI
PIMAGE_NT_HEADERS
(NTAPI*
pRtlImageNtHeader)(
_In_ PVOID BaseOfImage
);
typedef
NTSYSCALLAPI
PVOID
(NTAPI*
pRtlImageDirectoryEntryToData)(
_In_ PVOID BaseOfImage,
_In_ BOOLEAN MappedAsImage,
_In_ USHORT DirectoryEntry,
_Out_ PULONG Size
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pZwOpenSection)(
_Out_ PHANDLE SectionHandle,
_In_ ACCESS_MASK DesiredAccess,
_In_ POBJECT_ATTRIBUTES ObjectAttributes
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pZwQuerySection)(
_In_ HANDLE SectionHandle,
_In_ SECTION_INFORMATION_CLASS SectionInformationClass,
_Out_writes_bytes_(SectionInformationLength) PVOID SectionInformation,
_In_ SIZE_T SectionInformationLength,
_Out_opt_ PSIZE_T ReturnLength
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pZwMapViewOfSection)(
_In_ HANDLE SectionHandle,
_In_ HANDLE ProcessHandle,
_Inout_ _At_(*BaseAddress, _Readable_bytes_(*ViewSize) _Writable_bytes_(*ViewSize) _Post_readable_byte_size_(*ViewSize)) PVOID* BaseAddress,
_In_ ULONG_PTR ZeroBits,
_In_ SIZE_T CommitSize,
_Inout_opt_ PLARGE_INTEGER SectionOffset,
_Inout_ PSIZE_T ViewSize,
_In_ SECTION_INHERIT InheritDisposition,
_In_ ULONG AllocationType,
_In_ ULONG Win32Protect
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pZwUnmapViewOfSection)(
_In_ HANDLE ProcessHandle,
_In_opt_ PVOID BaseAddress
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pNtClose)(
_In_ _Post_ptr_invalid_ HANDLE Handle
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pNtQuerySystemInformation)(
ULONG SystemInformationClass,
PVOID SystemInformation,
ULONG SystemInformationLength,
PULONG ReturnLength
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pNtDuplicateObject)(
HANDLE SourceProcessHandle,
HANDLE SourceHandle,
HANDLE TargetProcessHandle,
PHANDLE TargetHandle,
ACCESS_MASK DesiredAccess,
ULONG Attributes,
ULONG Options
);
typedef
NTSYSCALLAPI
NTSTATUS
(NTAPI*
pNtQueryObject)(
HANDLE ObjectHandle,
ULONG ObjectInformationClass,
PVOID ObjectInformation,
ULONG ObjectInformationLength,
PULONG ReturnLength
);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/chen_q_i/ComWeChatRobot.git
git@gitee.com:chen_q_i/ComWeChatRobot.git
chen_q_i
ComWeChatRobot
ComWeChatRobot
master

搜索帮助