Recent

Author Topic: Help dll  (Read 5187 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Help dll
« on: April 05, 2011, 01:42:07 pm »
Hello guys, I am unacquainted with the dll in lazarus, but I'd like to understand how to use the following dll in lazarus to get the sid in windows. Can anyone give me a hand?

Advapi32.dll

Example:

http://stackoverflow.com/questions/1597301/how-can-i-get-the-current-users-sid-in-vb6
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Help dll
« Reply #1 on: April 05, 2011, 02:49:56 pm »
The jwa* units  (package winunits-jedi) have interfaces for various Windows functions.

Some of the functions mentioned in that url are in jwawinbase, more service oriented calls are in jwawinsvc
« Last Edit: April 15, 2011, 11:28:00 am by marcov »

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Help dll
« Reply #2 on: April 05, 2011, 03:11:34 pm »
One example?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Help dll
« Reply #3 on: April 05, 2011, 03:27:34 pm »
LookupAccountSid is one function present in jwawinbase?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Help dll
« Reply #4 on: April 05, 2011, 07:44:09 pm »
Quote
LookupAccountSid is one function present in jwawinbase?
Not sure, you have the full source, just search for it (or use Lazarus' find in files)

 

TinyPortal © 2005-2018