VC7 allows you to annotate your C++ source code in order to call unmanaged functions automatically, using PInvoke. The annotation is specified with the [sysimport] directive. This section show a few simple examples of how to call unmanaged code from your managed C++ programs.