Geeks With Blogs

News
WinToolZone - Spelunking Microsoft Technologies
I work as a developer on the Common Language Runtime (CLR) team, specifically in the areas of exception handling and CLR hosting.
Disclaimer

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Inside and Out... An attempt to understand technology better... VS 2005
[Download] CSLMail - SMTP/POP3 email component for .NET Framework and .NET Compact Framework
CSLMail is my pet project on which I have been working for past few years. I have recently worked towards updating, feature enhancing and bug-fixing it, resulting in v2.0. CSLMail 2.0 is a free and feature rich .NET based email component, which supports the SMTP and POP3 protocols, completing the need to design a complete email client. Its comes with complete documentation and features include: SMTP Complete SMTP support for sending emails SMTP Authentication supported Attachments supported using ......

Posted On Tuesday, January 10, 2006 10:03 PM

TechED 2005 India: .NET Compact Framework 2.0....
Just finished with the demos of another of my session at TechED 2005 India - Introducing .NET Compact Framework 2.0. There's a ton to talk about the new features of .NET CF 2.0 and in this talk, I would be talking about: Generics, Anonymous Methods COM Interop Support Marshalling Support Enhancements in System.Threading Enhancements in cross-thread control access One of the better things in this version of .NET CF is a good amount of COM Interop support that has come in - within VS IDE as well. So ......

Posted On Wednesday, June 1, 2005 4:57 PM

TechED Sri Lanka Presentations
[Original Post Date: 17th October 2005] Below are the presentations for the sessions delivered at TechED Sri Lanka: What's new in Windows Mobile 5.0 Developing High Performance Applications with .NET Compact Framework VC++ 2005: New Features For Better Performance Building Bluetooth Applications with Windows CE 5.0 and Windows Mobile SQL Mobile 2005: Overview ......

Posted On Thursday, January 5, 2006 10:00 AM

India Technology Roadshow Presentations and Downloads
[Original Post Date: 14th October 2005] Technology Roadshows, which have been on for almost a month across India, have been very successful. I have been speaking in the Developer Track on Building Performant Applications using .NET Framework 2.0 and Debugging Techniques for .NET Framework 2.0 and VS 2005. You can download the presentations and demos from http://www.microsoft.com/in... ......

Posted On Thursday, January 5, 2006 9:58 AM

WindowsIdentity Debugger Visualizer for Visual Studio 2005
[Original Post Date: 9th October 2005] I just finished implementing WIVisualizer, a WindowsIdentity debugger visualizer for Visual Studio 2005. It displays important details like: Username Authentication type Impersonation Level Account type - System or Guest Anonymous or Authenticated identity Windows groups the identity is member of Here's a screen-shot for the same: It has been built using the Visual Studio 2005 Release Candidate and can be downloaded from here. To install, simply copy the DLL ......

Posted On Thursday, January 5, 2006 9:53 AM

[Download] vCardCE10 - vCard generation library for .NET Compact Framework 1.0
[Original Post Date: 26th September 2005] Few weeks back, I had written ShareContacts - an application for Windows Mobile 5.0 based PocketPC that could be used to share contacts, using the vCard format, with other devices. Since it was done using .NET Compact Framework 2.0, and also used some APIs specific to Windows Mobile 5.0, I decided to work upon it and get the (almost) same functionality to Windows Mobile 2003 platform. The result is vCardCE10 - class library that allows you to set few properties ......

Posted On Thursday, January 5, 2006 9:51 AM

Image Visualizer for VS 2005 Beta 2
[Original Post Date: 25th September 2005] I am currently on the Technology Roadshow across 6 six cities in India, where I am talking about Building performant applications and Debugging Techniques for .NET Framework 2.0. One of the things the developers here are amazed at are the DataTips that have been introduced with VS 2005, and also with Visualizers. Infact, when I demonstrate the DataSet Visualizer that ships with VS 2005, you can hear the WOW! of the audience :) In the same session, we then ......

Posted On Thursday, January 5, 2006 9:48 AM

TechED 2005 India: Discussing Windows Mobile 2005...
One of the key technologies that we are going to talk about at TechED 2005 India is Windows Mobile 2005 - with enhancements like Managed POOM, Message Interception, System State notification, it is one of the coolest things to have happened to managed development for compact device development. I just finished preparing my deck and demos for MED 302 - New Managed Messaging, State and Notification APIs in Windows Mobile on Day 2 of TechED - http://www.microsoft.com/in... ......

Posted On Monday, May 30, 2005 3:59 PM

Make a phone call within the Emulator
For PocketPC and SmartPhone emulators with virtual radio support, you can make phone calls from within the emulator by using the number +14250010001.  The same number can be used to send SMS within the emulator as well!

Posted On Friday, May 27, 2005 3:18 PM

Shared Source Bluetooth Library

Check out the shared source Bluetooth class library - Windows Embedded Source Tools for Bluetooth

