2018年10月8日

window API GetProcessId OpenProcess

摘要: 函数原型: 阅读全文

posted @ 2018-10-08 17:42 priarieNew 阅读(1670) 评论(0) 推荐(0) 编辑

Windowns API 第24篇 WTSEnumerateSessions 枚举session信息

摘要: 函数原型: BOOL WTSEnumerateSessions( HANDLE hServer, DWORD Reserved, DWORD Version, ... 阅读全文

posted @ 2018-10-08 17:31 priarieNew 阅读(1586) 评论(0) 推荐(0) 编辑

Windows API 23 篇 WTSQuerySessionInformation

摘要: 函数原型:BOOLWINAPIWTSQuerySessionInformationW( IN HANDLE hServer, IN DWORD SessionId, IN WTS_INFO_CLASS WTSInfoClass, __deref_out_bcount(*pBytesReturned) 阅读全文

posted @ 2018-10-08 17:29 priarieNew 阅读(1302) 评论(0) 推荐(0) 编辑

windows API 第22篇 WTSGetActiveConsoleSessionId

摘要: 函数原型:DWORD WTSGetActiveConsoleSessionId (VOID)先看一下原文介绍: The WTSGetActiveConsoleSessionId function retrieves the Terminal Services session currently at 阅读全文

posted @ 2018-10-08 17:28 priarieNew 阅读(4669) 评论(0) 推荐(0) 编辑

获取当前活动窗口后(前景窗口)可以做好多事情

摘要: 相关函数://获取当前活动窗口HWND GetForegroundWindow(VOID);//获取窗口名int GetWindowText( HWND hWnd, // handle to window or control LPTSTR lpString, // text buffer int 阅读全文

posted @ 2018-10-08 17:17 priarieNew 阅读(2117) 评论(0) 推荐(0) 编辑

Windows API 第21篇 DeleteVolumeMountPoint 删除挂载点

摘要: 函数原型:BOOL DeleteVolumeMountPoint( LPCTSTR lpszVolumeMountPoint // volume mount point path );参数:lpszVolumeMountPoint :挂载点路径,必须以反斜杠'\'结尾。 Remarks It is 阅读全文

posted @ 2018-10-08 17:09 priarieNew 阅读(1130) 评论(0) 推荐(0) 编辑

Windows API 第20篇 SetVolumeMountPoint 设置卷挂载点参数错误

摘要: 函数原型:BOOL SetVolumeMountPoint( IN LPCTSTR lpszVolumeMountPoint, // mount point IN LPCTSTR lpszVolumeName // volume to be mounted );参数:lpszVolumeMountP 阅读全文

posted @ 2018-10-08 17:07 priarieNew 阅读(1686) 评论(0) 推荐(0) 编辑

Windows API 第20篇 GetVolumeNameForVolumeMountPoint

摘要: 函数原型:BOOL GetVolumeNameForVolumeMountPoint( IN LPCTSTR lpszVolumeMountPoint, // volume mount point or directory OUT LPTSTR lpszVolumeName, // volume n 阅读全文

posted @ 2018-10-08 17:06 priarieNew 阅读(1423) 评论(0) 推荐(0) 编辑

Windows API 第19篇 FindFirstVolumeMountPoint FindNextVolumeMountPoint

摘要: 相关函数:HANDLE FindFirstVolumeMountPoint( LPTSTR lpszRootPathName, // volume name LPTSTR lpszVolumeMountPoint, // output buffer DWORD cchBufferLength // 阅读全文

posted @ 2018-10-08 17:02 priarieNew 阅读(810) 评论(0) 推荐(0) 编辑

windows API 第 18篇 FindFirstVolume FindNextVolume

摘要: 函数定义:Retrieves the name of a volume on a computer. FindFirstVolume is used to begin scanning the volumes of a computer. 我的输出结果是这样的: 分析: 可见这些也代表着卷标的唯一标 阅读全文

posted @ 2018-10-08 16:55 priarieNew 阅读(829) 评论(0) 推荐(0) 编辑

导航