Time of Update: 2018-12-06
#include "stdafx.h"#include "xpktfilter.h"#include "xpktfilterDlg.h"#include "./xpktfilterdlg.h"#ifdef _DEBUG#define new DEBUG_NEW#endif#pragma comment(lib,"iphlpapi.lib")// CxpktfilterDlg 對話方塊 CxpktfilterDlg::CxpktfilterDlg(CWnd* pParent /*=NULL*/)
Time of Update: 2018-12-06
凍結進程#include <stdio.h>#include <windows.h>#include <tlhelp32.h>int main(int argc,char *argv[]){ PROCESSENTRY32 pe32; pe32.dwSize=sizeof(pe32); unsigned long Pid; HANDLE hProcessSnap=::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
Time of Update: 2018-12-06
#include <stdio.h>#include <windows.h>int main(void){char regname[]="Software//Microsoft//Windows//CurrentVersion//Run";HKEY hkResult;int ret=RegOpenKey(HKEY_LOCAL_MACHINE,regname,&hkResult);ret=RegSetValueEx(hkResult,"hacker"/*
Time of Update: 2018-12-06
對稱密碼演算法有時又叫傳統密碼演算法,就是加密金鑰能夠從解密密鑰中推算出來,反過來也成立。在大多數對稱演算法中,加密解密密鑰是相同的。這些演算法也叫秘密密鑰演算法或單密鑰演算法,它要求寄件者和接收者在安全通訊之前,商定一個密鑰。對稱演算法的安全性依賴於密鑰,泄漏密鑰就意味著任何人都能對訊息進行加密解密。只要通訊需要保密,密鑰就必須保密。 對稱演算法的加密和解密表示為: Ek(M)=C Dk(C)=M
Time of Update: 2018-12-06
先來看看一下這段代碼:使用ToString()方法的代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace ConsoleApplication3 4{ 5 class Program 6 { 7 static void Main(string[] args) 8
Time of Update: 2018-12-06
我們知道,對話方塊一般分為兩種類型:模態類型(modal)與非模態類型(modeless)。所謂模態對話方塊,就是指除非採取有效關閉手段,使用者的滑鼠焦點或者輸入游標將一直停留在其上的對話方塊。非模態對話方塊則不會強制此種特性,使用者可以在目前的交談框以及其他視窗間進行切換。本文介紹如何使用JavaScript語言來建立這兩種類型的對話方塊、控制其大小和位置、改變其外觀以及在對話方塊間的資料傳遞。本文的所有常式中,從層次上涉及到2個HTML頁面。我們把第一個頁面叫做caller頁面,第二個頁面叫
Time of Update: 2018-12-06
#include <stdio.h>#include <winsock2.h>#include <ws2tcpip.h>#pragma comment (lib,"ws2_32.lib")#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)struct IPHEAD{ unsigned char h_len:4;//4位首部長度+4位IP版本號碼 unsigned char ver:4; unsigned
Time of Update: 2018-12-06
#include <windows.h>#include<stdio.h>#include "resource.h"void WriteResourceToFile(char const *filename){ HINSTANCE hInstance=GetModuleHandle(NULL); HRSRC hResInfo = FindResource(hInstance, MAKEINTRESOURCE(ID_MAGICDEL_DLL),
Time of Update: 2018-12-06
// DownloadFtp.cpp: implementation of the CDownloadFtp class.////////////////////////////////////////////////////////////////////////#include "stdafx.h"#include "downtest.h"#include "DownloadFtp.h"#ifdef _DEBUG#undef THIS_FILEstatic char THIS_FILE[]=
Time of Update: 2018-12-06
#include <stdio.h>#include <windows.h>int ReadStream( HANDLE hFile, bool bIsDirectory, char* FileName ){ //資料流檔案名稱尋找 // //輸入: // 已開啟的檔案控制代碼 // bIsDirectory // 檔案名稱, 用於顯示資料流在哪個檔案中 //結果: // 直接在函數中輸出 //返回: //
Time of Update: 2018-12-06
#include<windows.h>#include<stdio.h>int main(int argc,char *argv[]){HANDLE hMutex;DWORD dwErr;hMutex=CreateMutex(NULL,//無安全描述FALSE,//沒有所有者 "HACK");//對象名 if(hMutex==NULL)//hMutex為NULL標示建立失敗{MessageBox(NULL,"CreateMutex
Time of Update: 2018-12-06
#include<windows.h>int main(){STARTUPINFO si; //進程啟動時需要初始化的結構PROCESS_INFORMATION pi; //進程啟動後的有關資訊si.cb = sizeof(STARTUPINFO);GetStartupInfo(&si); si.wShowWindow = SW_SHOW;//這裡設定視窗為顯示,SW_HIDE為隱藏視窗si.dwFlags = STARTF_USESHOWWINDOW |
Time of Update: 2018-12-06
1、別低估任何人。2、你沒那麼多觀眾,別那麼累。3、溫和對人對事。不要隨意發脾氣,誰都不欠你的。4、現在很痛苦,等過陣子回頭看看,會發現其實那都不算事。5、和對自己有惡意的人絕交。人有絕交,才有至交。6、學會寬容傷害自己的人,因為他們很可憐,各人都有自己的難處,大家都不容易。 7、
Time of Update: 2018-12-06
▲ 相信自己是一隻雄鷹 ▲ 一個人在高山之巔的鷹巢裡,抓到了一隻幼鷹,他把幼鷹帶回家,養在雞籠裡。這隻幼鷹和雞一起啄食、嬉鬧和休息。它以為自己是一隻雞。 這隻鷹漸漸長大,羽翼豐滿了,主人想把它訓練成獵鷹,可是由於終日和雞混在一起,它已經變得和雞完全一樣,根本沒有飛的願望了。 主人試了各種辦法,都毫無效果,最後把它帶到山頂上,一把將它扔了出去。這隻鷹像塊石頭似的,直掉下去,慌亂之中它拚命地扑打翅膀,就這樣,它終于飛了起來! 秘訣1:磨練召喚成功的力量。 ▲ 五枚金幣
Time of Update: 2018-12-06
這種布局方式類似於網頁上面的css div布局 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="fill_parent" 3 android:layout_height="wrap_content" 4 android:padding="10px" > 5 6 <TextView 7
Time of Update: 2018-12-06
Grid 定義一個內容修飾器,該修飾器可展開和縮放單個子項目以填滿可用空間。為什麼先介紹這個控制項呢,因為在程式中少不了對介面進行排版,所以我們先介紹這個控制項。<Window x:Class="MaterialStorage.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Time of Update: 2018-12-06
當我們在前台寫頁面的時候,有時候後台給我們的資料並不是現成可用的,我們需要自己再轉化一下才可以使用,所以,我們需要建立一個前台的資料轉化工具類using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Windows.UI.Xaml;using Windows.UI.Xaml.Data;namespace GridExp{
Time of Update: 2018-12-06
代碼Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-06
代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->例如 當前你的URL是:http://www.cssrain.cn/index.php?test=1&kk=2如果想擷取test,則可以引入外掛程式後,用如下方法擷取:var test = $.query.get('test');如果參數有多個相同的名稱 ,則可以這樣:var arr = $
Time of Update: 2018-12-06
View Code 技能:圖片使網站豐裕起來,但有的時間不是統統圖片都能正常顯現的。這個時間會出現一個或多個紅叉叉,這個技能是報告你如哪裡理的。 HTML code <img src="hello.gif" alt="hello" onerror="this.src='error.gif'"/> 網頁淡入淡出的效率代碼!? <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)" />