随笔分类 -  Windows

Windows 的 /dev/null
摘要:命令行 type c:\autoexec.bat > NUL Powershell echo 1 > $null 阅读全文

posted @ 2020-07-08 14:13 liujx2019 阅读(1378) 评论(0) 推荐(0)

Windows 系统常见错误代码,例如 c0000005
摘要:0000 操作已成功完成。0001 错误的函数。0002 系统找不到指定的文件。0003 系统找不到指定的路径。0004 系统无法打开文件。0005 拒绝访问。0006 句柄无效。0007 存储区控制块已损坏。0008 可用的存储区不足,无法执行该命令。0009 存储区控制块地址无效。0010 环境 阅读全文

posted @ 2020-07-08 14:09 liujx2019 阅读(1581) 评论(0) 推荐(0)

[Inno Setup] 区分Windows版本的一个例子
摘要:Windows 8.1 和 Windows Server 2012 R2, 大小版本号是相同的,都是6.3,如何区分 调用 GetWindowsVersionEx,获取 TWindowsVersion 结构体,其中 ProductType 是 VER_NT_SERVER 的是 Windows Ser 阅读全文

posted @ 2020-06-03 09:48 liujx2019 阅读(500) 评论(0) 推荐(0)

Python 安装第三方插件时,报错 unable to find vcvarsall.bat
摘要:一般Python3.5及以上版本,安装“Visual C++ Build Tools 2015”即可。 https://devblogs.microsoft.com/python/unable-to-find-vcvarsall-bat/ 重点是这一段 阅读全文

posted @ 2020-05-28 14:09 liujx2019 阅读(185) 评论(0) 推荐(0)

【Inno Setup】Windows 版本号
摘要:https://techthoughts.info/windows-version-numbers/ Windows Server Version Releases Server is now being released in two primary channels. You can read 阅读全文

posted @ 2020-05-13 13:53 liujx2019 阅读(447) 评论(0) 推荐(0)

VHD VHDX 区别
摘要:A Virtual hard disk is saved either with VHD or VHDX file extension. VHD is the older while VHDX is the newer file extension used by Microsoft Virtual 阅读全文

posted @ 2020-04-29 11:39 liujx2019 阅读(1716) 评论(0) 推荐(0)

C++ 0xC0000094: Integer division by zero
摘要:C++ 0xC0000094: Integer division by zero 阅读全文

posted @ 2020-04-23 14:04 liujx2019 阅读(1515) 评论(0) 推荐(0)

Windows API 中 OVERLAPPED 结构体 初始化
摘要:出处:https://github.com/microsoft/Windows-classic-samples/blob/1d363ff4bd17d8e20415b92e2ee989d615cc0d91/Samples/Hyper-V/Storage/cpp/MirrorVirtualDisk.cp 阅读全文

posted @ 2020-04-23 11:08 liujx2019 阅读(572) 评论(0) 推荐(0)

QString 转换成 wchar 的一个小陷阱
摘要:QString::toWCharArray(wchar_t * array) 其中 wchar_t * array 除了要分配内存之外,必须用 wmemset 初始化。 环境是 Visual Studio 2015. QT官方文档确实注明了:Note: This function does not 阅读全文

posted @ 2020-04-23 10:19 liujx2019 阅读(1244) 评论(0) 推荐(0)

Windows VHD Create, Attach, 获得Disk序号
摘要:// create_vhd.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <Windows.h> #include <Shlwapi.h> #include <in 阅读全文

posted @ 2020-04-22 10:51 liujx2019 阅读(846) 评论(0) 推荐(0)

Programmatically mount a Microsoft Virtual Hard Drive (VHD)
摘要:By Pixy https://stackoverflow.com/questions/24396644/programmatically-mount-a-microsoft-virtual-hard-drive-vhd This is an old question but it still ha 阅读全文

posted @ 2020-04-20 11:22 liujx2019 阅读(516) 评论(0) 推荐(0)

chcp437 转换英语,在西班牙语系统中无效
摘要:https://social.technet.microsoft.com/Forums/en-US/9c772011-5094-4df0-bf73-7140bf91673b/chcp-command-not-working-on-spanish-os 阅读全文

posted @ 2020-04-17 13:18 liujx2019 阅读(290) 评论(0) 推荐(0)

Windows 版本 Enterprise、Ultimate、Home、Professional
摘要:关于Windows 的安装光盘版本很多种,很多人不知道选择哪些。 Ultimate 旗舰版,VISTA开始有了这个级别,是最全最高级的,一般程序开发的电脑,玩游戏的电脑,建议用它,不过对配置稍有一些要求 Enterprise 企业版,主要是在企业方面有专有的优化和集成,主要用于服务器 Home 家庭 阅读全文

posted @ 2020-04-16 17:19 liujx2019 阅读(1076) 评论(0) 推荐(0)

微软的 Sysinternals 系统管理工具包,例如可找出自动启动的流氓软件
摘要:作者:Kenny链接:https://www.zhihu.com/question/52157612/answer/153886419来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 里面有几十个小工具,用来检测和管理Windows。免费可下载。我最常用的有两个: au 阅读全文

posted @ 2020-04-09 15:24 liujx2019 阅读(384) 评论(0) 推荐(0)

Windows 挂起进程
摘要:A thread can suspend and resume the execution of another thread. While a thread is suspended, it is not scheduled for time on the processor. If a thre 阅读全文

posted @ 2020-04-08 18:19 liujx2019 阅读(1002) 评论(0) 推荐(0)

Windows环境,获取当前线程的ID,GetCurrentThreadId
摘要:GetCurrentThreadId 打印格式:0x%08lx 头文件:processthreadsapi.h (include Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008 Windows Server 200 阅读全文

posted @ 2020-03-31 10:49 liujx2019 阅读(4090) 评论(0) 推荐(0)

获取 保存 系统信息 [Windows]
摘要:出处:https://www.technig.com/find-windows-10-system-information/ 在“运行”里,运行 msinfo32. System Information lists categories in the left pane and details ab 阅读全文

posted @ 2020-03-30 11:16 liujx2019 阅读(292) 评论(0) 推荐(0)

文件或文件夹改变后,发信号让系统刷新
摘要:以下方法都无法刷新 Navigation Pane /*notifychanges.c - Notify win32 subsystem and running programs of globalschanges such as system environment variables.Copyr 阅读全文

posted @ 2020-03-20 12:48 liujx2019 阅读(252) 评论(0) 推荐(0)

Winsock select server 与 client 示例代码
摘要:参考 https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancediomethod5.html Server // socket_select_server.cpp : Defines the 阅读全文

posted @ 2020-03-12 09:27 liujx2019 阅读(205) 评论(0) 推荐(0)

Windows 自动登录
摘要:https://serverfault.com/questions/840557/auto-login-a-user-at-boot-on-windows-server-2016 Use Sysinternals Autologon. It stores the credentials in the 阅读全文

posted @ 2020-01-15 10:16 liujx2019 阅读(563) 评论(0) 推荐(0)

导航