Exemple #1
0
        public Int32 HNC_FprogGetProgPathByIdx(Int32 pindex, ref String progName)
        {
            Int32  ret = -1;
            IntPtr ptr = Marshal.AllocHGlobal(HNCFPROGMAN.PROG_PATH_SIZE);

            ret      = HncApi.HNC_FprogGetProgPathByIdx(pindex, ptr, _ClientNo);
            progName = Marshal.PtrToStringAnsi(ptr);
            Marshal.FreeHGlobal(ptr);

            return(ret);
        }