Advertisement
TLama

Untitled

May 18th, 2015
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.39 KB | None | 0 0
  1. [Code]
  2. const                      
  3.   SharedDLLsKey = 'Software\Microsoft\Windows\CurrentVersion\SharedDLLs';
  4.  
  5. function TryGetSharedCount(const Is64Bit: Boolean; const FileName: string; out Count: Cardinal): Boolean;
  6. var
  7.   RootKey: Integer;
  8. begin
  9.   if not Is64Bit then RootKey := HKLM32 else RootKey := HKLM64;
  10.   Result := RegQueryDWordValue(RootKey, SharedDLLsKey, FileName, Count);
  11. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement