MMC的部门写作? [英] sector writing on MMC ?

查看:161
本文介绍了MMC的部门写作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在多媒体卡上的指定扇区上书写?

我必须绕过文件系统并直接写/读。

C#VS2003


谢谢

Kruno

解决方案




你不能使用.net这样做,这是肯定的。你将不得不进行调用。

即便如此,我也不记得任何win32函数可以让你指定你要写入的扇区




你的装配怎么样? :)

-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

佛罗里达州交通部


" Krunoslav Ostrouska" < KR ***************** @ tele-haase.at>在留言中写道

news:ex ************** @ TK2MSFTNGP05.phx.gbl ...

我怎么写在多媒体卡上指定扇区?
我必须绕过文件系统并直接写/读。
C#VS2003

谢谢
Kruno




" Krunoslav Ostrouska" < KR ***************** @ tele-haase.at>在消息中写道

news:ex ************** @ TK2MSFTNGP05.phx.gbl ...

|如何在多媒体卡上的指定扇区上书写?

|我必须绕过文件系统并直接写/读。

| C#VS2003

|

|谢谢

| Kruno

|

|

你不必绕过FS,你只需要打开物理设备
使用Win32的API

CreateFile通过PInvoke。成功的CreateFile返回一个文件句柄

,您可以使用

FileStream类在物理级别读取/写入设备。

物理设备看起来像\\.\PhysicalDrive< n> (硬盘以n =

0开头),您也可以使用它的mountpoint来引用物理设备

" \\。\ C:"或卷ID \\?\ Volume {guid} \


Willy。


Willy Denoyette [MVP]写道:


Hi Willy,

物理设备看起来像\\.\PhysicalDrive< n> (硬盘以n =
0开头),您也可以使用它的mountpoint
来指代物理设备。\\。\ C:"或卷ID \\?\ Volume#guid} \




这看起来很有趣。我可以通过谷歌了解更多关于

这些路径的信息?你知道他们怎么称呼这样的路径标识符吗?到目前为止,我无法获得



谢谢,

Max


How can i write on specifyed sector on a multimedia card?
I must go round file system and write/read direct.
C# VS2003

Thanks
Kruno

解决方案

Hi,

You cannot do this using .net , that''s for sure. you will have to p/invoke .
Even so I don''t remember any win32 function that let you especify the sector
you want to write into.

How is your assembly? :)
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Krunoslav Ostrouska" <kr*****************@tele-haase.at> wrote in message
news:ex**************@TK2MSFTNGP05.phx.gbl...

How can i write on specifyed sector on a multimedia card?
I must go round file system and write/read direct.
C# VS2003

Thanks
Kruno




"Krunoslav Ostrouska" <kr*****************@tele-haase.at> wrote in message
news:ex**************@TK2MSFTNGP05.phx.gbl...
| How can i write on specifyed sector on a multimedia card?
| I must go round file system and write/read direct.
| C# VS2003
|
| Thanks
| Kruno
|
|
You don''t have to go round the FS, you just have to open the physical device
using Win32''s API
CreateFile through PInvoke. When successful CreateFile returns a file handle
which you can use to read/write to the device at the physical level using
the FileStream class.

A physical device looks like \\.\PhysicalDrive<n> (hard disks start with n =
0), you can also refer to a physical device by using it''s mountpoint
"\\.\C:" or volume ID \\?\Volume{guid}\

Willy.


Willy Denoyette [MVP] wrote:

Hi Willy,

A physical device looks like \\.\PhysicalDrive<n> (hard disks start with n =
0), you can also refer to a physical device by using it''s mountpoint
"\\.\C:" or volume ID \\?\Volume{guid}\



That looks interesting. What could I google for to learn more about
these paths? Do you know how they call such path identifiers? I couldn''t
find much so far.

thanks,
Max


这篇关于MMC的部门写作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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