日期:2014-05-17 浏览次数:20782 次
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Runtime.InteropServices;
namespace LMZ566666
{
public partial class Form1 : Form
{
public int pWidth;
public int pHeight;
public int nPort = 0;
public static IntPtr hWnd;
public static IntPtr sFileName;
public static IntPtr colorKey;
public static IntPtr nPause;
public static bool bOverlay;
public static string nMsg;
public Form1()
{
InitializeComponent();
}
private string m_strPlayFileName;
private void button1_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
m_strPlayFileName = openFileDialog1.FileName;
openFileDialog1.Filter = "Hikvision文件(*.mp4;*.264)|*.mp4;*.264|所有文件(*.*)|*.*";
if (!string.IsNullOrEmpty(m_strPlayFileName))
{
OpenFile();