Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Code]
- const
- SharedDLLsKey = 'Software\Microsoft\Windows\CurrentVersion\SharedDLLs';
- function TryGetSharedCount(const Is64Bit: Boolean; const FileName: string; out Count: Cardinal): Boolean;
- var
- RootKey: Integer;
- begin
- if not Is64Bit then RootKey := HKLM32 else RootKey := HKLM64;
- Result := RegQueryDWordValue(RootKey, SharedDLLsKey, FileName, Count);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement