自己封装的一个文件目录操作用户对象
2008-04-27 02:38
519 查看
$PBExportHeader$nvo_directory.sru
$PBExportComments$目录操作类
forward
globaltypenvo_directoryfromnonvisualobject
endtype
typestc_filetimefromstructurewithinnvo_directory
endtype
typestc_fileopstructfromstructurewithinnvo_directory
endtype
typestc_browseinfofromstructurewithinnvo_directory
endtype
typestc_find_datafromstructurewithinnvo_directory
endtype
typelarge_integerfromstructurewithinnvo_directory
endtype
typestc_ofstructfromstructurewithinnvo_directory
endtype
typeshfileopstructfromstructurewithinnvo_directory
endtype
endforward
typestc_filetimefromstructure
unsignedlong l_time
unsignedlong h_time
endtype
typestc_fileopstructfromstructure
unsignedlong hwnd
unsignedlong wfunc
string pfrom
string pto
long fflags
long fanyoperationsaborted
long hnamemappings
string lpszprogresstitle
endtype
typestc_browseinfofromstructure
long hwndowner
long pidlroot
string pszdisplayname
string lpsztitle
unsignedlong ulflags
unsignedlong lpfn
unsignedlong lparam
long iimage
endtype
typestc_find_datafromstructure
unsignedlong att
stc_filetime c_time
stc_filetime a_time
stc_filetime w_time
unsignedlong h_size
unsignedlong l_size
unsignedlong dwreserved0
unsignedlong dwreserved1
character cfilename[260]
character calternatefilename[16]
endtype
typelarge_integerfromstructure
unsignedlong lowpart
unsignedlong highpart
endtype
typestc_ofstructfromstructure
character cbytes
character ffixeddisk
long nerrcode
long reserved1
long reserved2
character szpathname[128]
endtype
typeshfileopstructfromstructure
long hwnd
unsignedlong wfunc
long pfrom
string pto
unsignedlong fflags
boolean fanyoperationsaborted
long hnamemappings
string lpszprogresstitle
endtype
globaltypenvo_directoryfromnonvisualobjectautoinstantiate
endtype
typeprototypes
FUNCTIONulongGetCurrentDirectoryA(ulongBufferLen,refstringcurrentdir)LIBRARY"kernel32.dll"
FUNCTIONulongSetCurrentDirectory(refstringlpPathName)LIBRARY"kernel32.dll"ALIASFOR"SetCurrentDirectoryA"
FunctionuLongGetModuleFileNameA(longhinstModule,RefStringlpszPath,uLongcchPath)Library"kernel32.dll"
FUNCTIONulongGetTempPath(ulongnBufferLength,refstringlpBuffer)LIBRARY"kernel32.dll"ALIASFOR"GetTempPathA"
FunctionbooleanCreateDirectoryA(stringlpPathName,stringlpSecurityAttributes)Library"kernel32.dll"1
$PBExportComments$目录操作类
forward
globaltypenvo_directoryfromnonvisualobject
endtype
typestc_filetimefromstructurewithinnvo_directory
endtype
typestc_fileopstructfromstructurewithinnvo_directory
endtype
typestc_browseinfofromstructurewithinnvo_directory
endtype
typestc_find_datafromstructurewithinnvo_directory
endtype
typelarge_integerfromstructurewithinnvo_directory
endtype
typestc_ofstructfromstructurewithinnvo_directory
endtype
typeshfileopstructfromstructurewithinnvo_directory
endtype
endforward
typestc_filetimefromstructure
unsignedlong l_time
unsignedlong h_time
endtype
typestc_fileopstructfromstructure
unsignedlong hwnd
unsignedlong wfunc
string pfrom
string pto
long fflags
long fanyoperationsaborted
long hnamemappings
string lpszprogresstitle
endtype
typestc_browseinfofromstructure
long hwndowner
long pidlroot
string pszdisplayname
string lpsztitle
unsignedlong ulflags
unsignedlong lpfn
unsignedlong lparam
long iimage
endtype
typestc_find_datafromstructure
unsignedlong att
stc_filetime c_time
stc_filetime a_time
stc_filetime w_time
unsignedlong h_size
unsignedlong l_size
unsignedlong dwreserved0
unsignedlong dwreserved1
character cfilename[260]
character calternatefilename[16]
endtype
typelarge_integerfromstructure
unsignedlong lowpart
unsignedlong highpart
endtype
typestc_ofstructfromstructure
character cbytes
character ffixeddisk
long nerrcode
long reserved1
long reserved2
character szpathname[128]
endtype
typeshfileopstructfromstructure
long hwnd
unsignedlong wfunc
long pfrom
string pto
unsignedlong fflags
boolean fanyoperationsaborted
long hnamemappings
string lpszprogresstitle
endtype
globaltypenvo_directoryfromnonvisualobjectautoinstantiate
endtype
typeprototypes
FUNCTIONulongGetCurrentDirectoryA(ulongBufferLen,refstringcurrentdir)LIBRARY"kernel32.dll"
FUNCTIONulongSetCurrentDirectory(refstringlpPathName)LIBRARY"kernel32.dll"ALIASFOR"SetCurrentDirectoryA"
FunctionuLongGetModuleFileNameA(longhinstModule,RefStringlpszPath,uLongcchPath)Library"kernel32.dll"
FUNCTIONulongGetTempPath(ulongnBufferLength,refstringlpBuffer)LIBRARY"kernel32.dll"ALIASFOR"GetTempPathA"
FunctionbooleanCreateDirectoryA(stringlpPathName,stringlpSecurityAttributes)Library"kernel32.dll"1
相关文章推荐
- 自己封装的一个文件目录操作用户对象
- 一个自己封装的日期时间操作的用户对象
- 编写一个封装用户信息的JavaBean对象,通过操作JavaBean的动作标识,输出用户的注册信息。
- JS如何封装一些列方法为一个对象的操作,然后集中管理这些操作,方便修改和调用
- 自己实现一个SQL解析引擎 功能:将用户输入的SQL语句序列转换为一个可执行的操作序列,并返回查询的结果集。 SQL的解析引擎包括查询编译与查询优化和查询的运行,主要包括3个步骤: 查询分析
- TP中封装一个跨库操作和用户操作
- 一个简单的JDBC操作对象的封装
- 完成序列化和反序列化的一个集合操作,集合对象中要求保存2个用户对象
- MongoDB学习笔记~自己封装的Curd操作(查询集合对象属性,更新集合对象)
- asp.net 自己封装数据库操作一个类中一个自定义方法Execute(),非常实用,省去了麻烦的中间过程,动态参数
- oracle授权另外一个用户访问自己创建的数据对象
- 封装一个用户控件的pager.ascx文件供自己使用
- JS +XML +Jquery 实现三级联动菜单,自己封装的一个对象方便使用
- C# 一个自己写的树结构代码(2)-Array,HashTable,List,String数据结构操作封装
- oracle授权另外一个用户访问自己创建的数据对象
- oracle授权另外一个用户访问自己创建的数据对象
- 要求从用户输入的多行文本中提取学生的姓名、学号及登录日期,并封装到 Student 类中作为类的私有属性。创建一个 Student 类型的对象数组,对学号进行 升序排序并输出
- 要求从用户输入的多行文本中提取学生的姓名、学号及登录日期,并封装到 Student 类中作为类的私有属性。创建一个Student类型的对象数组,对学号进行 升序排序并输出。
- 自己写的一个关于Sqlite3 操作的 的C++封装
- 对cookie的设置、获取、清除操作,封装到一个Cookie对象中