|
[讨论]2019年末.腾讯暴力裁员中年员工,摄像头监控+保安驱赶
这哥们不是早被锤烂了么?记得是工作时间和工作产出都严重不足,被辞退后仲裁两次都失败了,怎么又有人来炒这事了? |
|
[求助]微软已经停止了符号文件对 Windows XP 系统的支持?
微软已经从服务器上删除了这个pdb文件,我本地以前有缓存的,上传一份给你。 |
|
[讨论] 《网易裁员,让保安把身患绝症的我赶出公司。我在网易亲身经历的噩梦!》网易致歉
mb_qkotfqiz 不赶出去,留在把癌症感染给别人?没有利用价值的员工就应该这样对待,网易干的漂亮。很好奇得是什么样的砂貂才觉得癌症会传染给别人 看了网易的这个回应,感觉那篇文章写的内容都被证实了,这锅网易甩不掉了。 |
|
[求助]怎么得知windows update进行了版本更新
wx_幼儿园的王 逻辑磁盘管理器(LDM)分区就是判断这是动态磁盘吗我理解是的,动态磁盘之所以能动态就是依赖了LDM,基本磁盘如果也依赖了LDM就不“基本”了,所以可以通过它来判断。 |
|
[求助]怎么得知windows update进行了版本更新
网上搜了一下,没有可以直接判断的API接口,但可以通过IOCTL_DISK_GET_DRIVE_LAYOUT_EX间接获取到。 #include <tchar.h> #include <windows.h> #include <winioctl.h> const GUID PARTITION_LDM_DATA_GUID = { 0xAF9B60A0L, 0x1431, 0x4F62, 0xBC, 0x68, 0x33, 0x11, 0x71, 0x4A, 0x69, 0xAD }; bool IsDynamicPartition(PARTITION_INFORMATION_EX *pPartitionInfo) { if (pPartitionInfo->PartitionStyle == PARTITION_STYLE_MBR) { return pPartitionInfo->Mbr.PartitionType == PARTITION_LDM; } else if (pPartitionInfo->PartitionStyle == PARTITION_STYLE_GPT) { return IsEqualGUID(pPartitionInfo->Gpt.PartitionType, PARTITION_LDM_DATA_GUID); } return false; } bool IsDynamicDisk(int nDiskNo) { bool ret = false; TCHAR szDiskPath[MAX_PATH]; wsprintf(szDiskPath, TEXT("\\\\.\\PhysicalDrive%d"), nDiskNo); HANDLE hDisk = CreateFile(szDiskPath, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, 0, nullptr); if (hDisk != INVALID_HANDLE_VALUE) { DRIVE_LAYOUT_INFORMATION_EX *pInfo; DWORD dwBytesReturn = 0; int nPartitionCount = 64; DWORD dwSize = sizeof(DRIVE_LAYOUT_INFORMATION_EX) + nPartitionCount * sizeof(PARTITION_INFORMATION_EX); pInfo = (DRIVE_LAYOUT_INFORMATION_EX *) new BYTE[dwSize]; if (DeviceIoControl(hDisk, IOCTL_DISK_GET_DRIVE_LAYOUT_EX, nullptr, 0, (LPVOID)pInfo, dwSize, &dwBytesReturn, nullptr)) { for (DWORD i = 0; i < pInfo->PartitionCount; ++i) { if (IsDynamicPartition(pInfo->PartitionEntry + i)) { ret = true; break; } } } delete pInfo; CloseHandle(hDisk); } return ret; } int _tmain() { _tprintf(_T("PhysicalDrive0 is %s disk.\n"), IsDynamicDisk(0) ? _T("dynamic") : _T("basic")); return 0; }
最后于 2019-8-29 08:01
被cvrock编辑
,原因:
|
|
|
|
[公告]看雪新论坛上线,有反馈请跟此帖留言
1 配色实在太丑了。 2 “查看新帖”功能没有了么? |
|
[求助]minidump蓝屏原因,求分析:)
关键进程wininit.exe遇到0xc0000006错误导致崩溃,可能是硬盘有问题。 |
|
[讨论]有关com技术的疑问
COM在dll里实现是为了使用dll可以动态加载的特性,事实上它可以以任何语言实现。另外还得认真回想一下虚函数的实现,然后把COM技术内幕的第二和第三章认真读几遍,里面的例子自己敲下来多看一下。 |
|
[下载]Reflector.8.5.0.179
无法激活,需要联网验证。 |
|
[求助]win8下,高权限进程如何模仿普通权限执行exe?
这样试试? BOOL CreateProcessAsLogonUser( LPCTSTR lpApplicationName, LPTSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandle, DWORD dwCreateFlags, LPCTSTR lpCurrentDirectory, LPSTARTUPINFO lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation ) { BOOL bRet = FALSE; HANDLE hToken = NULL; HANDLE hDuplicatedToken = NULL; LPVOID lpEnvironment = NULL; __try { DWORD dwSessionId = WTSGetActiveConsoleSessionId(); if (dwSessionId == 0xffffffff) { return FALSE; } bRet = WTSQueryUserToken(dwSessionId, &hToken); if (!bRet) { __leave; } bRet = DuplicateTokenEx(hToken, MAXIMUM_ALLOWED, NULL, SecurityIdentification, TokenPrimary, &hDuplicatedToken); if (!bRet) { __leave; } bRet = CreateEnvironmentBlock(&lpEnvironment, hDuplicatedToken, FALSE); if (!bRet) { __leave; } bRet = CreateProcessAsUser( hDuplicatedToken, lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandle, dwCreateFlags | CREATE_UNICODE_ENVIRONMENT, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation ); if (!bRet) { __leave; } bRet = TRUE; } __finally { if (lpEnvironment) { DestroyEnvironmentBlock(lpEnvironment); lpEnvironment = NULL; } if (hDuplicatedToken) { CloseHandle(hDuplicatedToken); hDuplicatedToken = NULL; } if (hToken) { CloseHandle(hToken); hToken = NULL; } } return bRet; } |
|
[推荐]张银奎 格蠹汇编软件调试纵横谈[MP4]
赞,统计了下,缺少4、5、10、34这四章。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值