<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
  <title type="text">KomuraSoft LLC 博客</title>
  <subtitle type="text">KomuraSoft LLC 的 Windows / C# / COM 工程笔记。</subtitle>
  <id>https://comcomponent.com/zh-CN/feed.xml</id>
  <link rel="alternate" type="text/html" hreflang="zh-Hans" href="https://comcomponent.com/zh-CN/blog/"/>
  <link rel="alternate" type="text/html" hreflang="ja" href="https://comcomponent.com/blog/"/>
  <link rel="alternate" type="text/html" hreflang="en" href="https://comcomponent.com/en/blog/"/>
  <link rel="alternate" type="text/html" hreflang="ko" href="https://comcomponent.com/ko/blog/"/>
  <link rel="alternate" type="text/html" hreflang="zh-Hant" href="https://comcomponent.com/zh-TW/blog/"/>
  <link rel="self" type="application/atom+xml" href="https://comcomponent.com/zh-CN/feed.xml"/>
  <updated>2026-07-05T00:00:00+00:00</updated>
  <rights>© 2026 小村软件有限公司</rights>
  <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator>
  <author>
    <name>小村 豪</name>
    <uri>https://comcomponent.com/zh-CN/profile/go-komura/</uri>
  </author>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">伪随机数与真随机数的区别 - 如何区分的整理</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/04/17/000-pseudo-random-vs-true-random-how-to-distinguish/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/04/17/000-pseudo-random-vs-true-random-how-to-distinguish/"/>
    <published>2026-04-17T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">本文整理伪随机数与真随机数的区别，重点不在输出外观而在生成器结构：普通 PRNG 重视可重现性、CSPRNG / DRBG 主打不可预测性、NRBG 则以物理熵源为基础。文中说明种子（seed）与重新播种（reseed）、健康检测（health test）的作用，并给出信息安全、仿真、抽签等用途的选择指南，帮助读者用实务角度判断该用哪种随机数。</summary>
    
    
    
    <category term="伪随机数"/>
    
    <category term="真随机数"/>
    
    <category term="RNG"/>
    
    <category term="CSPRNG"/>
    
    <category term="信息安全"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">Windows的效率模式是什么 - Windows 11绿色叶子图标代表什么，以及如何关闭</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/04/13/002-windows-efficiency-mode-what-it-is-and-how-to-turn-off/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/04/13/002-windows-efficiency-mode-what-it-is-and-how-to-turn-off/"/>
    <published>2026-04-13T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">整理 Windows 11 任务管理器中绿色叶子图标与效率模式的真正含义，以及它如何通过降低优先级与 EcoQoS 平衡前台响应、电池与散热。同时说明逐一进程的关闭步骤、灰色选项的处理，以及和 Microsoft Edge 节能功能的差异，以及性能比较时必须对齐的条件。</summary>
    
    
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">Windows 什么时候需要管理员权限 - UAC、保护区域与设计上的辨别方式</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/23/001-windows-admin-privilege-when-required/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/23/001-windows-admin-privilege-when-required/"/>
    <published>2026-03-23T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">从边界与存储位置的角度，整理 Windows 什么时候真正需要管理员权限：UAC、保护区域、HKLM、服务、驱动、防火墙。同时说明 per-user 与 per-machine 的差异，以及把管理员处理拆成独立 EXE、服务或任务的设计取舍，帮读者判断该不该提升权限。</summary>
    
    
    
    <category term="Windows"/>
    
    <category term="UAC"/>
    
    <category term="安全"/>
    
    <category term="发布"/>
    
    <category term="Windows 开发"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">在 Windows 环境下减少 Codex 乱码事故的最佳实践 - 先把『指示方式』钉住，再谈环境整备</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/19/002-codex-windows-mojibake-prompting-best-practices/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/19/002-codex-windows-mojibake-prompting-best-practices/"/>
    <published>2026-03-19T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">本文整理在 Windows 上让 Codex 安全处理日文文件的指示原则：读文件前先确认 encoding 与 BOM，疑似乱码禁止臆测保存，现有文件维持原状，仅新建采用 UTF-8，并在写入后重新读取代表性日文行验证，把规则沉淀进 AGENTS.md 以减少事故。</summary>
    
    
    
    <category term="Codex"/>
    
    <category term="Windows"/>
    
    <category term="乱码"/>
    
    <category term="UTF-8"/>
    
    <category term="CP932"/>
    
    <category term="AI编码"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">Windows Forms、WPF、WinUI 该怎么选 - 新建项目、存量资产、发布、UI 表现力判断表</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/18/001-winforms-wpf-winui-decision-table/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/18/001-winforms-wpf-winui-decision-table/"/>
    <published>2026-03-18T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">从存量资产的规模、界面是表单为主还是需要表现力、现代 Windows UI 是否是产品刚需、发布与运维怎么落地这四个角度，整理 WinForms、WPF、WinUI 该怎么选的判断表，并提醒只想用 Windows App SDK 不必全面迁移到 WinUI。</summary>
    
    
    
    <category term="WinForms"/>
    
    <category term="WPF"/>
    
    <category term="WinUI"/>
    
    <category term="C#"/>
    
    <category term="Windows 开发"/>
    
    <category term="UI 设计"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">Windows应用的crash dump收集入门 - 先搞清楚 WER / ProcDump / WinDbg怎么分工</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/16/008-windows-app-crash-dump-collection-introduction/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/16/008-windows-app-crash-dump-collection-introduction/"/>
    <published>2026-03-16T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">本文整理在 Windows 应用追查难以复现的 crash 时，要先以 WER LocalDumps 按应用单独配置为起手式，再依现场状况追加 ProcDump，最后才考虑 MiniDumpWriteDump 自研收集的决策顺序。读完能理解 mini 与 full dump 的取舍、PDB 与保存运维要点，以及 WinDbg 最先要看的线索。</summary>
    
    
    
    <category term="Windows开发"/>
    
    <category term="故障排查"/>
    
    <category term="crash dump"/>
    
    <category term="WER"/>
    
    <category term="ProcDump"/>
    
    <category term="WinDbg"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">把 Windows 的「处理器计划」改成「后台服务」会发生什么 - 整理 quantum、优先级提升、P-Core／E-Core</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/16/003-windows-processor-scheduling-background-services-p-e-cores/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/16/003-windows-processor-scheduling-background-services-p-e-cores/"/>
    <published>2026-03-16T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">整理把 Windows 的「处理器计划」切到「后台服务」时，到底改变的是哪一层；从 quantum、前台偏好、优先级提升，一路接到 Windows 11 hybrid CPU 上 QoS 与 P-Core／E-Core 的选择，并区分什么情况真的有效、什么情况其实是 DPC、驱动、EcoQoS 等别的问题。</summary>
    
    
    
    <category term="Windows"/>
    
    <category term="性能调优"/>
    
    <category term="调度"/>
    
    <category term="音频"/>
    
    <category term="CPU"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">Windows 应用程序不要把敏感信息以明文存进配置文件的最佳实践</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/16/000-windows-app-secret-storage-best-practices-dpapi/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/16/000-windows-app-secret-storage-best-practices-dpapi/"/>
    <published>2026-03-16T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">本文整理 Windows 桌面应用保存连接凭证或 API Token 时的实务做法，说明为什么 DPAPI 与 ProtectedData 比明文或自制加密更能切断「文件外泄即等于敏感信息外泄」这条链条，并对比 CurrentUser 与 LocalMachine 的适用场景、优先顺序、日志泄漏风险，让读者带走一套可以立即落地的设计与检查清单。</summary>
    
    
    
    <category term="Windows 开发"/>
    
    <category term="信息安全"/>
    
    <category term="DPAPI"/>
    
    <category term="C# / .NET"/>
    
    <category term="Win32"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">将 .NET Framework 迁移到 .NET 之前该确认的事 - 动手前就决定成败的实战检查清单</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/15/003-dotnet-framework-to-dotnet-premigration-checklist/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/15/003-dotnet-framework-to-dotnet-premigration-checklist/"/>
    <published>2026-03-15T07:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">整理将 .NET Framework 业务应用程序迁移到现代 .NET 之前必须先盘点的论点。涵盖落地版本、Windows 专用前提的取舍、不再支持的 API、共享库切分方式、第三方组件、运维与 CI/CD，帮助在动手前厘清范围并降低迁移风险。</summary>
    
    
    
    <category term=".NET"/>
    
    <category term=".NET Framework"/>
    
    <category term="C#"/>
    
    <category term="现代化"/>
    
    <category term="Windows 开发"/>
    
    <category term="迁移"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">Windows 网卡高级设置详解 - Jumbo Packet、RSS、LSO、RSC、Flow Control、EEE、Wake on LAN 到底怎么设置</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/15/001-windows-nic-advanced-properties-guide/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/15/001-windows-nic-advanced-properties-guide/"/>
    <published>2026-03-15T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">本文以实务角度逐项拆解 Windows 网卡高级设置,从 Speed &amp; Duplex、Jumbo Packet 到 RSS、RSC、LSO、Interrupt Moderation、Flow Control、EEE 与 Wake on LAN,说明每项调整在吞吐量、延迟、CPU 与省电之间的取舍,并提供按症状排查的顺序与 PowerShell 操作备忘,帮助读者根据目的选对旋钮,避免适得其反。</summary>
    
    
    
    <category term="Windows"/>
    
    <category term="网络"/>
    
    <category term="网卡"/>
    
    <category term="Ethernet"/>
    
    <category term="性能调优"/>
    
    <category term="Windows 开发"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">.NET 的 Native AOT 是什么 - 先厘清与 JIT、ReadyToRun、trimming 的区别</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/13/001-dotnet-native-aot-what-is/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/13/001-dotnet-native-aot-what-is/"/>
    <published>2026-03-13T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">把 .NET 的 Native AOT 与 JIT、ReadyToRun、self-contained、single-file、trimming、source generator 放在一起厘清，并从启动、发布、依赖关系的角度整理它适合与不适合的场景，帮助读者判断该不该采用。</summary>
    
    
    
    <category term="C#"/>
    
    <category term=".NET"/>
    
    <category term="Native AOT"/>
    
    <category term="发布"/>
    
    <category term="设计"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">COM / ActiveX / OCX 是什么 - 区别与关系整理</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/13/000-what-is-com-activex-ocx/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/13/000-what-is-com-activex-ocx/"/>
    <published>2026-03-13T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">从实务角度厘清 COM、ActiveX、OCX 三者的区别与关系：COM 是 Windows 组件互操作的二进制契约底层，ActiveX 是以 COM 为基础的可嵌入控件语境，OCX 则是 ActiveX 控件常见的扩展名。读完就能分清机制、组件、文件这三层边界。</summary>
    
    
    
    <category term="COM"/>
    
    <category term="ActiveX"/>
    
    <category term="OCX"/>
    
    <category term="OLE"/>
    
    <category term="Windows 开发"/>
    
    <category term="遗留技术"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">PeriodicTimer / System.Threading.Timer / DispatcherTimer 怎么选 - 先理清 .NET 的定期执行</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/12/002-periodictimer-system-threading-timer-dispatchertimer-guide/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/12/002-periodictimer-system-threading-timer-dispatchertimer-guide/"/>
    <published>2026-03-12T02:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">整理 .NET 中 PeriodicTimer、System.Threading.Timer、DispatcherTimer 的区别与使用场景，从线程、async 流程、callback 重叠三个角度切入，帮助你在 worker、ThreadPool 后台处理及 WPF UI 更新中选对计时器，避免常见的反面模式与生命周期管理疏漏。</summary>
    
    
    
    <category term="C#"/>
    
    <category term=".NET"/>
    
    <category term="WPF"/>
    
    <category term="计时器"/>
    
    <category term="设计"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">工业相机控制应用运行一个月后突然崩溃时（下篇） - 什么是 Application Verifier 与异常路径测试基础设施的做法</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/03/11/003-application-verifier-abnormal-test-foundation-part2/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/03/11/003-application-verifier-abnormal-test-foundation-part2/"/>
    <published>2026-03-11T01:30:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">下篇整理 Application Verifier 是什么以及怎么把它编入 Windows 异常路径测试基础设施。用 Handles 抓 invalid handle、Low Resource Simulation 不用把机器榨干就触发资源不足，搭配 harness EXE 与自研日志，做出「坏了也能解释」的基础设施。</summary>
    
    
    
    <category term="Windows 开发"/>
    
    <category term="故障排查"/>
    
    <category term="工业相机"/>
    
    <category term="Application Verifier"/>
    
    <category term="异常路径测试"/>
    
    <category term="handle leak"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
  <entry xml:lang="zh-Hans-CN">
    <title type="text">COM STA/MTA 基础 - 线程模型与避免 Hang 的思路</title>
    <id>https://comcomponent.com/zh-CN/blog/2026/01/31/000-sta-mta-com-relationship/</id>
    <link rel="alternate" type="text/html" href="https://comcomponent.com/zh-CN/blog/2026/01/31/000-sta-mta-com-relationship/"/>
    <published>2026-01-31T01:00:00+00:00</published>
    <updated>2026-07-05T00:00:00+00:00</updated>
    
    <summary type="text">本文用流程图整理 COM 的 Apartment 模型（STA/MTA），说明 UI 线程为何采用 STA、跨 Apartment 调用如何通过 Proxy/Stub 进行 Marshaling，并通过具体伪代码演示没有消息循环的 STA 为何容易 Hang，以及同步调用中的 Callback 为何容易死锁，帮助读者掌握避免卡死的设计判断。</summary>
    
    
    
    <category term="COM"/>
    
    <category term="Windows 开发"/>
    
    <category term="STA"/>
    
    <category term="MTA"/>
    
    <category term="线程"/>
    
    
    <author>
      <name>小村 豪</name>
    </author>
  </entry>
  
</feed>
