Welcome to MSDN Blogs Sign in | Join | Help

November 2006 - Posts

KnownFolders, Vista and managed code

Still need to polish it but this should be in the Windwos SDK SAmples VistaBridge in the future. Comments are welcomed! namespace VistaBridge.Shell { using System; using System.Diagnostics; using System.Runtime.InteropServices; public enum KnownFolderFindMode
Posted by yvesdolc | 0 Comments

Call me crazy but one of the first thing I run after installing Vista on a box is...

mklink /J %SystemDrive%\Contacts "%USERPROFILE%\Contacts" mklink /J %SystemDrive%\Desktop "%USERPROFILE%\Desktop" mklink /J %SystemDrive%\Documents "%USERPROFILE%\Documents" mklink /J %SystemDrive%\Downloads "%USERPROFILE%\Downloads" mklink /J %SystemDrive%\Tools
Posted by yvesdolc | 3 Comments
Filed under:

GOOD BYE LENIN!

Just spent two wonderful hours watching that movie . I'm sure I missed a lot of the culture specific humour and having some of the same tunes as Le fabuleux destin d'Amélie Poulain movie was a small mistake but still, it was very nice.
Posted by yvesdolc | 2 Comments
Filed under:

My simple Display-EnvironmentVariable function for PowerShell

Function Display-EnvironmentVariable { Get-ChildItem ENV: | sort-object -property Name | format-table -autosize } set-alias dev Display-EnvironmentVariable
Posted by yvesdolc | 0 Comments

DJ Dolores: que legal!

I don't listen enough to KEXP ! Today around 1:30, I listened to a very nice tune while driving but I don't manage to get the title nor the interpreter at the end of it. Back home, I jump on the KEXP site , go to their amazing playlist section and find
Posted by yvesdolc | 0 Comments
Filed under:

My PowerShell host prompt

Looking at others code is the best way to learn. I looked at some and modified it, adding the environment variables for the Windows SDK 6.0 (for my needs). Here it is: $env:MSSdk = "C:\Program Files\Microsoft SDKs\Windows\v6.0" $env:SdkTools = "$env:MSSdk\Bin"
Posted by yvesdolc | 0 Comments

Throw If Fails

I like to use this when writting sample code: inline void Tif(HRESULT hResult) { if FAILED(hResult) { throw _com_error(hResult); } } inline void Tif( bool succeeded) { if (!succeeded) { DWORD lastError = GetLastError(); throw win32_exception(lastError);
Posted by yvesdolc | 1 Comments
 
Page view tracker