『windows』
fallenink
唯有痛苦,才有快乐。
展开
-
『windows』为鼠标右键添加MS-DOS快捷方式
原文地址:为鼠标右键添加MS-DOS快捷方式在文件夹上可直接打开文件夹,在文件上打开所在文件夹 Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT/Folder/shell/MS-DOS]@="MS-DOS方式打开"[HKEY_CLASSES_ROOT/Folder/shell/MS-转载 2013-09-12 11:39:57 · 1512 阅读 · 0 评论 -
『windows』文件路径,字符串相关API
原文地址:文件路径,字符串相关API需要头文件:shlwapi.h其中有一些函数功能存在重复,我在认为比较常用的的函数上加红。BOOL PathFileExists(LPCTSTR lpszPath)功能:检查文件/路径是否存在LPTSTR PathFindFileName(LPCTSTR pPath)功能:获得路径中的文件名例如: PathFi转载 2013-09-13 14:19:06 · 1228 阅读 · 0 评论 -
『windows』用C/C++编写window服务
原文地址(可能并非原作者):用C/C++编写window服务摘要 Windows 服务被设计用于需要在后台运行的应用程序以及实现没有用户交互的任务。为了学习这种控制台应用程序的基础知识,C(不是C++)是最佳选择。本文将建立并实现一个简单的服务程序,其功能是查询系统中可用物理内存数量,然后将结果写入一个文本文件。最后,你可以用所学知识编写自己的 Windows 服务。转载 2013-10-14 10:48:58 · 1144 阅读 · 0 评论 -
『windows』使用命令安装和卸载windows服务
原文地址:使用命令安装和卸载windows服务安装服务:InstallUtil.exe 服务名卸载服务:InstallUtil.exe 服务名 /u 或者 服务名 -uninstall启动服务: net start 服务名停止服务: net stop 服务名-----------------------------------------------转载 2013-10-14 11:28:06 · 1612 阅读 · 0 评论 -
『windows』SendInput函数
(模拟按键输入)例子:#include //...INPUT in[6] = {0}; // user32.dll in[0].type = INPUT_KEYBOARD; in[1].type = INPUT_KEYBOARD; in[2].type = INPUT_KEYBOARD; in[3].type = INPUT_KEYBOARD;原创 2013-10-17 11:39:13 · 3453 阅读 · 0 评论 -
『windows』WM_HOTKEY 热键
1. WM_HOTKEYThis message is posted when the user presses a hot key registered by the RegisterHotKey function. The message is placed at the top of the message queue associated with the thread tha原创 2013-10-17 16:26:13 · 5258 阅读 · 0 评论 -
『windows』定时器的使用
Windows系统三种定时器的分析转载 2013-11-13 16:57:04 · 882 阅读 · 0 评论 -
『windows』MSVC下的一些记录
1. 如何隐藏win32控制台应用程序的窗口#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )2.转载 2013-05-26 19:23:35 · 675 阅读 · 0 评论 -
『windows』获得MAC地址的C语言实现
原文地址:获得MAC地址的C语言实现#include #include #include #include #include #include #pragma comment(lib,"ws2_32.lib")#pragma comment(lib,"netapi32.lib")void CheckIP(void){WSADATA wsaData;char nam转载 2013-12-02 16:12:27 · 2647 阅读 · 0 评论