Exemplo n.º 1
0
        public uint GetDllsVersion(out PrDllsVerInfo pDllVersion)
        {
            uint size = (uint)BUFFER_SIZE;
            uint response = 0;

            IntPtr pSpace = Marshal.AllocHGlobal((int)size);
            response = PR_GetDllsVersion(ref size, pSpace);

            pDllVersion = (PrDllsVerInfo)Marshal.PtrToStructure(pSpace, typeof(PrDllsVerInfo));
            Marshal.FreeHGlobal(pSpace);
            return response;
        }
Exemplo n.º 2
0
        public uint GetDllsVersion(out PrDllsVerInfo pDllVersion)
        {
            uint size     = (uint)BUFFER_SIZE;
            uint response = 0;

            IntPtr pSpace = Marshal.AllocHGlobal((int)size);

            response = PR_GetDllsVersion(ref size, pSpace);

            pDllVersion = (PrDllsVerInfo)Marshal.PtrToStructure(pSpace, typeof(PrDllsVerInfo));
            Marshal.FreeHGlobal(pSpace);
            return(response);
        }