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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? filemon.c

?? 文件監(jiān)視FileMon 一個(gè)常用的監(jiān)視軟件
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/******************************************************************************
*
*	FUNCTION:	CCHookProc
*
*	PURPOSE:	We use a hook procedure to force the stupid color
*				selection dialog to do what we want, including preview
*				the highlight text.
*
*****************************************************************************/
UINT CALLBACK CCHookProc( HWND hDlg, 
					  UINT uiMsg, WPARAM wParam,  
					  LPARAM lParam )
{
	static HWND	 sample;
	static DWORD  newFg, newBg;
	static UINT colorOkString, setRgbString;

	switch( uiMsg ) {
	case WM_INITDIALOG:
		sample = GetDlgItem( hDlg, IDC_SAMPLE );
		newFg = HighlightFg;
		newBg = HighlightBg;
		colorOkString = RegisterWindowMessage( COLOROKSTRING );
		setRgbString  = RegisterWindowMessage( SETRGBSTRING ); 
		CheckRadioButton( hDlg, IDC_RADIOFG, IDC_RADIOBG, IDC_RADIOFG );
		SendMessage(hDlg, setRgbString, 0, newFg); 
		SetFocus( GetDlgItem( hDlg, IDC_DONE ));
		break;
	case WM_CTLCOLORSTATIC:
		if( (HWND) lParam == sample ) {
			SetBkColor(GET_WM_CTLCOLOR_HDC(wParam, lParam, msg), 
                    newBg); 
			SetTextColor(GET_WM_CTLCOLOR_HDC(wParam, lParam, msg), 
                    newFg); 
            return (BOOL)GetStockObject(WHITE_BRUSH); 		
		}
		break;
	case WM_COMMAND:
		if( wParam == IDC_DONE ) {
			HighlightFg = newFg;
			HighlightBg = newBg;
			PostMessage( hDlg, WM_COMMAND, IDABORT, 0 );
			return FALSE;
		}
		break;
	default:
		if( uiMsg == colorOkString ) {
			if( !IsDlgButtonChecked( hDlg, IDC_RADIOBG )) {
				newFg = ((LPCHOOSECOLOR) lParam)->rgbResult;
				InvalidateRect( sample, NULL, TRUE );
				SendMessage(hDlg, setRgbString, 0, newBg); 
				return TRUE;
			} else {
				newBg = ((LPCHOOSECOLOR) lParam)->rgbResult;
				InvalidateRect( sample, NULL, TRUE );
				SendMessage(hDlg, setRgbString, 0, newFg); 
				return TRUE;
			}
		}
		break;
	}
	return 0;
}


/******************************************************************************
*
*	FUNCTION:	SelectHighlightColors
*
*	PURPOSE:	Let's the user pick the highlight foreground and background
*				colors.
*
*****************************************************************************/
VOID SelectHighlightColors( HWND hWnd )
{
	DWORD			dwColor;
	DWORD			dwCustClrs [16];
	BOOL			fSetColor = FALSE;
	int				i;
	CHOOSECOLOR		chsclr;

	for (i = 0; i < 15; i++)
		dwCustClrs [i] = RGB (255, 255, 255);
	dwColor = RGB (0, 0, 0);
	chsclr.lStructSize = sizeof (CHOOSECOLOR);
	chsclr.hwndOwner = hWnd;
	chsclr.hInstance = (HANDLE) hInst;
	chsclr.rgbResult = dwColor;
	chsclr.lpCustColors = (LPDWORD)dwCustClrs;
	chsclr.lCustData = 0L;
	chsclr.rgbResult = HighlightFg;
	chsclr.lpTemplateName = "CHOOSECOLORFG";
	chsclr.lpfnHook = (LPCCHOOKPROC)(FARPROC)CCHookProc;
	chsclr.Flags = CC_RGBINIT|CC_PREVENTFULLOPEN|
					CC_ENABLEHOOK|CC_ENABLETEMPLATE;
	ChooseColor (&chsclr);
	// Redraw to apply
	InvalidateRect( hWndList, NULL, TRUE );
} 


/******************************************************************************
*
*	FUNCTION:	FindInListview:
*
*	PURPOSE:	Searches for a string in the listview. Note: its okay if
*				items are being added to the list view or the list view
*				is cleared while this search is in progress - the effect
*				is harmless.
*
*****************************************************************************/
BOOLEAN FindInListview(HWND hWnd, LPFINDREPLACE FindInfo )
{
	int		currentItem, clearItem;
	DWORD	i;
	int		subitem, numItems;
	TCHAR	fieldtext[MAXITEMLENGTH];
	BOOLEAN match = FALSE;
	TCHAR	errmsg[MAX_PATH];
	BOOLEAN	goUp;

	// get the search direction
	goUp = ((FindInfo->Flags & FR_DOWN) == FR_DOWN);

	// initialize stuff
	if( !(numItems = ListView_GetItemCount( hWndList ))) {

		MessageBox( hWnd, TEXT("No items to search"), TEXT(APPNAME), 
			MB_OK|MB_ICONWARNING );
		if( hWndFind ) SetForegroundWindow( hWndFind );
		return FALSE;
	}

	// find the item with the focus
	currentItem = ListView_GetNextItem( hWndList, -1, LVNI_SELECTED );

	// if no current item, start at the top or the bottom
	if( currentItem == -1 ) {
		if( goUp )
			currentItem = 0;
		else {
			if( PrevMatch ) {
				sprintf(errmsg, TEXT("Cannot find string \"%s\""), FindInfo->lpstrFindWhat );
				MessageBox( hWnd, errmsg, TEXT(APPNAME), MB_OK|MB_ICONWARNING );
				if( hWndFind ) SetForegroundWindow( hWndFind );
				else SetFocus( hWndList );
				return FALSE;
			}
			currentItem = numItems;
		}
	}

	// if we're continuing a search, start with the next item
	if( PrevMatch && !strcmp( FindString, PrevMatchString ) ) {
		if( goUp ) currentItem++;
		else currentItem--;

		if( (!goUp && currentItem < 0) ||
			(goUp && currentItem >= numItems )) {

			sprintf(errmsg, TEXT("Cannot find string \"%s\""), FindInfo->lpstrFindWhat );
			MessageBox( hWnd, errmsg, TEXT(APPNAME), MB_OK|MB_ICONWARNING );
			if( hWndFind ) SetForegroundWindow( hWndFind );
			else SetFocus( hWndList );
			return FALSE;
		}
	}

	// loop through each item looking for the string
	while( 1 ) {

		// get the item text
		for( subitem = 0; subitem < NUMCOLUMNS; subitem++ ) {
			fieldtext[0] = 0;
			ListView_GetItemText( hWndList, currentItem, subitem, fieldtext, 256 );

			// make sure enought string for a match
			if( strlen( fieldtext ) < strlen( FindInfo->lpstrFindWhat ))
				continue;

			// do a scan all the way through for the substring
			if( FindInfo->Flags & FR_WHOLEWORD ) {

				i = 0;
				while( fieldtext[i] ) {
					while( fieldtext[i] && fieldtext[i] != ' ' ) i++;
					if( FindInfo->Flags & FR_MATCHCASE ) 
						match = !strcmp( fieldtext, FindInfo->lpstrFindWhat );
					else
						match = !stricmp( fieldtext, FindInfo->lpstrFindWhat );
					if( match) break;
					i++;
				}	
			} else {
				for( i = 0; i < strlen( fieldtext ) - strlen(FindInfo->lpstrFindWhat)+1; i++ ) {
					if( FindInfo->Flags & FR_MATCHCASE ) 
						match = !strncmp( &fieldtext[i], FindInfo->lpstrFindWhat, 
											strlen(FindInfo->lpstrFindWhat) );
					else
						match = !strnicmp( &fieldtext[i], FindInfo->lpstrFindWhat,
											strlen(FindInfo->lpstrFindWhat) );
					if( match ) break;
				}		
			}

			if( match ) {

				strcpy( PrevMatchString, FindInfo->lpstrFindWhat );
				PrevMatch = TRUE;
				// Clear all previously-selected items
				while( (clearItem = ListView_GetNextItem( hWndList, -1, LVNI_SELECTED )) != -1 ) {
					ListView_SetItemState( hWndList, clearItem, 0, LVIS_SELECTED|LVIS_FOCUSED );
				}
				ListView_SetItemState( hWndList, currentItem, 
							LVIS_SELECTED|LVIS_FOCUSED,
							LVIS_SELECTED|LVIS_FOCUSED );
				ListView_EnsureVisible( hWndList, currentItem, FALSE ); 
				SetFocus( hWndList );
				return TRUE;
			}
		}
		currentItem = currentItem + (goUp ? 1:-1);
		if( currentItem <= 0 || currentItem == numItems+1 ) {
			// end of the road
			break;
		}
	}
	sprintf(errmsg, TEXT("Cannot find string \"%s\""), FindInfo->lpstrFindWhat );
	MessageBox( hWnd, errmsg, TEXT(APPNAME), MB_OK|MB_ICONWARNING );
	if( hWndFind ) SetForegroundWindow( hWndFind );
	else SetFocus( hWndList );
	return FALSE;
}


/******************************************************************************
*
*	FUNCTION:	PopFindDialog:
*
*	PURPOSE:	Calls the find message dialog box.
*
*****************************************************************************/
void PopFindDialog(HWND hWnd)
{
	_tcscpy( FindString, PrevMatchString );
    FindTextInfo.lStructSize = sizeof( FindTextInfo );
    FindTextInfo.hwndOwner = hWnd;
    FindTextInfo.hInstance = hInst;
    FindTextInfo.lpstrFindWhat = FindString;
    FindTextInfo.lpstrReplaceWith = NULL;
    FindTextInfo.wFindWhatLen = sizeof(FindString);
    FindTextInfo.wReplaceWithLen = 0;
    FindTextInfo.lCustData = 0;
    FindTextInfo.Flags =  FindFlags;
    FindTextInfo.lpfnHook = (LPFRHOOKPROC)(FARPROC)NULL;
    FindTextInfo.lpTemplateName = NULL;

    if ((hWndFind = FindText(&FindTextInfo)) == NULL)
		MessageBox( hWnd, _T("Unable to create Find dialog"), APPNAME, MB_OK|MB_ICONERROR );      
}

/****************************************************************************
*
*	FUNCTION: MatchOkay
*
*	PURPOSE: 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;
}


/****************************************************************************
*
*	FUNCTION: MatchWithPattern
*
*	PURPOSE: 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 );
}


/****************************************************************************
*
*	FUNCTION: MatchWithHighlightPattern
*
*	PURPOSE: Converts strings to upper-case before calling core 
*	comparison routine.
*
****************************************************************************/
BOOLEAN MatchWithHighlightPattern( PCHAR String )
{
	char	   *filterPtr;
	char	   curFilterBuf[MAXFILTERLEN];
	char		curMatchTest[MAXFILTERLEN];
	char	   *curFilter, *endFilter;

	// Is there a highlight filter?
	if( !HighlightString[0] ||
		(HighlightString[0] == ' ' && !HighlightString[1] )) return FALSE;

	// see if its in an highlight
	filterPtr = HighlightString;
	curFilter = curFilterBuf;
	while( 1 ) {

		endFilter = strchr( filterPtr, ';' );
		if( !endFilter )
			curFilter = filterPtr;
		else {
			strncpy( curFilter, filterPtr, (int) (endFilter - filterPtr ) );
			curFilter[ (int) (endFilter - filterPtr ) ] = 0;
		}

		// Now do the comparison
		sprintf( curMatchTest, "%s%s%s",
			*curFilter == '*' ? "" : "*",
			curFilter,
			curFilter[ strlen(curFilter)-1] == '*' ? "" : "*" );
		if( MatchWithPattern( curMatchTest, String ) ) {

			return TRUE;
		}

		if( endFilter ) filterPtr = endFilter+1;
		else break;
	}
	return FALSE;	
}


/****************************************************************************
*
*	FUNCTION:	FilterProc
*
*	PURPOSE:	Processes messages for "Filter" dialog box
*
****************************************************************************/
BOOL APIENTRY FilterProc( HWND hDlg, UINT message, UINT wParam, LONG lParam )
{
	char			newFilter[MAXFILTERLEN];
	char			newExFilter[MAXFILTERLEN];
	char			newHiFilter[MAXFILTERLEN], oldHighlight[MAXFILTERLEN];
	int				i, j, nb;
	static HWND		hInFilter;
	static HWND		hExFilter;
	static HWND		hHiFilter;

	switch ( message )  {
	case WM_INITDIALOG:

		// initialize the controls to reflect the current filter
		// We use a ' ' as a placeholder in the filter strings to represent no filter ("")
		hInFilter = GetDlgItem( hDlg, IDC_FILTERSTRING );
		for( i = 0; i < NUMRECENTFILTERS; i++ ) {
			if( RecentInFilters[i][0] ) {
				SendMessage( hInFilter,	CB_ADDSTRING, 0, 
					(LPARAM ) (strcmp( RecentInFilters[i], " ") ? 
							RecentInFilters[i] : ""));
			}
		}
		hExFilter = GetDlgItem( hDlg, IDC_EXFILTERSTRING );
		for( i = 0; i < NUMRECENTFILTERS; i++ ) {
			if( RecentExFilters[i][0] ) {
				SendMessage( hExFilter, CB_ADDSTRING, 0, 
					(LPARAM ) (strcmp( RecentExFilters[i], " ") ? 
							RecentExFilters[i] : ""));
			}
		}
		hHiFilter = GetDlgItem( hDlg, IDC_HIFILTERSTRING );
		for( i = 0; i < NUMRECENTFILTERS; i++ ) {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品久久久久久| 成人欧美一区二区三区视频网页| 日本vs亚洲vs韩国一区三区二区 | 狠狠v欧美v日韩v亚洲ⅴ| 国产精品久久久久天堂| 国产精品无圣光一区二区| 精品伦理精品一区| 久久色在线观看| 国产亚洲欧美日韩在线一区| 欧美一区二区三区公司| 在线欧美小视频| 欧美一三区三区四区免费在线看| 欧美三片在线视频观看| 欧美三级三级三级爽爽爽| 欧美草草影院在线视频| 欧美日韩和欧美的一区二区| 色噜噜狠狠色综合中国| 男男成人高潮片免费网站| 精品亚洲成av人在线观看| 奇米一区二区三区av| 免费观看在线综合| 国产专区综合网| 91精品国产91久久久久久最新毛片 | 精品国产免费久久| 亚洲高清免费一级二级三级| 成人黄色软件下载| 91麻豆swag| 国产日韩精品久久久| 欧美韩日一区二区三区四区| 久久久久久久久久久久久夜| 久久午夜色播影院免费高清| 久久av资源网| 国产成a人亚洲| 欧美区视频在线观看| 日本一区二区动态图| 蜜臀av国产精品久久久久| 成人免费视频国产在线观看| 欧美丝袜自拍制服另类| 欧美精品国产精品| 久久久久久久精| 激情综合五月婷婷| 精品电影一区二区| 日本成人中文字幕| 欧美一级日韩一级| 日韩成人免费在线| 中文字幕精品一区二区精品绿巨人| 一本久久a久久免费精品不卡| 亚洲欧美一区二区三区久本道91 | 奇米色一区二区三区四区| 亚洲欧美色一区| 成人av网站免费| 国产精品久久久久久久久久久免费看 | 国产精品久久久久一区二区三区 | 国产亚洲综合色| 欧美韩国日本一区| 国产91综合网| 日本一区二区三区高清不卡| 精品一区在线看| 久久精品欧美一区二区三区麻豆| 日韩精品一级中文字幕精品视频免费观看| 国产成人免费在线视频| 国产精品久久国产精麻豆99网站| 国产麻豆精品95视频| 666欧美在线视频| 蜜臀99久久精品久久久久久软件| 337p日本欧洲亚洲大胆色噜噜| 极品瑜伽女神91| 欧美成va人片在线观看| 亚洲欧美在线高清| 色一情一乱一乱一91av| 亚洲一二三区视频在线观看| 7777精品伊人久久久大香线蕉经典版下载| 亚洲一线二线三线久久久| 欧美人与性动xxxx| 丁香六月综合激情| 亚洲v精品v日韩v欧美v专区| av在线综合网| 麻豆freexxxx性91精品| 国产精品久久久久久久裸模| 欧美一区二区三区视频在线| 懂色av噜噜一区二区三区av| 亚洲欧美日韩中文播放| 精品国产成人系列| 欧美日韩综合一区| 91蜜桃视频在线| 成人小视频免费在线观看| 亚洲一区二区成人在线观看| 久久久青草青青国产亚洲免观| 欧美无人高清视频在线观看| 老司机精品视频线观看86| 亚洲精品免费在线观看| 欧美国产亚洲另类动漫| 精品剧情在线观看| 欧美一级高清大全免费观看| 欧洲国内综合视频| 欧美无砖专区一中文字| 99久久久免费精品国产一区二区| 国产主播一区二区三区| 麻豆精品视频在线观看免费| 亚洲国产精品一区二区尤物区| 亚洲在线观看免费视频| 国产无人区一区二区三区| 精品日韩一区二区三区| 8x福利精品第一导航| 色成人在线视频| 欧美视频在线一区二区三区| 欧美三级乱人伦电影| 4hu四虎永久在线影院成人| 777色狠狠一区二区三区| 欧美日韩在线播放三区四区| 欧美中文字幕一二三区视频| 成人免费高清在线| 一本大道久久a久久精二百| 欧美日韩国产片| 国产日产精品一区| 亚洲黄色免费电影| 免费成人在线视频观看| 久久99精品国产麻豆婷婷洗澡| 国产一区二区福利| 欧美色图天堂网| 久久综合狠狠综合| 日本免费新一区视频| 国产成人aaa| 色悠久久久久综合欧美99| 欧美成人在线直播| 亚洲日本韩国一区| 国产乱码精品一区二区三区av| 93久久精品日日躁夜夜躁欧美| 欧美一区二区三区人| 久久久99精品免费观看不卡| 一个色妞综合视频在线观看| 国产99久久久精品| 精品国内片67194| 午夜电影一区二区| 日韩一区二区在线观看| 天天av天天翘天天综合网色鬼国产| 欧美日韩国产一级片| 日产国产高清一区二区三区| 激情五月婷婷综合网| 26uuu久久天堂性欧美| 日韩在线a电影| 欧美性高清videossexo| 亚洲二区在线视频| 91麻豆精品国产无毒不卡在线观看| 日韩理论电影院| 51精品秘密在线观看| 美女久久久精品| 欧美一区二区三区男人的天堂 | 美日韩黄色大片| 2017欧美狠狠色| 国产91丝袜在线播放0| 亚洲欧美精品午睡沙发| 91精品婷婷国产综合久久竹菊| 精品在线一区二区三区| 国产精品国产三级国产三级人妇 | 日本一区二区成人| 欧美日韩一本到| 丁香婷婷深情五月亚洲| 亚洲.国产.中文慕字在线| 国产偷国产偷亚洲高清人白洁 | 日本一区二区三区在线不卡| 91色porny蝌蚪| 懂色av中文字幕一区二区三区| 亚洲精品国产品国语在线app| 欧美精品一区二区三区视频| 日本精品一级二级| 99免费精品视频| 激情成人综合网| 天天亚洲美女在线视频| 亚洲毛片av在线| 亚洲美女电影在线| 中文字幕在线一区二区三区| 亚洲精品在线观| 日韩欧美国产高清| 欧美美女网站色| 欧美日韩在线直播| 欧美视频一区二区三区四区| 91福利精品视频| 欧美写真视频网站| 欧美视频中文字幕| 91麻豆精品国产自产在线观看一区 | 美女久久久精品| 国产中文字幕精品| 成人激情视频网站| 色综合久久综合| 91福利小视频| 91精品蜜臀在线一区尤物| 欧美日韩国产免费| 日韩欧美一级精品久久| 欧美mv日韩mv| 欧美国产一区视频在线观看| 最新不卡av在线| 午夜视频在线观看一区二区 | 欧美一区二区三区啪啪| 欧美日韩一级片在线观看| 欧美久久久久久蜜桃| 久久综合99re88久久爱| 亚洲精品乱码久久久久久日本蜜臀| 亚洲国产日韩在线一区模特| 日本不卡一二三|