亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filemon.c

?? 文件監視FileMon 一個常用的監視軟件
?? C
?? 第 1 頁 / 共 5 頁
字號:
    "FileFsQuotaSetInformation",
    "FileFsControlQueryInformation",
    "FileFsControlSetInformation",
    "FileFsMaximumInformation",
};


//
// These are Win2K Plug-and-Play minor IRP codes
//
CHAR *PnpMinorCode[] = {
	"IRP_MN_START_DEVICE",
	"IRP_MN_QUERY_REMOVE_DEVICE",
	"IRP_MN_REMOVE_DEVICE",
	"IRP_MN_CANCEL_REMOVE_DEVICE",
	"IRP_MN_STOP_DEVICE",                
	"IRP_MN_QUERY_STOP_DEVICE",          
	"IRP_MN_CANCEL_STOP_DEVICE",         
	"IRP_MN_QUERY_DEVICE_RELATIONS",      
	"IRP_MN_QUERY_INTERFACE",             
	"IRP_MN_QUERY_CAPABILITIES",          
	"IRP_MN_QUERY_RESOURCES",             
	"IRP_MN_QUERY_RESOURCE_REQUIREMENTS", 
	"IRP_MN_QUERY_DEVICE_TEXT",           
	"IRP_MN_FILTER_RESOURCE_REQUIREMENTS",
	"IRP_MN_READ_CONFIG",                 
	"IRP_MN_WRITE_CONFIG",                
	"IRP_MN_EJECT",                       
	"IRP_MN_SET_LOCK",                    
	"IRP_MN_QUERY_ID",                    
	"IRP_MN_QUERY_PNP_DEVICE_STATE",      
	"IRP_MN_QUERY_BUS_INFORMATION",       
	"IRP_MN_DEVICE_USAGE_NOTIFICATION",   
	"IRP_MN_SURPRISE_REMOVAL",            
	"IRP_MN_QUERY_LEGACY_BUS_INFORMATION",
};

#define MAX_NTFS_METADATA_FILE 11
CHAR *NtfsMetadataFileNames[] = {
    "$Mft",
    "$MftMirr",
    "$LogFile",
    "$Volume",
    "$AttrDef",
    "$Root",
    "$Bitmap",
    "$Boot",
    "$BadClus",
    "$Secure",
    "$UpCase",
    "$Extend"
};
    

    
//
// This Filemon's Fast I/O dispatch table. Note that NT assumes that
// file system drivers support some Fast I/O calls, so this table must
// be present for an file system filter driver
//
FAST_IO_DISPATCH    FastIOHook = {
    sizeof(FAST_IO_DISPATCH), 
    FilemonFastIoCheckifPossible,
    FilemonFastIoRead,
    FilemonFastIoWrite,
    FilemonFastIoQueryBasicInfo,
    FilemonFastIoQueryStandardInfo,
    FilemonFastIoLock,
    FilemonFastIoUnlockSingle,
    FilemonFastIoUnlockAll,
    FilemonFastIoUnlockAllByKey,
    FilemonFastIoDeviceControl,
    FilemonFastIoAcquireFile,
    FilemonFastIoReleaseFile,
    FilemonFastIoDetachDevice,

    //
    // new for NT 4.0
    //
    FilemonFastIoQueryNetworkOpenInfo,
    FilemonFastIoAcquireForModWrite,
    FilemonFastIoMdlRead,
    FilemonFastIoMdlReadComplete,
    FilemonFastIoPrepareMdlWrite,
    FilemonFastIoMdlWriteComplete,
    FilemonFastIoReadCompressed,
    FilemonFastIoWriteCompressed,
    FilemonFastIoMdlReadCompleteCompressed,
    FilemonFastIoMdlWriteCompleteCompressed,
    FilemonFastIoQueryOpen,
    FilemonFastIoReleaseForModWrite,
    FilemonFastIoAcquireForCcFlush,
    FilemonFastIoReleaseForCcFlush
};

//----------------------------------------------------------------------
//      P A T T E R N   M A T C H I N G   R O U T I N E S
//----------------------------------------------------------------------


//----------------------------------------------------------------------
//
// MatchOkay
//
// Only thing left after compare is more mask. This routine makes
// sure that its a valid wild card ending so that its really a match.
//
//----------------------------------------------------------------------
BOOLEAN 
MatchOkay( 
    PCHAR Pattern 
    )
{
    //
    // If pattern isn't empty, it must be a wildcard
    //
    if( *Pattern && *Pattern != '*' ) {
 
        return FALSE;
    }

    //
    // Matched
    //
    return TRUE;
}


