WinCE6.0修改.cpl文件属性

qshurufa 2009-02-23 10:07:35
包括去掉文件保护,只读,隐藏等。(用代码的哦)
...全文
95 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
91program 2009-02-23
  • 打赏
  • 举报
回复
可以试试API函数:SetFileAttributes()。

前提如2L所说才可能会成功。
qshurufa 2009-02-23
  • 打赏
  • 举报
回复
用程序修改。有什么好的办法吗?
91program 2009-02-23
  • 打赏
  • 举报
回复
LZ你要先试试手工是否可以修改?
如果不行, 代码肯定也是不行的。
gooogleman 2009-02-23
  • 打赏
  • 举报
回复
.CPL文件不是在控制面板相关吗,你是指用应用程序去修改?还是别的
qshurufa 2009-02-23
  • 打赏
  • 举报
回复
这个是个POS机项目,程序需要移植到POS终端机上,很多的方法用不了,我估计你的这个也是用不了的!
91program 2009-02-23
  • 打赏
  • 举报
回复
SetFileAttributes()不是属性,只API函数

SetFileAttributesSee Also
CeSetFileAttributes (RAPI) | CreateDirectory | GetFileAttributes | GetFileAttributesEx

Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.
This function sets the attributes of a file. A RAPI version of this function exists, called CeSetFileAttributes (RAPI).

BOOL SetFileAttributes(
LPCTSTR lpFileName,
DWORD dwFileAttributes
);
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.
qshurufa 2009-02-23
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 qshurufa 的回复:]
用程序修改。有什么好的办法吗?
[/Quote]
这个方法我试了啊!,但是好像没有SetFileAttributes这个属性

19,502

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