Posted On Thursday, May 26, 2005 7:47 PM

Technology Roadshow: September/October 2005
[Original Post Date: 18th September 2005] Starting from 20th of September, Technology Roadshow starts in India. We are going to 6 different cities and doing two complete days of technical sessions across a breadth of technologies: for developers, IT professionals, Windows Mobile and Tablet PC developers and Architects. Below are the dates for the same: City Day 1 Day 2 Mumbai 20th Sep 21st Sep Pune 22nd Sep 23rd Sep Chennai 27th Sep 28th Sep Hyderabad 30th Sep 1st Oct New Delhi 4th Oct 5th Oct Bangalore ......

Posted On Thursday, January 5, 2006 9:46 AM

ClickOnce and VS 2005 Beta 1
When you publish an application using VS 2005 Beta 1 for ClickOnce, the publish process goes just fine. However, attempts to deploy application by double-clicking the deployment manifest fail, by giving an error that talks about a missing provider information. This happens since VS picks up the Publisher automatically from the HKLM\Software\Microsoft\Win... NT\CurrentVersion registry key's RegisteredOrganization string value. If this value is empty string, VS still goes ahead with the publishing ......

Posted On Monday, August 9, 2004 1:28 AM

Its a little over 6pm on a Saturday...
.. and now I find time to do something I like doing a lot - exploring the technology. VS 2005 Beta 1 [build 40607.16] was already on my laptop and my attempt to install SQL Server 2005 Beta 2 RC 1[ build 9.00.0852] gave me an error - that I have an incompatible CLR version. Couple of checks and am in the process of installing it... Ofcourse, VS has been uninstalled and for now, SQL Server 2000 and SQL Server 2005 Beta 2 [RC1] are coexisting just fine. BTW, the distributed application designer in ......

Posted On Saturday, July 17, 2004 3:42 PM

Enumerating Managed Processes
[Original Post Date: 16th August 2005] System.Diagnostics.Process class is a managed wrap over a subset of the ToolHelp API - as it enumerates only the process list. Not only that, it will list all the running processes, irrespective of whether they are running unmanaged code or running managed code. What if you wish to identify which of these processes are running managed code? Unfortunately, neither the ToolHelp API, nor the Process class allow us to identify managed processes from the list they ......

Posted On Thursday, January 5, 2006 9:33 AM

Working with NTFS Access Control using .NET Framework 2.0
.NET Framework 2.0 ("Whidbey") has introduced a new set of classes in the Framework Class Library (FCL) that allows you to work with the NTFS Access Control Lists. You can get object owners, security descriptors, create security descriptors, and much more. All of this resides under the System.Security.AccessControl namespace. Below is a snippet that exemplifies how to use it. Scenario: You need to create a child folder without the permissions inherited by the parent folder, but with only permissions ......

Posted On Tuesday, July 12, 2005 12:37 PM

Understanding CLR's Special Threads

There are multiple special threads which the CLR maintains and executes. Yun Jin talks about them in his blog at http://blogs.msdn.com/yunjin/archive/2005/07/05/435726.aspx.

Must read for those who want to understand CLR better!

Posted On Tuesday, July 12, 2005 9:48 AM

TechED 2005 India: Bangalore over; Chennai is next...
TechED 2005 India, at Bangalore, got over today. It was a packed event with almost 1200 Developers, ITPros and Architects attending the event. I primarily spoke at the Mobile and Embedded track on Windows Mobile 2005 - managed and unmanaged development sessions. Infact, today I did a hands-on lab for the same as well - Windows Mobile 2005 seems to have got the attention from the compact device developers - Managed POOM rocked :) The Visual C++ 2005 session which I co-presented with Sridhar Maghugiri, ......

Posted On Thursday, June 16, 2005 9:00 PM

TechED 2005 India: Talking Indigo...
Its been a long week - and I have been (still am) neck deep with my TechED 2005 India preparation. I just finished with my deck on Programming with Indigo. Its going to be really interesting session as we are going to neck deep into understanding how to build: Secure Transactional Multi-endpoint Routable service using Indigo. I just finished writing those demos. BTW, this TechED, I am delivering 6 breakout sessions, 1 deep dive and 1 HOL on Windows Mobile 2005. Come to www.techedindia.com - its going ......

Posted On Wednesday, June 8, 2005 4:03 PM

CERapi - Using CEFolder and CEFile
CERapi allows you to work with the file system of the Windows CE device and the snippet below shows how easy it is to do the same: // Working with device foldersCEFolder rootFolder = new CEFolder(\\storage\\My Documents);Console.WriteLin... {0}",rootFolder.Path);Conso... Files: {0}",rootFolder.TotalFileCo... SubFolders: {0}",rootFolder.TotalSubFol... // Copy File from desktopConsole.WriteLine("Move C:\\CASDEMO.TXT to device: {0}",rootFolder.MoveFileFro... ......

