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; }
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); }