| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3321 人关注过本帖
标题:无法找到 PInvoke DLL“cellcore.dll”中的入口点“GetDeviceUniqueID”,这 ...
只看楼主 加入收藏
gundumw100
Rank: 1
等 级:新手上路
帖 子:70
专家分:0
注 册:2008-1-22
收藏
 问题点数:0 回复次数:0 
无法找到 PInvoke DLL“cellcore.dll”中的入口点“GetDeviceUniqueID”,这个怎么解决?
我使用如下方法,运行时出现无法找到 PInvoke DLL“cellcore.dll”中的入口点“GetDeviceUniqueID”异常,这个怎么解决?
[DllImport("cellcore.dll")]
        private extern static int GetDeviceUniqueID([In, Out] byte[] appdata,
                                                    int cbApplictionData,
                                                    int dwDeviceIDVersion,
                                                    [In, Out] byte[] deviceIDOuput,
                                                    out uint pcbDeviceIDOutput);
        /// <summary>
        /// Windows Mobile 5.0 提供了一个新的 API 函数 GetDeviceUniqueID 专门用来获取设备 ID,它可以获取 Pocket PC 和 Smartphone 的设备 ID。
        /// </summary>
        /// <param name="AppString"></param>
        /// <returns></returns>

        public static byte[] GetDeviceID(string AppString)
        {
            // Call the GetDeviceUniqueID
            byte[] AppData = new byte[AppString.Length];
            for (int count = 0; count < AppString.Length; count++)
                AppData[count] = (byte)AppString[count];
            int appDataSize = AppData.Length;
            byte[] DeviceOutput = new byte[20];
            uint SizeOut = 20;
            GetDeviceUniqueID(AppData, appDataSize, 1, DeviceOutput, out SizeOut);
            return DeviceOutput;
        }
搜索更多相关主题的帖子: PInvoke DLL dll 入口 
2008-02-29 09:16
快速回复:无法找到 PInvoke DLL“cellcore.dll”中的入口点“GetDeviceUniqueID ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013822 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved