devel-windows.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 10 Jun 2010 15:02:05 +0300
changeset 413 97bcb31af707
parent 343 64bf32279008
child 426 24ede02309c6
permissions -rw-r--r--
Updated installation instruction for cygwin.

-*- mode: outline -*-

* Dependency Walker.

Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows
module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of
all dependent modules. For each module found, it lists all the functions that
are exported by that module, and which of those functions are actually being
called by other modules. Another view displays the minimum set of required
files, along with detailed information about each file including a full path
to the file, base address, version numbers, machine type, debug information,
and more.

See

  http://www.dependencywalker.com/

* Sysinternals.

TODO

* Running at startup.

  HKCU\Software\Microsoft\Windows\CurrentVersion\Run
                Launches a program automatically when a particular user logs
                in. This key is used when you always want to launch a program
                when a particular user is using a system.
  HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
                Launches a program the next time the user logs in and removes
                its value entry from the registry. This key is typically used
                by installation programs.
  HKLM\Software\Microsoft\Windows\CurrentVersion\Run
                Launches a program automatically at system startup. This key
                is used when you always want to launch a program on a
                particular system.
  HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
                Launches a program the next time the system starts and removes
                its value entry from the registry. This key is typically used
                by installation programs.
  HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices
                Launches a service (a standard NT service or a background
                process) automatically at startup. An example of a service is
                a Web server such as Microsoft Internet Information Server.
  HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
                Launches a service (a standard NT service or a background
                process) the next time the system is started, then removes its
                value entry from the registry.

Values to registry on Windows XP can be added by:

  cmd> reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v run.bat /t REG_SZ /d "path\to\run.bat"
  cmd> reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run   <-- see what done

* MFC.

** Can I link to MFC statically.

Yes.

  http://msdn.microsoft.com/en-us/library/f22wcbea%28VS.80%29.aspx

* Microsoft Visual C++ Redistributable Package.

  http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displayLang=en
                This package installs runtime components of C Runtime (CRT),
                Standard C++, ATL, MFC, OpenMP and MSDIA libraries.