2018年10月8日

Windows API 第17篇 GetLogicalDriveStrings 获取本机所有逻辑驱动器,以根目录的形式表示

摘要: 函数原型:DWORD GetLogicalDriveStrings( DWORD nBufferLength, // size of buffer LPTSTR lpBuffer // drive strings buffer );说明:参数不多讲,需要注意函数返回存入lpBuffer空间的字符个数 阅读全文

posted @ 2018-10-08 16:51 priarieNew 阅读(760) 评论(0) 推荐(0) 编辑

Windows API 第16篇 GetLogicalDrivers 获取驱动器位掩码

摘要: 函数原型:DWORD GetLogicalDrives(VOID);The GetLogicalDrives function retrieves a bitmask representing the currently available disk drives. 说明:该函数用法简单,没有参数, 阅读全文

posted @ 2018-10-08 16:32 priarieNew 阅读(715) 评论(0) 推荐(0) 编辑

Windows API 第15篇 GetVolumeInformation 获取磁盘卷(驱动器)信息

摘要: 先看定义:BOOL GetVolumeInformation( [IN] LPCTSTR lpRootPathName, // root directory 卷所在的根目录,如:"C:\\", 如果为NULL,表示当前目录 [OUT] LPTSTR lpVolumeNameBuffer, // vo 阅读全文

posted @ 2018-10-08 16:31 priarieNew 阅读(7819) 评论(1) 推荐(0) 编辑

GetCommandLine CmdLineToArgvW

摘要: 说明:LPTSTR GetCommandLine(VOID);LPWSTR * CommandLineToArgvW( LPCWSTR lpCmdLine, // pointer to a command-line string int *pNumArgs // receives the argum 阅读全文

posted @ 2018-10-08 15:43 priarieNew 阅读(1592) 评论(0) 推荐(0) 编辑

Windows API 第14篇 DeleteAndRenameFile

摘要: 函数定义:BOOL DeleteAndRenameFile( LPCWSTR lpszDestFile, LPCWSTR lpszSourFile );说明:函数把sourceFile的内容复制到DestFile中,然后再删除sourceFile。调用前必须保证sourceFile和DestFile 阅读全文

posted @ 2018-10-08 15:31 priarieNew 阅读(485) 评论(0) 推荐(0) 编辑

windows API 第13篇 MoveFileEx

摘要: MoveFileEx 删除文件 注册表 阅读全文

posted @ 2018-10-08 15:14 priarieNew 阅读(2526) 评论(0) 推荐(1) 编辑

Windows API 第12篇 MoveFile

摘要: MoveFile可以移动文件,更名文件,移动目录(包括目录下的所有文件以及子目录)。函数定义:BOOL MoveFile( LPCTSTR lpExistingFileName, // file name LPCTSTR lpNewFileName // new file name);参数不介绍了, 阅读全文

posted @ 2018-10-08 15:13 priarieNew 阅读(1709) 评论(0) 推荐(0) 编辑

_strupr _wcsupr _mbsupr

摘要: 将字符串转化为大写的形式(Convert a string to uppercase.)定义: char *_strupr( char *string ); wchar_t *_wcsupr( wchar_t *string ); unsigned char *_mbsupr( unsigned c 阅读全文

posted @ 2018-10-08 15:09 priarieNew 阅读(1050) 评论(0) 推荐(0) 编辑

复制字符串 _strdup _wcsdup _mbsdup

摘要: Duplicate strings.函数定义: char *_strdup( const char *strSource ); wchar_t *_wcsdup( const wchar_t *strSource ); unsigned char *_mbsdup( const unsigned c 阅读全文

posted @ 2018-10-08 15:08 priarieNew 阅读(597) 评论(0) 推荐(0) 编辑

windows API 第 11 篇 GetCurrentDirectory SetCurrentDirectory

摘要: GetCurrentDirectory函数获得当前文件所在的目录,并不是进程的目录(debug 和 release),它和GetCommandLine不同这里只讲 GetCurrentDirectory,GetCurrentDirectory是一个宏#ifdef UNICODE#define Get 阅读全文

posted @ 2018-10-08 15:04 priarieNew 阅读(693) 评论(0) 推荐(0) 编辑

导航