Esempio n. 1
0
        protected override bool InitFunctions()
        {
            d_RR_Init = (D_RR_Init)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_Init", typeof(D_RR_Init));

            d_RR_FileProcess = (D_RR_FileProcess)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_FileProcess", typeof(D_RR_FileProcess));

            d_RR_FindRepeat = (D_RR_FindRepeat)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_FindRepeat", typeof(D_RR_FindRepeat));

            d_RR_Output = (D_RR_Output)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_Output", typeof(D_RR_Output));

            d_RR_SaveHistoryData = (D_RR_SaveHistoryData)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_SaveHistoryData", typeof(D_RR_SaveHistoryData));

            d_RR_Exit = (D_RR_Exit)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_Exit", typeof(D_RR_Exit));

            d_RR_GetLastErrMsg = (D_RR_GetLastErrMsg)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_GetLastErrMsg", typeof(D_RR_GetLastErrMsg));

            if (d_RR_Init == null || d_RR_FileProcess == null || d_RR_FindRepeat == null ||
                d_RR_Output == null || d_RR_SaveHistoryData == null || d_RR_Exit == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Esempio n. 2
0
        protected override bool InitFunctions()
        {

            d_RR_Init = (D_RR_Init)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_Init", typeof(D_RR_Init));

            d_RR_FileProcess = (D_RR_FileProcess)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_FileProcess", typeof(D_RR_FileProcess));

            d_RR_FindRepeat = (D_RR_FindRepeat)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_FindRepeat", typeof(D_RR_FindRepeat));

            d_RR_Output = (D_RR_Output)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_Output", typeof(D_RR_Output));

            d_RR_SaveHistoryData = (D_RR_SaveHistoryData)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_SaveHistoryData", typeof(D_RR_SaveHistoryData));

            d_RR_Exit = (D_RR_Exit)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_Exit", typeof(D_RR_Exit));

            d_RR_GetLastErrMsg = (D_RR_GetLastErrMsg)DllWrapper.GetFunctionAddress(
                DllWrapper.hModule, "RR_GetLastErrMsg", typeof(D_RR_GetLastErrMsg));

            if (d_RR_Init == null || d_RR_FileProcess == null || d_RR_FindRepeat == null
                || d_RR_Output == null || d_RR_SaveHistoryData == null || d_RR_Exit == null)
            {
                return false;
            }
            else
            {
                return true;
            }
        }