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