以标准用户身份运行命令createfile win32 [英] Run command createfile win32 as a standard user

查看:240
本文介绍了以标准用户身份运行命令createfile win32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要运行命令

hDevice := CreateFile( ''\\.\PhysicalDrive0:'', GENERIC_READ or GENERIC_WRITE ,
        FILE_SHARE_READ or FILE_SHARE_WRITE , nil, OPEN_EXISTING, 0, 0 );


在应用程序中以标准用户身份运行.此命令以管理员身份运行应用程序.

我尝试过的事情:


in the application as a standard user.this command run the application as a administrator.

What I have tried:

i need run command <pre>hDevice := CreateFile( ''\\.\PhysicalDrive0:'', GENERIC_READ or GENERIC_WRITE ,
        FILE_SHARE_READ or FILE_SHARE_WRITE , nil, OPEN_EXISTING, 0, 0 );


在应用程序中以标准用户身份运行.此命令以管理员身份运行应用程序.


in the application as a standard user.this command run the application as a administrator.

推荐答案

您不能.访问物理"驱动器需要管理员权限或具有SeBackupPrivilege的帐户,而普通用户帐户则没有此权限.

为什么?因为访问物理驱动器会带来巨大的安全风险.这涉及到每天用户的愚蠢,然后将恶意软件(也称为病毒)添加到该组合中.
You can''t. Access to the "physical" drive requires admin privileges or an account that has the SeBackupPrivilege, which normal user accounts do not have.

Why? Because access to the physical drive is a massive security risk. This about the stupidity of your every day user and then add malicious software, a.k.a: viruses, to that mix.


这篇关于以标准用户身份运行命令createfile win32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