Archive for December, 2004

AspNetUserPass v1.00

Posted on the December 28th, 2004 under Tools by Marco Trova

AspNetUserPass is a very simple console-based utility that displays the password of ASPNet user on your system.

[Nir Sofer]

Preprocess Win32 Messages through Windows Forms

Posted on the December 11th, 2004 under .NET by Marco Trova

Mi ricordano i salti mortali per subclassare le form di VB6:

Preprocess Win32 Messages through Windows Forms

In the unmanaged world, it was quite common to intercept Win32 messages as they were plucked off the message queue. In that rare case in which you wish to do so from a managed Windows Forms application, your first step is to build a helper class which implements the IMessageFilter interface. The sole method, PreFilterMessage(), allows you to get at the underlying message ID, as well as the raw WPARAM and LPARAM data. By way of a simple example:

public class MyMessageFilter : IMessageFilter
{
  public bool PreFilterMessage(ref Message m)
  {
    // Intercept the left mouse button down message.
    if (m.Msg == 513)
    {
      MessageBox.Show("WM_LBUTTONDOWN is: " + m.Msg);
      return true;
    }
    return false;
  }
}

At this point you must register your helper class with the Application type:

public class mainForm : System.Windows.Forms.Form
{
  private MyMessageFilter msgFliter = new MyMessageFilter();

  public mainForm()
  {
    // Register message filter.
    Application.AddMessageFilter(msgFliter);
  }
…
}

At this point, your custom filter will be automatically consulted before the message makes its way to the registered event hander. Removing the filter can be accomplished using the (aptly named) static Application.RemoveMessageFilter() method.

[C# Frequently Asked Questions]

Vs.net add-ins by zero-one-zero.com

Posted on the December 9th, 2004 under .NET by Marco Trova

VSFileFinder is a Visual Studio .NET 2003 Add-In that helps you find files quickly in large projects. It can list files from all the project types that Visual Studio supports.

VSTabs replaces the document tabs in Visual Studio 2003 with an enhanced tab control.

Keyboard shortcuts chart

[zero-one-zero.com/vs]

Small MCE 2005 FAQ…

Posted on the December 9th, 2004 under Media Center by Marco Trova

[adamga's WebLog]

“The Procedure entry point ?SQLUIUpdateRegistryFromResource@@YAJHPAUHINSTANCE_ @@IKPAPBG1@Z could not be located in the dynamic link library SQLRESLD.dll”

Posted on the December 7th, 2004 under Development Life by Marco Trova

Quando si schedula un job DTS è bene sapere:

INF: How to Run a DTS Package as a Scheduled Job
http://support.microsoft.com/?kbid=269074