//----------------------------------------------------------------------
//
// MatchWithPattern
//
// Performs nifty wildcard comparison.
//
//----------------------------------------------------------------------
BOOLEAN 
MatchWithPattern( 
    PCHAR Pattern, 
    PCHAR Name 
    )
{
	char matchchar;

    //
    // End of pattern?
    //
    if( !*Pattern ) {

        return FALSE;
    }

    //
    // If we hit a wild card, do recursion
    //
    if( *Pattern == '*' ) {

        Pattern++;
        while( *Name && *Pattern ) {

			matchchar = *Name;
			if( matchchar >= 'a' && 
				matchchar <= 'z' ) {

				matchchar -= 'a' - 'A';
			}

            //
            // See if this substring matches
            //
		    if( *Pattern == matchchar ) {

  		        if( MatchWithPattern( Pattern+1, Name+1 )) {

                    return TRUE;
                }
            }

            //
            // Try the next substring
            //
            Name++;
        }

        //
        // See if match condition was met
        //
        return MatchOkay( Pattern );
    } 

    //
    // Do straight compare until we hit a wild card
    //
    while( *Name && *Pattern != '*' ) {

		matchchar = *Name;
		if( matchchar >= 'a' && 
			matchchar <= 'z' ) {

			matchchar -= 'a' - 'A';
		}

        if( *Pattern == matchchar ) {
            Pattern++;
            Name++;

        } else {

            return FALSE;
		}
    }

    //
    // If not done, recurse
    //
    if( *Name ) {

        return MatchWithPattern( Pattern, Name );
    }

    //
    // Make sure its a match
    //
    return MatchOkay( Pattern );
}

//----------------------------------------------------------------------
//            B U F F E R   M A N A G E M E N T
//----------------------------------------------------------------------

//----------------------------------------------------------------------
//
// FilemonFreeLog
//
// Frees all the data output buffers that we have currently allocated.
//
//----------------------------------------------------------------------
VOID 
FilemonFreeLog(
    VOID 
    )
{
    PLOG_BUF  prev;
    
    //
    // Just traverse the list of allocated output buffers
    //
    while( CurrentLog ) {
        prev = CurrentLog->Next;
        ExFreePool( CurrentLog );
        CurrentLog = prev;
    }
}   


//----------------------------------------------------------------------
//
// FilemonAllocateLog
//
// Called when the current buffer has filled up. This allocates a new
// buffer and stick it at the head (newest) entry of our buffer list.
//
//----------------------------------------------------------------------
void 
FilemonAllocateLog( 
    VOID
    )
{
    PLOG_BUF prev = CurrentLog, newLog;

    //
    // If we've already allocated the allowed number of buffers, just
    // reuse the current one. This will result in output records being
    // lost, but it takes ALOT of file system activity to cause this.
    //
    if( MaxLog == NumLog ) {

        DbgPrint(("Filemon ***** Dropping records at sequence number %d\n", Sequence ));
        CurrentLog->Len = 0;
        return; 
    }

    DbgPrint(("FilemonAllocateLog: num: %d max: %d\n", NumLog, MaxLog ));

    //
    // If the output buffer we currently are using is empty, just
    // use it.
    //
    if( !CurrentLog->Len ) {

        return;
    }

    //
    // Allocate a new output buffer
    //
    newLog = ExAllocatePool( NonPagedPool, sizeof(*CurrentLog) );
    if( newLog ) { 

        //
        // Allocation was successful so add the buffer to the list
        // of allocated buffers and increment the buffer count.
        //
        CurrentLog       = newLog;
        CurrentLog->Len  = 0;
        CurrentLog->Next = prev;
        NumLog++;

    } else {

        //
        // The allocation failed - just reuse the current buffer
        //
        CurrentLog->Len = 0;
    }
}


//----------------------------------------------------------------------
//
// FilemonGetOldestLog
//
// Traverse the list of allocated buffers to find the last one, which
// will be the oldest (as we want to return the oldest data to the GUI
// first).
//
//----------------------------------------------------------------------
PLOG_BUF 
FilemonGetOldestLog( 
    VOID 
    )
{
    PLOG_BUF  ptr = CurrentLog, prev = NULL;

    //
    // Traverse the list
    //    
    while( ptr->Next ) {

        ptr = (prev = ptr)->Next;
    }

    //
    // Remove the buffer from the list
    //
    if( prev ) {

        prev->Next = NULL;    
        NumLog--;
    }
    return ptr;
}


