摘要: #include <windows.h>#include <iostream>using namespace std; int main(){ CHAR szCurrentDirectory[MAX_PATH]; CHAR szMoudlePath[MAX_PATH]; CHAR szMoudleP 阅读全文
posted @ 2016-05-20 12:36 mousemin 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <stdio.h> int main(){ LPSTR szDirPath = "测试"; if (!CreateDirectory(szDirPath,//路径或目录名 NULL)) { printf("创建目录 %s 错误。\n", sz 阅读全文
posted @ 2016-05-19 11:05 mousemin 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <stdio.h> /* 功能: 获取文件大小 读取文件内容,并以十六进制的形式打印 参数: LPSTR szFilePath 文件路径*/ DWORD ReadFileContent(LPSTR szFilePath){ HANDLE hF 阅读全文
posted @ 2016-05-19 10:51 mousemin 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <stdio.h>/** int main(int argc,PCHAR argv[])* 功能:主函数,根据输入的参数不同-删除、复制、移动文件* 参数:删除文件 -d 文件路径(绝对路径或相对路径) 复制文件-将文件从路径1复制到路径2 阅读全文
posted @ 2016-05-18 19:10 mousemin 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <stdio.h> /************************************* BOOL GetDiskSpaceInfo(LPSTR pszDrive)* 功能:根据输入磁盘驱动器,获取磁盘信息* 参数:LPSTR psz 阅读全文
posted @ 2016-05-17 20:46 mousemin 阅读(747) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <stdio.h>#include <tchar.h> #define BUFSIZE 512 int main(int argc,PCHAR argv[]){ CHAR szFileSystemNameBuffer[BUFSIZE]; DW 阅读全文
posted @ 2016-05-05 15:57 mousemin 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #define _WIN32_WINNT 0x0501#include <windows.h>#include <stdio.h>#include <tchar.h>#define BUFSIZE MAX_PATH#define FILESYSNAMEBUFSIZE MAX_PATH/******* 阅读全文
posted @ 2016-05-05 15:39 mousemin 阅读(489) 评论(0) 推荐(0) 编辑
摘要: #define _WIN32_WINNT 0x0501#include <windows.h>#include <stdlib.h>#include <stdio.h>#define BUFSIZE MAX_PATH BOOL GetDirverInfo(LPSTR szDrive); int ma 阅读全文
posted @ 2016-05-03 19:32 mousemin 阅读(485) 评论(0) 推荐(0) 编辑
摘要: ```c #include <windows.h>#include <stdlib.h>#include <stdio.h> #define BUFSIZE 1024 BOOL GetDirverInfo(LPSTR szDrive); void main(void){ CHAR szLogical 阅读全文
posted @ 2016-05-03 19:22 mousemin 阅读(386) 评论(0) 推荐(0) 编辑