The JWSCL does not need to be setup. The only setup is needed to create a binary unit file (DCU-file) for the JEDI API Headers as described here.
If finished make sure that you have added the source path of JWA to your project or general library path. After that you can also add the source path to the JWSCL source folder (…\trunk\source) to the project or general library path so all projects can easily use JWA and JWSCL.
Eventually you can start using JWA and JWSCL as simple as possible. Just add the units to your uses clause. Be aware that the order of including units may change Delphi’s behavior if an identifier with the same name is declared in several units.
Some types in these JWA units are double. JwaVista recreates and extends them to add Vista support. Example:
The new _TOKEN_INFORMATION_CLASS type from JwaVista.pas has several new additions:
However if you add JwaVista behind JwaWindows in your uses clause you will only use the types from JwaVista. Some functions in JwaWindows or other libraries that use JWA may not know these types. To get the correct type you have to explicit adress the JwaWindows type.
JWSCL does not really need an order of its units.
One Response
How to setup the library by JEDI Windows API
07|Mar|2008 1[...] Windows Security Code Library uses the second choice (JwaWindows.pas and JwaVista.pas) only. See here how to setup [...]
Leave a reply