摘要
在VisualFoxPro程序设计中,借助于WIN32API访问动态链接库DLL函数,可以获取当前系统中可用磁盘驱动器个数及其类型和硬盘逻辑分区,磁盘卷标、序列号、支持的文件名组成长度和文件系统的一些特性等与磁盘卷有关的信息,以及与磁盘组织有关的信息如每簇扇区数、每扇区字节数、剩余簇数、总簇数等重要的磁盘结构信息,以便在文件创建、软件注册和加密时加以应用。
This paper mainly discusses the method of acquiring a disk configured data by accessing DLL in Visual FoxPro programming by managing the WIN32API, in order to create a file, register or lock an application software, which are important information of available disk drivers and types and logical partitions of fixed disk in current computer system, and related to disk volume such as label, serial number, accessible maximal component length of filename, and file system features, and related to their structure such as sectors per cluster, bytes per sector, free clusters and total clusters, etc.
出处
《安庆师范学院学报(自然科学版)》
2003年第2期82-85,共4页
Journal of Anqing Teachers College(Natural Science Edition)