Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            unsafe
            {
                m_HOpen = CWinINet.InternetOpen("FTPClient", CWinINet.INTERNET_OPEN_TYPE_PRECONFIG
                                                , null, null, 0);

                if (m_HOpen.ToPointer() == null)
                {
                    MessageBox.Show("Loi. InternetOpen");
                    // Xu ly neu da co ket noi roi
                }
            }
            Application.Run(new Form1());
        }