上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页
摘要: #include <windows.h> #include <shobjidl_core.h> #include <windowsx.h> #include <shlobj_core.h> #pragma comment(lib,"Shell32.lib") #define MAX_LOADSTRI 阅读全文
posted @ 2020-09-10 10:16 strive-sun 阅读(311) 评论(0) 推荐(0)
摘要: RegisterRawInputDevices 可以注册鼠标或者键盘等输入的信息,然后GetRawInputData可以获取传来的WM_INPUT消息中的输入信息。 代码参考: #include <windows.h> #include <iostream> using namespace std; 阅读全文
posted @ 2020-09-08 16:56 strive-sun 阅读(2285) 评论(0) 推荐(0)
摘要: 微软文档介绍说, 安全日志在其他两个重要方面与其他日志不同。首先,在默认配置中,它受到强大的访问控制列表(ACL)和特权检查的保护,这将可以读取其内容的个人的范围限制为本地系统,管理员和安全特权的持有者。其次,也是最重要的一点,只允许一个实体(本地安全机构(LSA))写入安全日志。这实际上意味着,每 阅读全文
posted @ 2020-09-08 16:42 strive-sun 阅读(974) 评论(0) 推荐(0)
摘要: 原话: [此功能已过时,仅支持与16位Windows向后兼容。对于32位Windows应用程序,不必释放使用LoadResource加载的资源。如果在32或64位Windows系统上使用,此函数将返回FALSE。 解释: 特定于资源的专用功能,例如LoadBitmap()将实际资源“后处理”为可用的 阅读全文
posted @ 2020-09-08 09:41 strive-sun 阅读(444) 评论(0) 推荐(0)
摘要: 任务:创建一个进程,并在进程内创建一个文本,再创建另一个进程来监控第一个进程内的文本变化 //Process 1 #include <windows.h> #include <iostream> int wmain(int argc, wchar_t* argv[]) { std::string b 阅读全文
posted @ 2020-08-28 15:06 strive-sun 阅读(502) 评论(0) 推荐(0)
摘要: 对好几个月之前看的链表进行了复习。 还是创建头结点,然后依次插入结点。 个人感觉最重要的是对指针/地址的掌握。 只有知道地址的概念,链表的问题也就迎刃而解。 #include <iostream> using namespace std; struct List { int data; List* 阅读全文
posted @ 2020-08-25 17:32 strive-sun 阅读(171) 评论(0) 推荐(0)
摘要: 可以使用LookupAccountNameA获取sid。 LookupAccountName函数接受系统名称和帐户作为输入。它检索该帐户的安全标识符(SID)以及在其上找到该帐户的域的名称。 使用此api无需在LocalSystem帐户的上下文中运行。 代码示例:(C ++) #include <W 阅读全文
posted @ 2020-08-21 16:03 strive-sun 阅读(1732) 评论(0) 推荐(0)
摘要: /* 桶排序 */ #include <iostream> #include <algorithm> using namespace std; int a, m, n[1000] = { 0 }; int main() { cin >> m; for (int i = 0; i < m; i++) 阅读全文
posted @ 2020-08-19 11:19 strive-sun 阅读(375) 评论(0) 推荐(0)
摘要: #define UNICODE #define _UNICODE #include <tchar.h> #include <windows.h> #include <windowsx.h> #include <commctrl.h> #include <richedit.h> // Code::Bl 阅读全文
posted @ 2020-08-11 09:58 strive-sun 阅读(385) 评论(0) 推荐(0)
摘要: 看到网上一些资料的案例不全,所以自己开个来复习。 O(1)<O(log2n)<O(n)<O(nlog2n)<O(n^2)<O(n^3)<…<O(2^n)<O(n!) O(1) int a = 1, b = 3, c = 3; O(log2n) int i = 1; while(i<=n) { i*= 阅读全文
posted @ 2020-08-05 15:55 strive-sun 阅读(981) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页