?? matlabgenericdll.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 + -