-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
662 lines (428 loc) · 23.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
<!DOCTYPE html>
<html lang="zh-CN,zh-HK,zh-TW,en,default">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="Linux, C++, 程序员,Computer, Blog, 技术">
<meta name="description" content="Jacksing's Blog">
<meta name="author" content="Jacksing">
<meta name="google-site-verification" content="_1pQ3xDBZ8vxFqIMe-h-vsRDCy5eQOXMYgdSoHHdSpM" />
<meta name="baidu-site-verification" content="code-lo2iVMbwIG" />
<title>
Jacksing
</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/Wzzzx/image@main/blog/rocket.svg">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/source/css/font-awesome.min.css">
<script id="hexo-configurations">
let KEEP = window.KEEP || {};
KEEP.hexo_config = {"hostname":"wzzzx.github.io","root":"/","language":["zh-CN","zh-HK","zh-TW","en","default"],"path":"search.xml"};
KEEP.theme_config = {"toc":{"enable":true,"number":true,"expand_all":true,"init_open":true},"style":{"primary_color":"#0066CC","avatar":"https://cdn.jsdelivr.net/gh/Wzzzx/image@main/blog/avator.jpg","favicon":"https://cdn.jsdelivr.net/gh/Wzzzx/image@main/blog/rocket.svg","article_img_align":"center","left_side_width":"260px","content_max_width":"920px","hover":{"shadow":true,"scale":false},"first_screen":{"enable":false,"background_img":"/images/bg.svg","description":"Keep writing and Keep loving."},"scroll":{"progress_bar":{"enable":true},"percent":{"enable":false}}},"local_search":{"enable":true,"preload":true},"code_copy":{"enable":true,"style":"default"},"pjax":{"enable":true},"lazyload":{"enable":true},"version":"3.4.3"};
KEEP.language_ago = {"second":"%s seconds ago","minute":"%s minutes ago","hour":"%s hours ago","day":"%s days ago","week":"%s weeks ago","month":"%s months ago","year":"%s years ago"};
</script>
<meta name="generator" content="Hexo 5.4.2"><link rel="alternate" href="/atom.xml" title="Jacksing's Blog" type="application/atom+xml">
</head>
<body>
<div class="progress-bar-container">
<span class="scroll-progress-bar"></span>
<span class="pjax-progress-bar"></span>
<span class="pjax-progress-icon">
<i class="fas fa-circle-notch fa-spin"></i>
</span>
</div>
<main class="page-container">
<div class="page-main-content">
<div class="page-main-content-top">
<header class="header-wrapper">
<div class="header-content">
<div class="left">
<a class="logo-image" href="/">
<img src="https://cdn.jsdelivr.net/gh/Wzzzx/image@main/blog/avator.jpg">
</a>
<a class="logo-title" href="/">
Jacksing
</a>
</div>
<div class="right">
<div class="pc">
<ul class="menu-list">
<li class="menu-item">
<a class="active"
href="/"
>
首页
</a>
</li>
<li class="menu-item">
<a class=""
href="/archives"
>
归档
</a>
</li>
<li class="menu-item">
<a class=""
href="/categories"
>
分类
</a>
</li>
<li class="menu-item">
<a class=""
href="/about"
>
关于
</a>
</li>
<li class="menu-item search search-popup-trigger">
<i class="fas fa-search"></i>
</li>
</ul>
</div>
<div class="mobile">
<div class="icon-item search search-popup-trigger"><i class="fas fa-search"></i></div>
<div class="icon-item menu-bar">
<div class="menu-bar-middle"></div>
</div>
</div>
</div>
</div>
<div class="header-drawer">
<ul class="drawer-menu-list">
<li class="drawer-menu-item flex-center">
<a class="active"
href="/">首页</a>
</li>
<li class="drawer-menu-item flex-center">
<a class=""
href="/archives">归档</a>
</li>
<li class="drawer-menu-item flex-center">
<a class=""
href="/categories">分类</a>
</li>
<li class="drawer-menu-item flex-center">
<a class=""
href="/about">关于</a>
</li>
</ul>
</div>
<div class="window-mask"></div>
</header>
</div>
<div class="page-main-content-middle">
<div class="main-content">
<div class="home-content-container fade-in-down-animation">
<ul class="home-article-list">
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/Windows/message-only-windows/">
Message-only windows
</a>
</h3>
<div class="home-article-content markdown-body">
<p>Message-Only Windows 是一个非常特殊的窗口类型,而且名字也具有很强的误导性。但是在了解了之后就会知道,怪不得这个窗口类型怎么好像没见到有人在用。</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Fri Apr 26 2024 13:48:27 GMT+0800">2024-04-26</span></span>
</div>
<a href="/Windows/message-only-windows/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/Windows/about-message-loop/">
关于消息循环的一点思考
</a>
</h3>
<div class="home-article-content markdown-body">
<p>最近仔细阅读了一下 Windows 的消息循环机制,发现可以基于这个机制实现一些有趣的功能。这篇文章就是对消息循环的一点思考。</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Wed Apr 24 2024 13:17:16 GMT+0800">2024-04-24</span></span>
</div>
<a href="/Windows/about-message-loop/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/Windows/system_screen_operation/">
系统息屏亮屏相关操作
</a>
</h3>
<div class="home-article-content markdown-body">
背景我们当前的设备有个比较奇葩的地方,就是不会无法响应 Windows 的息屏亮屏操作。所以软件上的解决方案是,需要去监听 Windows 的相关息屏亮屏消息,然后通过硬件暴露出来的接口告知硬件,硬件再进行相应的变更。
设置息屏设置息屏相对来说比较好...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Mon Apr 15 2024 12:39:09 GMT+0800">2024-04-15</span></span>
</div>
<a href="/Windows/system_screen_operation/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/Windows/handle_registry_monitor_message_lose/">
注册表监听避免消息丢失
</a>
</h3>
<div class="home-article-content markdown-body">
<p>对于注册表的变化监听,<code>Windows</code> 通过 <code>RegNotifyChangeKeyValue</code> 函数来实现。这个函数的原型如下所示:</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Mon Apr 08 2024 13:08:27 GMT+0800">2024-04-08</span></span>
</div>
<a href="/Windows/handle_registry_monitor_message_lose/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/C/the-safe-bool-idiom/">
对象如何正确地转化为布尔值
</a>
</h3>
<div class="home-article-content markdown-body">
<p>将对象转化为布尔值是一个非常常规的需求,在诸如 <code>if (expr) {}</code> 或 <code>while (expr) {}</code> 这样的语句中,都会要求对象能够隐式转化为布尔值。C++ 也提供了一系列的方式用于对象的隐式或显式类型转换。但是诸如转化为 int,都是一些比较简单的操作,唯独 bool 比较特殊。在 C++ 中,有太多的类型可以跟 bool 类型相互转换,比如 int, 指针,对象等等。这也带来了一个问题,哪种转换方式才是最好的,所带来的副作用的是最小的。这个问题也叫做安全布尔问题(Safe bool)。</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Dec 08 2022 23:20:56 GMT+0800">2022-12-08</span></span>
</div>
<a href="/C/the-safe-bool-idiom/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/OS/os_comp_daily_schedule/">
os-comp-记录
</a>
</h3>
<div class="home-article-content markdown-body">
<p>这一博文用于记录每日所学</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Oct 20 2022 00:50:16 GMT+0800">2022-10-20</span></span>
</div>
<a href="/OS/os_comp_daily_schedule/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/english/how-to-learn-english/">
如何学好英语
</a>
</h3>
<div class="home-article-content markdown-body">
<p>阅读完李笑来老师的<a class="link" target="_blank" rel="noopener" href="https://github.com/xiaolai/everyone-can-use-english" >人人都能用英语<i class="fas fa-external-link-alt"></i></a>后,感觉颇有收获,简单进行了一点摘要。其次,以前曾在 V 站看到了一篇学习英语的帖子,其中介绍的单词列表挺不错的,所以也一起放了进来。</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Sat Jul 30 2022 23:11:25 GMT+0800">2022-07-30</span></span>
</div>
<a href="/english/how-to-learn-english/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/encoding/chinese-encoding-history/">
中文编码变化史
</a>
</h3>
<div class="home-article-content markdown-body">
<p>因为匮乏一个系统性的介绍,并且现在大多数情况下都是使用 UTF-8 这样的 Unicode 编码,导致一直以来都是懵懵懂懂的应对中文编码,所以这篇博客会简要的介绍一下中文编码的发展历史,以便对中文编码的发展历史有基本的了解。</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Jun 09 2022 00:12:29 GMT+0800">2022-06-09</span></span>
</div>
<a href="/encoding/chinese-encoding-history/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/OS/Pushing-the-Limits-of-Windows-Physical-Memory/">
「翻译」Windows 的极限:物理内存
</a>
</h3>
<div class="home-article-content markdown-body">
翻译来源 Pushing the Limits of Windows: Physical Memory
Physical Memory(物理内存)One of the most fundamental resources on a compute...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Mon Feb 14 2022 22:10:38 GMT+0800">2022-02-14</span></span>
</div>
<a href="/OS/Pushing-the-Limits-of-Windows-Physical-Memory/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/6-S081/lab2-system-call/">
实验2:系统调用
</a>
</h3>
<div class="home-article-content markdown-body">
<p>上一节介绍了<a href="/6-S081/analyze-system-call/" title="系统调用">系统调用</a>的相关细节之后,实验二的代码实现起来其实并不难。实验二的代码可以在 <a class="link" target="_blank" rel="noopener" href="https://github.com/Wzzzx/6.S081-lab/tree/master/lab2" >lab2<i class="fas fa-external-link-alt"></i></a> 中查看到。</p>
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Sun Feb 13 2022 01:45:59 GMT+0800">2022-02-13</span></span>
</div>
<a href="/6-S081/lab2-system-call/">阅读全文 <i class="fas fa-angle-right"></i></a>
</div>
</li>
</ul>
<div class="home-paginator">
<div class="paginator">
<a class="next btn"
href="/page/2/"
>下一页</a>
</div>
</div>
</div>
</div>
</div>
<div class="page-main-content-bottom">
<footer class="footer">
<div class="info-container">
<div class="copyright-info info-item">
©
<span>
2021
</span>
-
2024 <i class="fas fa-rocket icon-animate"
aria-hidden="true"></i> <a href="/">
Jacksing
</a>
</div>
<script async data-pjax src = "//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>
<div class="website-count info-item">
<span id="busuanzi_container_site_uv">
访问人数 <span id="busuanzi_value_site_uv"></span> 
</span>
<span id="busuanzi_container_site_pv">
总访问量 <span id="busuanzi_value_site_pv"></span>
</span>
</div>
<div class="theme-info info-item">
由 <a target="_blank" href="https://hexo.io">Hexo</a> 驱动 | 主题 <a class="theme-version" target="_blank"
href="https://github.com/XPoet/hexo-theme-keep">Keep v3.4.3</a>
</div>
</div>
</footer>
</div>
</div>
<div class="right-bottom-side-tools">
<div class="side-tools-container">
<ul class="side-tools-list">
<li class="tools-item tool-font-adjust-plus flex-center"
style="display:none">
<i class="fas fa-search-plus"></i>
</li>
<li class="tools-item tool-font-adjust-minus flex-center"
style="display:none">
<i class="fas fa-search-minus"></i>
</li>
<li class="tools-item tool-expand-width flex-center"
style="">
<i class="fas fa-arrows-alt-h"></i>
</li>
<li class="tools-item tool-dark-light-toggle flex-center"
style="">
<i class="fas fa-moon"></i>
</li>
<!-- rss -->
<li class="tools-item rss flex-center">
<a class="flex-center" href="/atom.xml" target="_blank">
<i class="fas fa-rss"></i>
</a>
</li>
<li class="tools-item tool-scroll-to-top flex-center"
style="display:none">
<i class="fas fa-arrow-up"></i>
</li>
<li class="tools-item tool-scroll-to-bottom flex-center"
style="display:none">
<i class="fas fa-arrow-down"></i>
</li>
</ul>
<ul class="exposed-tools-list">
<li class="tools-item tool-toggle-show flex-center">
<i class="fas fa-cog fa-spin"></i>
</li>
</ul>
</div>
</div>
<div class="image-viewer-container">
<img src="">
</div>
<div class="search-pop-overlay">
<div class="popup search-popup">
<div class="search-header">
<span class="search-input-field-pre">
<i class="fas fa-keyboard"></i>
</span>
<div class="search-input-container">
<input autocomplete="off"
autocorrect="off"
autocapitalize="off"
placeholder="搜索..."
spellcheck="false"
type="search"
class="search-input"
>
</div>
<span class="popup-btn-close">
<i class="fas fa-times"></i>
</span>
</div>
<div id="search-result">
<div id="no-result">
<i class="fas fa-spinner fa-pulse fa-5x fa-fw"></i>
</div>
</div>
</div>
</div>
</main>
<script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/utils.js"></script><script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/main.js"></script><script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/header-shrink.js"></script><script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/back2top.js"></script><script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/dark-light-toggle.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/local-search.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/code-copy.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/lazyload.js"></script>
<div class="post-scripts pjax">
</div>
<script src="//cdn.jsdelivr.net/npm/[email protected]/source/js/libs/pjax.min.js"></script>
<script>
window.addEventListener('DOMContentLoaded', () => {
window.pjax = new Pjax({
selectors: [
'head title',
'.page-container',
'.pjax'
],
history: true,
debug: false,
cacheBust: false,
timeout: 0,
analytics: false,
currentUrlFullReload: false,
scrollRestoration: false,
// scrollTo: true,
});
document.addEventListener('pjax:send', () => {
KEEP.utils.pjaxProgressBarStart();
});
document.addEventListener('pjax:complete', () => {
KEEP.utils.pjaxProgressBarEnd();
window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script'));
KEEP.refresh();
});
});
</script>
</body>
</html>