⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matlabgenericdll.cpp

📁 Introduction A shared library is a collection of functions that are available for use by one or mor
💻 CPP
字号:
// MatlabGenericDll.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "MatlabGenericDll.h"

#include "ShFormatDrive.h"
#include "ShellAPI.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
}


MATLABGENERICDLL_API void FormatDrive()
{
	SHFormatDrive(NULL, 0, SHFMT_ID_DEFAULT, SHFMT_OPT_FULL);
}


MATLABGENERICDLL_API void CopyFiles(char* Src, char* Tgt)
{
	SHFILEOPSTRUCT op;
	op.hwnd=NULL;
	op.wFunc=FO_COPY;
	op.pFrom=Src;
	op.pTo=Tgt;
	op.fFlags=FOF_ALLOWUNDO;
	op.lpszProgressTitle="Copying from MATLAB!";
	SHFileOperation(&op);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -