這個技巧在常使用筆記本出差的朋友是非常有用的,比如到了另外一個環境,如客戶的公司等,總需要修改網路設定成別人的內網地址、網關、dns等,寫個批次檔,到時候改一下後一執行便可以了,比滑鼠操作來的快吧。Form:http://blog.csdn.net/zmxj 修改ip,子網路遮罩,網關,dns。“網路連接名”是你機器上網路屬性裡看到的串連名,把下面改成自己的串連名。netsh interface ip set address "網路連接名" static 192.168.0.88 255.25
編寫托盤程式主要解決兩個問題: (1)建立、修改、刪除托盤; (2)如何對托 盤接收到的訊息進行處理。 這就要用到幾個Windows API函數。 首先,Shell_NotifyIcon是用於托盤的Shell API。該API用到一個NOTIFYICONDATA結構. Type NOTIFYICONDATA cbSize As Long '該結構所佔位元組數 hwnd As Long '接收托盤表徵圖訊息的視窗指標 uID As Long
有些 Windows Communication Foundation 登錄機碼無法通過在 .NET Framework 3.0 上執行 MSI 修複操作來修複如果您刪除下面的任何登錄機碼:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceModelService 3.0.0.0HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceModelOperation
The WaitForSingleObject function checks the current state of the specified object. If the object's state is nonsignaled, the calling thread enters the wait state. It uses no processor time while waiting for the object state to become signaled or
拖放相關的介面包括 1.註冊支援拖放目標的視窗RegisterDragDrop( HWND, IDragTarget* );將需要支援拖放的目標視窗註冊為可接收資料,並傳入實現的IDragTarget介面。 2.當需要啟動拖放時調用DoDragDrop( IDataObject * pDataObject, //Pointer to the data object IDropSource * pDropSource, //Pointer to the source DWORD
緣由:某些windows版本(如windows XP HOME或者是精簡版)的添加/刪除程式組件裡面沒有IIS安裝選項而致IIS無法安裝。解決方案:(1)先下載IIS安裝檔案。你可以在網上找iis6.0完整安裝包xpSp1-3完整版等IIS版本。下載完後,解壓到任意盤符的根目錄下(如D:\,最好是根目錄,便於後面打命令),這樣解壓後的檔案夾類似於: d:\iisXPsp3(根據情況可能有所不同)。(2)修改sysoc.inf檔案配置。在“開始”菜單的“運行”中輸入“c:\Windows\inf\