ramdisk.h

来自「利用系统内存建立虚拟磁盘」· C头文件 代码 · 共 105 行

H
105
字号
/********************************************************************            	created:	2002/9/27  15:52            	filename: 	f:\winddk\2600\src\storage\ramdisk\dll\ramdisk.h            	file path:	f:\winddk\2600\src\storage\ramdisk\dll            	file base:	ramdisk            	file ext:	h            	author:		Christiaan Ghijselinck            	            	purpose:	*********************************************************************/

/*  Copyright (C) 2002

/***************************************************************************The author of this software sourcerejects all responsability for its proper functioning due to changes madeby other than the author without his knowledge or consultation. The changedsources will be considered as not his property, which implies that the changes made by other than the author, are considered as not existing if theauthor decides to enhance and/or correct his original software.These statements agree with the world wide and local dictated laws aboutauthorship and violence against these laws.****************************************************************************/
//==========================================================================
//                            Include Files
//==========================================================================

// TODO reminder macro ; usage : --> #pragma TODO ( your reminder text ) <--
#ifndef _TODO 
#define _TODO 
#define __LINE ( __LINE__ ) 
#define __GETLINE(x) "(" #x ")" 
#define GETLINE __GETLINE __LINE 
#define TODO(y) message ( __FILE__ GETLINE " :  " #y " " ) 
#endif 
// -----


#ifndef RAMDISK_H
#define RAMDISK_H


#include "stdafx.h"
#include <tchar.h>
#include <cfgmgr32.h>
#include <setupapi.h>
#include <regstr.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include "resource.h"

/* Some debugger commands, usable within Visual Studio :

   "Hardware Wizard" --> add new device --> QSoft :
    _______________________________________________
    
    executable for debug session : "x:\WINNT\system32\rundll32.exe"
    program arguments            : "shell32.dll,Control_RunDLL D:\WINNT\System32\hdwwiz.cpl,"


   "Device Manager" :
    _________________

    executable for debug session : "x:\WINNT\System32\mmc.exe"
    program arguments            : "x:\WINNT\system32\devmgmt.msc /s"


    The output file name must be then be changed from "Debug\RAMDisk.dll" into :
    _________________________________________________________________________________

    "x:\WINNT\system32\RAMDisk.dll"


*/

typedef
struct  {   WCHAR        wcDriveLetter_default  ;
            WCHAR        wcDriveLetter          ;
            DWORD        dwDriveSize            ;
            DWORD        nDriveLetters          ;   
        }   QSOFT_PARAMS , *PQSOFT_PARAMS       ;


extern "C"
INT_PTR APIENTRY
PropPageDlgProc(IN HWND   hDlg,
                IN UINT   uMessage,
                IN WPARAM wParam,
                IN LPARAM lParam) ;

extern "C"
UINT CALLBACK
PropPageDlgCallback(HWND hwnd,
                    UINT uMsg,
                    LPPROPSHEETPAGE ppsp) ;


#endif // RAMDISK_H

⌨️ 快捷键说明

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