Page 1 of 1

Lib updates

Posted: Thu Jul 09, 2020 1:28 pm
by Everything
I think some static libraries need updating.

For example there is no "QueryServiceStatusEx" in PB's AdvAPI32.Lib
MSDN
QueryServiceStatus function
This function has been superseded by the QueryServiceStatusEx function
So instead of static import with Import "AdvAPI32" we need to use OpenLibrary/GetFunction (GetProcAddress/GetModuleHandle)

Re: Lib updates

Posted: Sat Jul 18, 2020 5:28 am
by Mistrel
You can also use the Import keyword.

Re: Lib updates

Posted: Sat Jul 18, 2020 8:55 am
by User_Russian
Mistrel, You did not understand the purpose of the request.
Can you compile this code?

Code: Select all

Import "AdvAPI32.Lib"
  QueryServiceStatusEx(hService, InfoLevel, lpBuffer, cbBufSize, pcbBytesNeeded)
EndImport

QueryServiceStatusEx(0, 0, 0, 0, 0)

Re: Lib updates

Posted: Sat Jul 18, 2020 10:15 am
by mk-soft
For the time until the libraries are updated, which also use the libraries from PellesC. They are a bit more up-to-date.

Re: Lib updates

Posted: Sat Jul 18, 2020 11:21 pm
by Mistrel
User_Russian wrote:Mistrel, You did not understand the purpose of the request.
Yes, I misunderstood.