Posted On Friday, April 1, 2005 11:08 AM

Win32 API -> .NET Framework Mapping

Do you want to know which Win32 API maps to what part of the .NET Framework? If yes, visit http://msdn.microsoft.com/netframework/programming/interop/default.aspx?pull=/library/en-us/dndotnet/html/win32map.asp

Posted On Tuesday, March 1, 2005 4:25 PM

Global Memory and Battery Status Support in CERapi
I just finished implementing support for getting the global memory details and the battery charge details in CERapi - my managed RAPI implementation. To get these details, simply obtain the CESystemInformation instance and use the GlobalMemoryInformation and BatteryInformation properties to get the details, as shown in the code snippet below (si, in the snippet below, is reference to CESystemInformation object): // Global Memory Details CEGlobalMemory gm = si.GlobalMemoryInformation; Console.WriteLine("Memory ......

Posted On Tuesday, February 15, 2005 7:22 PM

C# "internal" for managed C++
C# has the internal keyword that allows one to define types that are publicly available within the assembly but private outside it - implying that external assemblies cannot see them. If you want the same to be done in managed extensions for C++, use the public private: access specifier as shown below: public __gc class MyClass { private: int a; public private: MyClass() { // do some work } public: void SomeMethod(void) { // some work done } }; In the snippet above, the constructor is functionally ......

Posted On Tuesday, February 15, 2005 2:39 PM

Welcome Windows CE Remote API (RAPI) to the managed world
At the last Mobile and Embedded DevCon held at Bangalore, India, I spoke about the Windows CE Remote API, better known as RAPI.RAPI is currently not available in the .NET Framework. To alleviate this issue, I have started working on a managed RAPI to get the functionality in the managed world - following is how the code looks like: CERapi rapi = new CERapi(); if (rapi.Init(5000) != InitReturnCode.Success) Console.WriteLine("Unable to initialize RAPI"); else { Console.WriteLine("Initialized RAPI"); ......

Posted On Tuesday, February 15, 2005 10:11 AM

System.Data.DataView Debug Visualizer for Visual Studio 2005 Beta 1
One of the debug visualizers shipped with VS 2005 Beta 1 is the DataSet/DataTable visualizer that allows you to visualize a DataSet and DataTable in a grid. However, it doesn't let you view a DataView object. To overcome this, I have written the DataViewVisualizer that allows you to analyze a System.Data.DataView object during debug time and see how it under goes changes when its modified or filters are applied. For instance, when a DataView object is hovered upon by the mouse and the visualizer ......

Posted On Tuesday, January 18, 2005 10:46 AM

Data Design Time Changes from VS2005 Beta 1 to Beta 2...
Check them at http://blogs.msdn.com/vsdata/archive/2005/01/12/351721.aspx

Posted On Friday, January 14, 2005 12:04 PM

Want to use IrDA in WinForms?
Anyone who has worked with .NET Compact Framework for sometime will know that the IrDA support is provided by the same - you can write applications that can act as IrDA listeners or clients - basically, do whatever you want using IrDA as long as you are using the .NET Compact Framework. But, how about using IrDA in regular WinForms applications? Well, until I just stumbled upon the trick I will just tell you [it's really a no-brainer], one would need to write WinSock based IrDA applications for the ......

Posted On Sunday, September 26, 2004 11:19 PM

.NET CompactFramework 2.0 and IrDAList...
After a long time, I have restarted working on the .NET Compact Framework end. And last night, I finished working on IrDAList, a PocketPC 2003 based application that will enumerate IrDA connected devices and will display their details. You can download it from http://www.wintoolzone.com/... BTW, just incase while you are developing using VS 2005 for .NET CF and your deployments to the emulator fail, install the Loopback adapter and configure the Emulator Options to bind ......

Posted On Sunday, September 26, 2004 11:25 AM

Managed code impersonation: CLR ThreadPool and more...
Under managed code, once you impersonate your application's thread using LogonUser and WindowsIdentity class's Impersonate method, you can go ahead and perform tasks using the impersonated thread as you require. However, there are couple of catches to this:1) If you launch a process using Process.Start method, the launched process will not execute under the impersonation context of your application. If you want to make that happen, you will have to launch the process using CreateProcessWithLogonW ......

Posted On Wednesday, February 9, 2005 11:43 AM

Managed CreateProcessWithLogonW
I returned this past weekend after a family function. It had me very busy and thus, no blogging for sometime for me :) That said, today I was working with one of my friends over email - she was stuck about getting to launch a process in a specific user context, using managed code. Since the .NET Framework doesn't support such functionality out of the box, we tried different ways to do this: 1) LogonUser followed by WindowsIdentity impersonation using the obtained token - the token wasn't getting ......

Posted On Wednesday, February 9, 2005 9:38 AM

Copyright © Gaurav Khanna | Powered by: GeeksWithBlogs.net