1 Star 0 Fork 20

walker/称重软件系统过磅汽车衡车牌识别停车门禁智慧城市共享地磅公磅收费

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
IPCHelper.cs 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
温暖 提交于 2023-04-14 01:50 . LPR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace LPR
{
public static class IPCHelper
{
public static readonly int WM_COPYDATA = 0x004A; // 固定数值,不可更改
[DllImport("User32.dll", EntryPoint = "SendMessage")]
public static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, ref COPYDATASTRUCT lParam);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("user32.dll", SetLastError = true)]
public static extern bool PostThreadMessage(int threadId, int msg, IntPtr wParam, IntPtr lParam);
[StructLayout(LayoutKind.Sequential)]
public struct COPYDATASTRUCT
{
public IntPtr dwData;
public int cbData;
[MarshalAs(UnmanagedType.LPStr)]
public string lpData;
}
public struct IS_STABLE_OBJ
{
public string weight;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/walkerwang/miaojialing.git
git@gitee.com:walkerwang/miaojialing.git
walkerwang
miaojialing
称重软件系统过磅汽车衡车牌识别停车门禁智慧城市共享地磅公磅收费
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385