随笔分类 -  Windows

[Qt] Release模式下产生调试信息
摘要:分两步,设置Qt配置文件,设置VS。 https://blog.csdn.net/itas109/article/details/83652387 F:\Qt\Qt5.7.1\5.7\msvc2015_64\mkspecs\common\msvc-desktop.conf https://blog. 阅读全文

posted @ 2019-07-01 10:08 liujx2019 阅读(2789) 评论(0) 推荐(0)

Querying for Event Information
摘要:https://docs.microsoft.com/zh-cn/windows/desktop/EventLog/querying-for-event-source-messages 阅读全文

posted @ 2019-06-20 13:23 liujx2019 阅读(146) 评论(0) 推荐(0)

通过注册表查询 .Net Framework 的版本
摘要:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full 注意:即使卸载 .Net Framework 这些注册表依然在。 所以,这种方法只能知道曾经装过哪些版本。却不能确保这些版本都还在,没被卸载。 https:// 阅读全文

posted @ 2019-06-19 10:49 liujx2019 阅读(1078) 评论(0) 推荐(0)

[Batch脚本] if else 的格式
摘要:必须写成一行 ) else (,否则报错。 阅读全文

posted @ 2019-06-18 17:18 liujx2019 阅读(708) 评论(0) 推荐(0)

Windows SDK 的 ctype.h 里有一些有用的函数,例如字符串的大小写转换
摘要:#define _tolower(c) ((c) - 'A' + 'a') #define _toupper(c) ((c) - 'a' + 'A') 阅读全文

posted @ 2019-05-23 10:01 liujx2019 阅读(210) 评论(0) 推荐(0)

Cannot find or open the PDB file
摘要:打开VS:工具 --> 选项 --> 调试-->符号接下来就是选择Microsoft,然后确认 阅读全文

posted @ 2019-05-22 13:43 liujx2019 阅读(539) 评论(2) 推荐(0)

[Windows API] Listing the Files in a Directory,可用来数文件夹下有多少个子文件(夹)
摘要:转载 阅读全文

posted @ 2019-05-16 11:19 liujx2019 阅读(269) 评论(0) 推荐(0)

[Batch 脚本] 批量生成文件夹
摘要:@echo off echo start set time=30000 echo %time% for /l %%i in (1,1, %time%) do ( echo %%i% md "x:\TestFolder"%%i% ) pause 阅读全文

posted @ 2019-05-06 17:31 liujx2019 阅读(227) 评论(0) 推荐(0)

[Windows] Socket Server Failed to bind, error 10048
摘要:Address already in use. Typically, only one usage of each socket address (protocol/IP address/port) is permitted. This error occurs if an application 阅读全文

posted @ 2019-05-05 09:49 liujx2019 阅读(1523) 评论(0) 推荐(0)

lodctr /R 失败的情况
摘要:I've resolved with the following steps: PS C:\Windows\system32> cmd Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights re 阅读全文

posted @ 2019-04-19 17:27 liujx2019 阅读(1984) 评论(0) 推荐(0)

获取 ProgramData 文件夹路径
摘要:char startUpDir[500]; if (SHGetFolderPathA( NULL, CSIDL_COMMON_STARTUP, NULL, 0, startUpDir) != S_OK) { printf("SHGetFolderPathA... 阅读全文

posted @ 2019-04-01 10:14 liujx2019 阅读(769) 评论(0) 推荐(0)

获取盘符列表
摘要:注意这个函数返回的字符串是按'\0'分割,所以必须先用别的分隔符替换之后再使用。否则只能得到第一个盘的盘符。 阅读全文

posted @ 2019-03-29 13:48 liujx2019 阅读(320) 评论(0) 推荐(0)

获取 ProgramData 之类的环境变量(文件夹路径)的值
摘要:Recognized Environment Variables https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables 阅读全文

posted @ 2019-03-29 13:46 liujx2019 阅读(1390) 评论(0) 推荐(0)

[Windows]允许未签名的驱动
摘要:https://social.technet.microsoft.com/forums/windows/en-US/1146e0f6-38f0-4ecd-8e6c-ad0c304c1a0d/bcdeditexe-set-testsigning-off https://answers.microsof 阅读全文

posted @ 2019-03-29 13:44 liujx2019 阅读(766) 评论(0) 推荐(0)

diskpart 分区,挂载,和移除
摘要:list disk select disk 1 clean Create partition primary size=102400 active format quick list volume assign letter=n create partition extended create partition logic format quick list volume assign mo... 阅读全文

posted @ 2019-03-20 11:19 liujx2019 阅读(1510) 评论(0) 推荐(0)

[Windows] Diskpart Scripts and Examples
摘要:https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart-scripts-and-examples 阅读全文

posted @ 2019-03-19 18:12 liujx2019 阅读(173) 评论(0) 推荐(0)

[Windows] 对于 mount 到文件夹路径下的分区,也可以使用 GetDiskFreeSpaceExA 函数
摘要:如题 阅读全文

posted @ 2019-03-19 18:11 liujx2019 阅读(322) 评论(0) 推荐(0)

[Windows] DiskPart commands
摘要:https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart 阅读全文

posted @ 2019-03-19 18:10 liujx2019 阅读(137) 评论(0) 推荐(0)

[Windows] 如何用编程的方式格式化硬盘
摘要:If memory serves, you're looking for SHFormatDrive(). Use the Format method of the Win32_Volume class. Details here. If memory serves, you're looking 阅读全文

posted @ 2019-03-19 18:06 liujx2019 阅读(406) 评论(0) 推荐(0)

Windows API Index
摘要:https://docs.microsoft.com/en-us/windows/desktop/apiindex/windows-api-list 阅读全文

posted @ 2019-03-19 13:13 liujx2019 阅读(231) 评论(0) 推荐(0)

导航