Snippets of Windows API C++ / assemby / perl code