在Vista的Right Click menu 加上 open command prompt Here

Vista學習心得 No Comments »

Command.jpg

 

Here is registry file, copy it and save to file which name is “Add.reg”.

Double click “Add.reg”

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@="Open Command Prompt Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="Cmd.exe /k pushd %L"

Some article about development application under Mac OS X

Vista學習心得, VC++程式設計 No Comments »
  1.  旧一篇: Mac OS X Programming读书笔记1 - 系统架构
    Refer Mac OS architecture
  2.  新一篇: Mac OS X Programming读书笔记2 - HelloWorld
    How to write Hello world
  3.  新一篇: Mac OS X Programming读书笔记3 - 事件处理 
  4.  Mac OS X - 維基百科,自由的百科全書
    Wiki
  5.  Learn C with Project Builder
    IDE under MAC OS X
  6.  Creating Mac OS X applications with MS Visual Studio Express
    Using open source project Mono framework to implement MAC OS X application via VC++.
  7.  Xcode home page
    Another IDE for MAC OS X.

Multiple-touch Microsoft

Vista學習心得 No Comments »

Please refer http://channel9.msdn.com/pdc2008/PC03/ for more detail.

Multi-Touch.jpg

API analysis:

  1. GOOD (MultiTouchScratchPadRTS)
    1. It cold migrate into WPF.
    2. It also the row data no such Gesture API for using.
    3. Just like some raw data for WMTouch.
    4. MS Sample:  下載 
  2. Better (MultiTouchGesture)
    1. Only work on Win7 SDK.
    2. Only some Gesture for using (Zoom/Rotate …)
    3. Work with C++, might need some work for WPF.
    4. MS Sample: 下載
  3. Best (WMTouch)
    1. Raw data no other API for it.
    2. MS Sample: 下載

Working machine and driver:

  • OS
    • Win7 B6801 beta
  • Machine:
    • Dell Latitude XT  (Over two point support)
  • Driver:

Summary:

Multiple touch depend on Target machine, OS and driver. Especially the driver and OS. Sometime we found the driver may failed after some instruction. It is greate for any app to support multiple-touch, but how to work-out a greate user behavior is harder than migration.

Reference:

About Power Plan on Vista

Vista學習心得 No Comments »

PowerPlan.jpg

 

I study Power schema part recently. I found there are something different with XP/VISTA.