//----------------------------------------------------------------------
//
// FilemonResetLog
//
// When a GUI instance has close communication (exited), but the driver
// can't unload due to oustdanding IRPs, all the output buffers except
// one are all deallocated so that the memory footprint is shrunk as much 
// as possible.
//
//----------------------------------------------------------------------
VOID 
FilemonResetLog(
    VOID
    )
{
    PLOG_BUF  current, next;

    ExAcquireFastMutex( &LogMutex );

    //
    // Traverse the list of output buffers
    //
    current = CurrentLog->Next;
    while( current ) {

        //
        // Free the buffer
        //
        next = current->Next;
        ExFreePool( current );
        current = next;
    }

    // 
    // Move the output pointer in the buffer that's being kept
    // the start of the buffer.
    // 
    NumLog = 1;
    CurrentLog->Len = 0;
    CurrentLog->Next = NULL;
    ExReleaseFastMutex( &LogMutex );    
}


//----------------------------------------------------------------------
//
// LogRecord
//
// This "printfs" a string into an output buffer.
//
//----------------------------------------------------------------------
BOOLEAN
LogRecord( 
    BOOLEAN ProcessFilters,
    PULONG SeqNum, 
    PLARGE_INTEGER dateTime, 
    PLARGE_INTEGER perfTime,
    const CHAR * format, 
    ... 
    ) 
{   
    PENTRY             Entry;
    int                len;
    ULONG              recordSequence;
    va_list            arg_ptr;
    static CHAR        text[MAXPATHLEN];
    BOOLEAN            passedFilters = FALSE;

    //
    // If no GUI is there to receive the output or if no filtering is desired, don't bother
    //     
    if( !FilterOn ) {
     
        return FALSE;
    }

    // 
    // Lock the output buffer and Log.
    // 
    ExAcquireFastMutex( &LogMutex );

    //
    // Send text out as debug output  This is x86 specific.
    //      
#define A (&format)
    DbgPrint(( (char *)format, A[1], A[2], A[3], A[4], A[5], A[6] ));
    DbgPrint(( "\n" ));
#undef A

    //
    // Vsprintf to determine the length of the buffer
    //
    va_start( arg_ptr, format );
    len = vsprintf( text, format, arg_ptr );
    va_end( arg_ptr );

    //
    // ULONG align for Alpha
    //
    len += 4; len &=  0xFFFFFFFC; 

    //
    // Only log it if it passes the filters. Note that IRP completion
    // passes a false for ProcessFilters because if we've logged
    // the initial action, we have to go ahead and log the completion.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99精品久久久久久动态图| 色婷婷综合久久久久中文一区二区 | 成人a免费在线看| 国产剧情一区二区| 国产精品一区在线观看你懂的| 美女在线一区二区| 免费看欧美美女黄的网站| 肉肉av福利一精品导航| 天堂蜜桃91精品| 美女视频一区二区| 精品一区二区三区免费毛片爱| 蜜臀久久久久久久| 紧缚奴在线一区二区三区| 精品一区二区免费视频| 国产精品亚洲视频| 国产成人99久久亚洲综合精品| 国产91高潮流白浆在线麻豆| 国产999精品久久| 高清beeg欧美| 91亚洲永久精品| 欧美三电影在线| 欧美一区二区久久久| 26uuu亚洲综合色欧美| 久久精品亚洲国产奇米99| 国产三级欧美三级| 亚洲视频在线观看三级| 一区二区三区在线视频播放| 午夜欧美2019年伦理| 久久精品二区亚洲w码| 国产精品亚洲一区二区三区妖精 | 国产精品亚洲一区二区三区在线| 国产一区二区三区久久悠悠色av| 国产91在线|亚洲| 一本大道久久a久久精二百| 欧美日韩综合在线免费观看| 日韩精品中午字幕| 国产精品女同一区二区三区| 一区二区理论电影在线观看| 日本欧美在线观看| 国产成人精品aa毛片| 在线观看亚洲一区| 精品美女一区二区| 国产精品久久久久影院色老大| 亚洲精品乱码久久久久久日本蜜臀| 婷婷综合在线观看| 成人黄色大片在线观看| 欧美亚洲高清一区二区三区不卡| 精品免费一区二区三区| 亚洲人成在线播放网站岛国| 日本伊人精品一区二区三区观看方式| 国产精品一区在线观看乱码| 日本高清不卡视频| 欧美成人精品1314www| 亚洲三级在线播放| 美女视频网站黄色亚洲| 97久久精品人人爽人人爽蜜臀| 欧美人妖巨大在线| 国产精品国产三级国产a| 日日欢夜夜爽一区| 91玉足脚交白嫩脚丫在线播放| 日韩欧美区一区二| 一区二区高清免费观看影视大全| 久久精品国产秦先生| 色欧美日韩亚洲| 欧美极品美女视频| 免费人成网站在线观看欧美高清| av中文字幕不卡| 精品国产一二三区| 夜夜夜精品看看| 北条麻妃一区二区三区| 欧美成人乱码一区二区三区| 亚洲成av人影院| 99麻豆久久久国产精品免费优播| 久久一区二区视频| 日本在线观看不卡视频| 在线观看免费视频综合| 国产日韩视频一区二区三区| 日韩精品成人一区二区在线| 色哟哟日韩精品| 中文字幕精品三区| 经典三级视频一区| 日韩一区二区三区在线| 亚洲成人一区在线| 91麻豆蜜桃一区二区三区| 欧美激情艳妇裸体舞| 久草这里只有精品视频| 欧美乱熟臀69xxxxxx| 亚洲美女免费在线| av一二三不卡影片| 中文天堂在线一区| 国产传媒久久文化传媒| 久久毛片高清国产| 激情图片小说一区| 欧美一区二区不卡视频| 午夜精品在线看| 欧美三级在线看| 一区二区三区自拍| 91视频精品在这里| 亚洲精品视频在线| 97久久超碰国产精品| 中文字幕在线不卡国产视频| 成人午夜av影视| 国产欧美一区二区精品婷婷| 国产乱妇无码大片在线观看| 久久久国产午夜精品| 国产乱码精品一区二区三区av| 精品国产精品网麻豆系列| 蜜臂av日日欢夜夜爽一区| 欧美一区二区三区啪啪| 全部av―极品视觉盛宴亚洲| 欧美一级片在线看| 蜜桃视频在线一区| 日韩精品一区二区三区四区视频| 麻豆精品新av中文字幕| 欧美大片国产精品| 国产一区二区三区免费看| 国产网红主播福利一区二区| 成人黄色网址在线观看| 亚洲欧美日韩中文字幕一区二区三区| 91啪九色porn原创视频在线观看| 亚洲精品日日夜夜| 欧美日韩不卡一区| 免费观看成人av| 久久日韩粉嫩一区二区三区| 成人免费电影视频| 亚洲精品五月天| 欧美精品xxxxbbbb| 久久99精品国产麻豆婷婷洗澡| 精品国产伦一区二区三区观看方式 | 日本一区二区免费在线观看视频| 国产传媒一区在线| 亚洲欧美日韩人成在线播放| 欧美午夜宅男影院| 另类成人小视频在线| 久久久久久久综合狠狠综合| proumb性欧美在线观看| 亚洲在线视频网站| 日韩欧美国产一区在线观看| 国产成人av一区二区三区在线| 中文字幕五月欧美| 欧美性受极品xxxx喷水| 精品午夜一区二区三区在线观看| 欧美韩国日本综合| 欧美日韩精品免费观看视频| 久久99国产精品麻豆| ...av二区三区久久精品| 欧美色综合天天久久综合精品| 开心九九激情九九欧美日韩精美视频电影| 久久先锋资源网| 91视频免费观看| 美腿丝袜在线亚洲一区| 中文字幕一区二区三区色视频| 欧美日韩国产色站一区二区三区| 国模少妇一区二区三区| 亚洲精品国产无天堂网2021| 欧美大胆人体bbbb| www.亚洲在线| 日韩成人免费在线| 国产精品伦一区二区三级视频| 9191成人精品久久| 波多野结衣在线一区| 石原莉奈在线亚洲三区| 欧美激情一区在线| 欧美一级片在线看| 日本乱人伦一区| 国产一区二区三区香蕉| 性欧美大战久久久久久久久| 国产欧美精品一区二区三区四区| 欧美久久久久中文字幕| 国产91精品久久久久久久网曝门| 午夜国产精品影院在线观看| 中文乱码免费一区二区| 日韩精品中文字幕一区| 欧美唯美清纯偷拍| gogo大胆日本视频一区| 国精产品一区一区三区mba桃花| 一区二区三区中文字幕精品精品 | 亚洲地区一二三色| 国产精品青草综合久久久久99| 欧美一区二视频| 91久久精品网| 97精品久久久久中文字幕| 精品一区中文字幕| 天天综合色天天| 亚洲在线视频网站| 1024成人网| 国产精品免费网站在线观看| 精品国产网站在线观看| 欧美精品久久久久久久多人混战| 91亚洲精华国产精华精华液| 国产成人亚洲精品青草天美| 麻豆国产精品777777在线| 亚洲大片精品永久免费| 亚洲精品视频在线看| 国产精品欧美精品| 欧美国产精品专区| 国产日韩精品一区二区浪潮av| 欧美一二三区精品| 欧美一区二区三区小说| 欧美日韩国产一级|