这段代码创建目录吗? [英] Is this code creating a Directory?

查看:73
本文介绍了这段代码创建目录吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我反向执行程序,然后获得这部分代码.
我需要知道此代码是否正在创建目录.隐藏的attibute(0)是什么?


I reverse a program a get this part of the code.
I need to know if this code is creating a Dir. and what is the attibute (0) is Hidden?


v5 = GetTempPathA(0x104u, &Buffer);
v19 = v5;
if ( v5 && v19 <= 0x104 )
  v20 = &Buffer;
else
  v20 = "C:\\";
v6 = std__basic_string_char_std__char_traits_char__std__allocator_char____basic_string_char_std__char_traits_char__std__allocator_char__( &v21,v20, &v22);
v23 = v6;
v24 = v6;
LOBYTE(v11) = 3;
std__operator_(&v25, v6, "DOC\\");
LOBYTE(v11) = 5;
std__basic_string_char_std__char_traits_char__std__allocator_char_____basic_string_char_std__char_traits_char__std__allocator_char__(&v21);
v7 = std__basic_string_char_std__char_traits_char__std__allocator_char____c_str(&v25);
if ( GetFileAttributesA((LPCSTR)v7) == -1 )
{
     v8 = std__basic_string_char_std__char_traits_char__std__allocator_char____c_str(&v25);
      CreateDirectoryA((LPCSTR)v8, 0);
}

推荐答案

是的,但前提是该文件夹不存在.参数0表示该文件夹将具有默认的文件系统安全性属性.
Yes, but only if the folder doesn''t already exist. The 0 parameter means that the folder is to have the default filesystem security attribute.


这篇关于这段代码创建目录吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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