كيف يمكن التحقق من مكتبة dll ان كانت مفعلة او لا
#5
Shy
كود :
function IsLibraryInstalled(const LibFileName: string): Boolean;   {Checks if a library with name LibFileName is installed.} var   DLLHandle: Windows.THandle; // handle to DLL begin   // Try to load DLL   try     DLLHandle := SysUtils.SafeLoadLibrary(LibFileName);   except     DLLHandle := 0;   end;   // Check if DLL has been loaded   Result := DLLHandle <> 0;   if Result then     Windows.FreeLibrary(DLLHandle); end;
[-] كل من 2 users say قال شكرا ل Ndagor على المشاركة المفيدة
  • محمودد, ELARAPY
الرد


الردود في هذا الموضوع
RE: كيف يمكن التحقق من مكتبة dll ان كانت مفعلة او لا - بواسطة Ndagor - 03-04-2022, 05:51 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم