www.pudn.com > hbmkdisk.rar > mkdisk.cpp


// mkdisk.cpp : Defines the entry point for the console application. 
// 
 
#include "hbmkdisk.h" 
 
#pragma comment(lib,"hbmkdisk.lib") 
 
int main(int argc, char* argv[]) 
{ 
 
	//创建磁盘 8=8M 根据需要设置大小 
	/* 
	bool nRet=CreatDisk("d:\\aa.img",8); 
	if(nRet) 
		MessageBox(NULL,"ok","creat",MB_OK); 
    */ 
  //显示磁盘 
	/* 
	char dive[3]=" :"; 
 
	bool nRet=MountDisk("d:\\aa.img",dive[0]); 
	if(nRet) 
		MessageBox(NULL,dive,"mount",MB_OK); 
    */ 
	//删除磁盘 
	/* 
	bool nRet=RemovDisk('i'); 
	if(nRet) 
		MessageBox(NULL,"ok","Remov",MB_OK); 
    */  
	return 0; 
}