Example: ReadProcessorPwrScheme (http://msdn.microsoft.com/en-us/library/aa373190(VS.85).aspx)

But I found it failed in VISTA, but Microsoft RD replay under MSDN

http://social.msdn.microsoft.com/forums/en-US/windowsgeneraldevelopmentissues/thread/c0a6e824-851c-436b-bda9-b5dd5a99a1ac/

We should using new implement PowerEnumerate  under Vista

http://msdn.microsoft.com/en-us/library/aa372730(VS.85).aspx

Detail Power management feature

http://msdn.microsoft.com/en-us/library/aa373163(VS.85).aspx

好用小工具–替換MCE/WMP 的 Video decoder (影像解碼器)

Vista學習心得, 網路上好玩的事情 No Comments »

 

Vista MCE(Meida Center)是一個相當強大而好用的全螢幕播放程式(也跟XBOX360裡面一樣)。他雖然好用~ 但是MS的影像解碼器一樣只是夠用就好,如果想要讓你的MCE效率更好、畫面更漂亮。通常的選擇是去換一套撥放軟體(WINDVD或是POWERDVD)但是~~~ Vista MediaCenter Decoder Utility是一個相當好用的小軟體,可以讓你很快速的替換掉他的VIDEO Decoder(影像解碼器)。 這樣一來你就不需要換軟體就可以有更高的效能與支援。

clip_image002

Download http://www.whittakermoore.com/VMCD.exe

Detail description: http://tdnj.pixnet.net/blog/post/13748926

 

 

WMP_Dec.jpg

《說明》如何讓 Microsoft Media Player 使用不同的 MPEG Decoder
(資料來源) http://www.zhe-feng.com.tw/forum/archiver/?tid-601.html 

一般我們在使用 Media Player 時, 它會自動去抓取系統中可用的 MPEG Decoder, 雖然這樣很簡單又方便, 但是遇到這個 Decoder 表現不好, 例如去交錯做不好或者沒有做, 或者 CPU 使用率太高, 亦或畫質表現不佳等等. 我們可以讓它去選取另一個在系統中可用的 MPEG Decoder 嗎? 當然可以, 本文就是解說要如何讓它改用你指定的 Decoder. ( ** MPEG CODEC 請自行安裝 ** )
首先, 我們要先下載一個工具軟體
Windows XP Video Decoder Checkup Utility (在 VISTA 下也可以用來設定 Media Player)
http://www.microsoft.com/downloads/details.aspx?FamilyID=de1491ac-0ab6-4990-943d-627e6ade9fcb&displaylang=en&Hash=zB70IgOupjB7du1zYHSvaIUsfUP4rxLtY4Kga%2fFcR%2fVtbbQyzHsjDX2dnP7AOtWyMRhEpPsT5mAo%2bHFS8gXi%2fA%3d%3d]http://www.microsoft.com/downloads/details.aspx?FamilyID=de1491ac-0ab6-4990-943d-627e6ade9fcb&displaylang=en&Hash=zB70IgOupjB7du1zYHSvaIUsfUP4rxLtY4Kga%2fFcR%2fVtbbQyzHsjDX2dnP7AOtWyMRhEpPsT5mAo%2bHFS8gXi%2fA%3d%3d

我們將會下載到一個 DECCHECKSetup.EXE, 執行它後會開始安裝, 過程很簡單, 所以不再詳述.
安裝完畢後, 在安裝的路徑下會看到一個執行檔 DECCHECK.exe, 它就是本篇文章的主角. 在開始執行它之前, 請確定你的 XP 系統登入權限是 Administrator, 或這等級的 Group. 不然會出現下列訊號
[attach]961[/attach]
在 VISTA 系統下, 除了在 Administrator 權限, 仍要加入以下操作 :
請將滑鼠移到 DECCHECK.exe 執行檔位置, 按滑鼠右鍵會出現下圖.

About Window autoplay on Vista

Vista學習心得 No Comments »

autoplay.jpg

CD-ROM Does Not Run Automatically When Inserted
http://support.microsoft.com/kb/177880/en-us

當插入 CD - ROM 不會自動執行
http://support.microsoft.com/kb/q177880/

Windows Media Player Does Not Play Audio CD-ROMs Automatically
http://support.microsoft.com/kb/279614/en-us

Audio CD Auto Play
http://forums.techguy.org/multimedia/37294-audio-cd-auto-play.html

CD Autorun
http://www.vista-xp.co.uk/forums/faqs-tips-tricks/147-cd-autorun.html
Edit the registry : look for:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdromon "AutoRun":
"1" for enable
"0" for disable
——————————————————————————–
From Microsoft Knowledge Base Article - 330135… quote:
A value of 0xb5 in the following registry key turns off the AutoRun feature for CDs:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun
You must set the hexadecimal value to 91 to enable the AutoRun feature.

If you want enable double click on my computer for audio CD, just try to create file association for "*.cda" for specific appliation.
想要啟動雙擊光碟片在"我的電腦"上? 就把"檔案關聯" *.cda跟想要建立的應用程式,建立起來。

How to change and find Autoplay setting?

NET程式設計, Vista學習心得, VC++程式設計 No Comments »

AppPicker.JPG
(Application Picker dialog from XP)

Application Picker is a dialog which will show-up when you insert DVD title or new medium in your computer. It show all playable application and let you to choose one from the list.

One day, I just woundering where can I find the setting? How could I change the autoplay icon?  How could change the autoplay string?

Here is the detail document from MSDN: Preparing Hardware and Software for Use with AutoPlay

In follows steps, I will show you how to use “REGEDIT.EXE” to find out the setting and how it work.

Read the rest of this entry »

Some interest thing about UAC

Vista學習心得 No Comments »

Windows Vista

There are some interesting thing which I tried to understand the different UAC behavior with Vista verion #5XXX with RTM version.

  1. How to not store file in virtual store when UAC is turn on?
    Ans: Use trust info in your manifest info. It can announce UAC not to use virtual store(Virtual Store Redirection was implemented to maximise compatibility of applications moving into the more secure Windows Vista environment without the need to recompile application code).

    What if you don’t want to save file in virtual store when your privilege is not administrator? (Just let don’t let user to write file in such C:\Program Files; C:\; C:\Windows … etc)

    If you add follow code in you manifest, virtual store will be disable.
    <security>
     <requestedPrivileges>
      <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
     </requestedPrivileges>
    </security>

    For this case, you should add trust infomation in your manifest file which like (Require Administrator/As Invoker). You can refer this article for more detail.

  2. Don’t use MT.exe to link manifest resource in your .exe and .dll
    Ans: As I found trust information about manifest file in Microsoft Forum.  This discussion thread also suggest us not to use MT.exe to link manifest information in your .exe and .dll, since there might a bug from Microsoft which will cause Blue screen (Yes,!!  Blue God damn screen.) or freeze in your computer.

    It will happen when your manifest information contain

    <ms_asmv3:trustInfo xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3">

    For more information, you can refer this article(The computer may restart when you add a manifest that has the Windows Vista extension to an .exe file or to a .dll file in Windows XP Service Pack 2 (SP2)). It is better to use ThemeMe.exe  to link it.

  3. Does UAC really safe for us?
    Ans: There is also an interesting news which Symantec: Don’t Trust Windows Vista UAC Prompts!. This news show, Symantec found Microsoft can use RunLegacyCPLElevated.exe(Which is designed to provide backward compatibility by allowing legacy Windows Control Panel plug-ins to run with full administrative privileges.) to get full  administration privilege to call interface "CPlApplet", which is then called with a number of different parameters depending on the action being performed.

Microsoft Gadget

Vista學習心得 No Comments »

Home

Windows Vista Desktop with Windows Sidebar and gadgets

There is some resource about How to write a Gadget in VS2005.

For SDK of MS Gadget, You can refer this site for more detail, or go to Gadget Blog.

Turn on/off “Aero glass” in Vista

Vista學習心得 No Comments »

Windows Vista Aero Glass

"Aero Glass" is a new feature which allows Vista to show aero effect like the snapshot.

How to turn on or turn off it?
[My Computer]–> [Advance Setting] –> [Performance Setting] –> [Video Effect] –> [Enable Desktop Composition].

Or[Ctrl+ Shift+ F9]

How to turn on/off it by Window API?
DwmEnableComposition(BOOL fEnable);

How to use "Aero Glass" to blur a Window?
DwmEnableBlurBehindWindow  and DwmExtendFrameIntoClientArea.


For more detail information to refer

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS 登入