Location: Symbol Reference > Files > JwsclTypes.pas
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwsclTypes.pas

Project JEDI Windows Security Code Library (JWSCL) 

Contains types that are used by the units of JWSCL

The Original Code is JwsclTypes.pas. 

The Initial Developer of the Original Code is Christian Wimmer. Portions created by Christian Wimmer are Copyright (C) Christian Wimmer. All rights reserved.

Christian Wimmer

Name 
Description 
Flags allowed for a call to TJwCryptKey.Decrypt 
Flags allowed for a call to TJwCryptKey.Derive 
Flags allowed for a call to TJwCryptKey.Encrypt 
Flags allowed for a call to TJwCryptKey.ExportKey 
Flags allowed for a call to TJwCryptKey.Generate 
This is constant GUID_NULL. 
Flags allowed for a call to TJwCryptKey.Import 
JwAllEqualAceTypes defines that all flags are set for TJwSecurityAccessControlList.FindEqualACE 
JwAllSiFlags defines
  • owner
  • DACL
  • SACL
security information to be set or retrieved 
JwKeyRootTupleArray defines a connection between root key handle and string DO NOT LOCALIZE!! 
JwResetEnumSetAll defines a reset state that resets all caches of a TJwSecureFileObject 
This is constant JwSdfEditAll. 
This is constant KeylessHashAlgorithms. 
This is constant NIL_RootTuple. 
This is constant NULL_GUID. 
Apply ACE only to this key 
TJwAceFlagStrings converts the TJwAceFlag constants to strings. 
Apply ACE not to this folder but to all its files 
Apply ACE not to this folder but to all its direct files 
Apply ACE not to this folder but to all sub folders and its files 
Apply ACE not to this folder but to all direct files and direct sub folders 
Apply ACE not to this folder but to all sub folders 
Apply ACE not to this folder but to all direct sub folders 
Apply ACE not to this key but to all sub key 
Apply ACE not to this key but to all sub key 
Apply ACE to this folder and its files 
Apply ACE to this folder and its direct files 
Apply ACE to this folder and sub folders 
Apply ACE to this folder and all sub folders and its files 
Apply ACE to this folder and all direct files and direct sub folders 
Apply ACE to this folder and direct sub folders 
Apply ACE only to this folder 
Apply ACE only to this folder 
Apply ACE to this key and all sub keys 
Apply ACE to this key and all sub keys 
Apply ACE only to this key 
 
Name 
Description 
 
Currently only available for TJwAuthContext.CreateBySid. Read MSDN doc on AuthzInitializeContextFromSid to get more information. 
 
TJwAccessControlListType defines the type of an access control list (ACL) 
 
This is record TJwAceFlag. 
 
TJwAceType defines the type of an access control element (ACE). 
 
TJwACLProtection control the protection of an acl. 
 
TJwACLProtectionState is used by TJwSecureFileObject to set inheritance protection. Do not mix up with TJwACLProtection which is used by TJwSecurityDescriptor to set and get the protection state. 
 
This is record TJwAuthZResourceManagerFlag. 
 
This is record TJwComAppIdRegFlag. 
 
This is record TJwComAuthenticationCapability. 
 
This is record TJwComAuthenticationLevel. 
 
This is record TJwComAuthenticationService. 
 
This is record TJwComAuthorizationService. 
 
This is record TJwComImpersonationLevel. 
 
This is record TJwComRotFlag. 
 
TJwCopyFlag defines the mechanism how an instance will be treated if added to a list.

If you use this flag you must also include this source (with comment) at every implementation.  
 
TJwCredentialFlag defines the winapi credential flags as an enumeration type. 
 
TJwCryptProtectFlag defines flag states for encryption 
 
This is record TJwCryptProtectOnPromptFlag. 
 
TJwCSPCreationFlag defines the flags for a call to CryptAcquireContext 
 
TJwCSPType defines the type of a cryptographic service provider. See http://msdn2.microsoft.com/en-us/library/aa380244.aspx for more information. 
 
TCreationFlags defines how a TDesktop object is to be created 
 
TJwElevationProcessFlag is used by JwElevateProcess Function and controls certain aspects of this function. 
 
General-purpose encryption algorithms. See http://msdn2.microsoft.com/en-us/library/ms937014.aspx for more information 
 
TJwEqualAceType defines how the method TJwSecurityAccessControlList.FindEqualACE finds an access control element. 
 
TJwExclusionFlag whether TJwSecurityAccessControlList.FindEqualACE should ignore inherited or explicit ACEs 
 
This is record TJwGetAccessCheckType. 
 
This is record TJwGetInheritFlagsType. 
 
Hash algorithms supported in Windows XP 
 
This is record TJwInclusionFlag. 
 
This is record TJwInheritFlag. 
 
This is record TJwIntegrityLabelType. 
 
TJwJobLimit is used by TJwJobObject class to set or get job user interface limits. Read the MSDN doc on JOBOBJECT_BASIC_LIMIT_INFORMATION member LimitFlags. 
 
TJwJobMessage is used by TJwOnJobNotification to show the type of job message that was received. 
 
TJwJobTermination defines how processes in job objects are terminated when the job list instance is freed. 
 
TJwJobUiLimit is used by TJwJobObject class to set or get job user interface limits. Read the MSDN doc on JOBOBJECT_BASIC_UI_RESTRICTIONS. 
 
TJwKeyExportKind specifies how a key should be exported. See http://msdn2.microsoft.com/en-us/library/ms938025.aspx for more information 
 
The flags needed for calls to TJwCryptKey.Import, .ExportKey, .Generate and .Derive 
 
Each key container usually contains two key pairs. Functions require a parameter of type TJwKeyPairType if the programmer should decide which of the key pairs should be used. 
 
This is record TJwMandatoryPolicy. 
 
TJwMemoryType defines a memory manager type 
 
TJwPointerType is used by IJwAutoLock to determine the type of stored pointer. 
 
TJwPrivCheck is used by methods from TJwSecurityToken
 
TJwProcessParameterType is used by JwGetProcessSessionID and defines whether its parameter ProcessIDorHandle is a handle or process ID value. 
 
TJwProfileMember is used by TJwSecurityToken.LoadUserProfile and influences the behavior of the functions. Please retrieve their meaning from the LoadUserProfile MSDN page or TJwProfileInfo 
 
This is record TJwProgInvokeSetting. 
 
TJwProtectMemoryFlag defines who can decrypt a memory block 
 
TJwReplyErrorEnum is used by TJwAuthZAccessReply to define the result of an access checked element. 
 
TJwSecurityDescriptor.CreateDefaultByToken is used by TJwRequestedTokenType.CreateDefaultByToken This types defines which token should be used for the new security descriptor. 
 
TJwRightType is returned by JwRightType and defines the type of a given right access mask. The return type is the first set bit of the access mask. 
 
This is record TJwRootKeyEnum. 
 
This is record TJwRootRegKey. 
 
This is record TJwSaferLevelId. 
 
TJwSecurityCapability is used by TJwSecurityPackageInfo 
 
TJwSecurityDescriptorControl defines control flags which defines a security descriptor. 
 
TJwSecurityDesktopFlag is used when creating a new desktop. 
 
TJwSecurityDialogFlag defines the flags of the TJwSecurityDescriptorDialog
 
TJwSecurityInformationFlag defines what types of security information is enforced on or retrevied from an secured object. 
 
This is record TJwSecurityObjectInformationFlag. 
 
This is record TJwSecurityPackageCapability. 
 
This is record TJwSecurityPageType. 
 
TJwSecurityResetType is used by TJwSecurityDescriptorDialog. It defines enum constats that defines what security descriptor parts must be assigned on all objects (recursively through all containers) 
 
This is record TJwSharedHandle. 
 
TJwShellExecuteFlag controls execution of JwShellExecute 
 
see http://msdn2.microsoft.com/en-us/library/aa379624.aspx 
 
This is record TJwSidClassName. 
 
TJwTempResetEnum defines caches stored in a TJwSecureFileObject 
 
TJwTokenMandatoryPolicy is used by TJwSecurityToken.MandatoryPolicy and defines how mandatory policy is enforced for the token. 
 
TJwTreeSetType defines the type of change to a object tree 
 
This is record TJwUserDataCopy. 
 
This is record TJwValidObjectType. 
 
Name 
Description 
 
IJwBase_Equals implements IJwBase.Equals and always returns false. 
 
IJwBase_GetHashCode implements IJwBase.GetHashCode and always returns 0. 
 
IJwBase_ToString implements IJwBase.ToString and always returns the classname of given self parameter. 
 
Name 
Description 
 
IJwBase is the new base interface class for all JWSCL classes which want to implement basic methods. 
 
Name 
Description 
 
TAce 
TAce defines a low level access control entry data structure. It is used to communicate with WinAPI functions. 
 
This is record TJwAuthenticationServiceInformation. 
 
An array of TJwEnumAlgorithmsEntry is returned by TJwCryptProvider.EnumAlgorithms. It is mostly the same as PROV_ENUMALGS_EX (see http://msdn2.microsoft.com/en-us/library/aa387441.aspx), but uses delphi strings. 
 
An array of TJwEnumProviderEntry is returned by TJwCryptProvider.EnumProviders and TJwCryptProvider.EnumProviderTypes. The meaning of Name depends on the function. 
 
TCredentialsHash defines a hash value containing a pointer to a memory with the hash and its size. It is used by function JwCreateFileHash defined in unit JwsclUtils.pas
 
This is record TJwFileVersionInfo. 
 
TJwGetMemBlob defines a blob that contains data created by GetMem 
 
TJwInheritedFromRecord is used to gather information about an inheritance flow 
 
TJwProfileInfo contains and receives information about a users profile. TJwSecurityToken.LoadUserProfile 
 
This is record TJwRightsMapping. 
 
This is record TJwRootTuple. 
 
This is record TJwSecurityObjectInformation. 
 
This is record TJwSecurityPackageInformation. 
 
TJwSidInfoRecord provides information about a SID that could not be translated into a human readable name. 
 
TJwSuRunStatus contains status information of SuRun 
Name 
Description 
This is type jwaWindows_PACL. 
This is type jwaWindows_PSecurity_Descriptor. 
 
PAce 
This is type PAce. 
This is type PJwGetMemBlob. 
TAuthZSidContextFlags is used by TJwAuthContext
TCardinalE defines an extended cardinal type which includes -1 as a value. -1 is used for an error status. 
TJwAccessMask is the type of an access mask 
This is type TJwAccessMaskArray. 
This is type TJwAceFlags. 
This is type TJwAuthenticationServiceInformationArray. 
This is type TJwAuthZResourceManagerFlags. 
TJwCardinalArray is a utility type that defines a dynamic array of cardinal values. 
This is type TJwComAppIdRegFlags. 
This is type TJwComAuthenticationCapabilities. 
This is type TJwComRotFlags. 
TJwCredentialFlagSet defines the winapi credential flags bitmask as a set 
This is type TJwCryptProtectFlagSet. 
This is type TJwCryptProtectOnPromptFlagSet. 
This is type TJwCSPCreationFlagSet. 
TJwCSPHandle is the type of a cryptographic service provider handle 
TJwElevationProcessFlags is used by JwElevateProcess Function and controls certain aspects of this function. See TJwElevationProcessFlag 
This is type TJwEnumAlgorithms. 
This is type TJwEnumProviderArray. 
TJwEqualAceTypeSet defines how the method TJwSecurityAccessControlList.FindEqualACE finds an access control element. 
TJwExclusionFlags whether TJwSecurityAccessControlList.FindEqualACE should ignore inherited or explicit ACEs 
This is type TJwExplicitAccess. 
This is type TJwExplicitAccessArray. 
This is type TJwGetAccessCheckTypeSet. 
TJwGuidArray defines an array of TGUID 
This is type TJwHandles. 
TJwHashHandle is the type of a hash handle 
This is type TJwInclusionFlags. 
This is type TJwInheritedFromArray. 
Array of an unicode TInheritedFrom record because GetInheritanceSource does not support ansi on all systems. Do not change to Ansi unless you want to adapt TJwSecureBaseClass.GetInheritanceSource. 
This is type TJwInheritFlagSet. 
TJwJobLimits is used by TJwJobObject class to set or get job user interface limits. Read the MSDN doc on JOBOBJECT_BASIC_LIMIT_INFORMATION member LimitFlags. 
TJwJobMessages is used by TJwOnJobNotification to show the types of job message that were received. 
TJwJobUiLimits is used by TJwJobObject class to set or get job user interface limits 
This is type TJwKeyFlagSet. 
TJwKeyHandle is the type of a handle to a cryptographic key 
This is type TJwKeyRootTupleArray. 
TJwLastError is the type of a last error code 
TJwLuidArray defines an array of TLUID 
This is type TJwMandatoryPolicyFlagSet. 
This is type TJwObjectTypeArray. 
The TJwOnElevationGetCredentials event is called by the JwElevateProcess Function if
  • SuRun is not available
  • UAC is not supported by OS
  • epfNoUi is set in parameter ElevationProcessFlags so no dialog box is shown.

It receives user credential to be used by CreateProcess. 
TJwProcessHandle is the type of a process handle 
TJwProcessId is the type of a Terminal Server Process Identifier 
TJwProfileMembers defines a set of TJwProfileMember. Used by TJwSecurityToken.LoadUserProfile 
This is type TJwProtectMemoryFlagSet. 
TJwReplyErrorEnumArray defines an dynamic array of TJwReplyErrorEnum. It is used by TJwAuthZAccessReply to save each return value of TJwAuthContext.AccessCheck 
TJwSecurityCapabilities is used by TJwSecurityPackageInfo 
This is type TJwSecurityDescriptorControlSet. 
TJwSecurityDesktopFlags is a set of desktop flags. Currently it can only contain dfAllowOtherAccountHook or nothing : Use [] as a aparameter if you don't want other applications to create hooks. Otherwise use [dfAllowOtherAccountHook]. Never use [dfPad0]! See also TJwSecurityDesktopFlags 
This is type TJwSecurityDialogFlags. 
TJwSecurityInformationFlagSet defines what types of security information is enforced on or retrevied from an secured object. 
This is type TJwSecurityObjectInformationFlagSet. 
This is type TJwSecurityPackageCapabilities. 
Defines an array of security provide packages. Used by TJwComRegistrySecurity.GetGlobalAuthenticationServices 
TJwSecurityResetTypes defines a set of reset types. 
TJwSessionId is the type of a Terminal Server Session Identifier 
This is type TJwSiAccessArray. 
This is type TJwSidAttributeSet. 
This is type TJwSidAttributesStringArray. 
This is type TJwSidInfoRecordArray. 
TJwState is the type of a Terminal Server Session State 
This is type TJwStringArray. 
This is type TJwTempResetEnumSet. 
TJwThreadHandle is the type of a thread handle 
TJwTokenAccessMask defines the access mask of a token 
TJwTokenHandle is the type of a token handle 
TJwTokenMandatoryPolicies is used by TJwSecurityToken.MandatoryPolicy and defines how mandatory policy is enforced for the token. 
This is type TJwValidObjectTypes. 
This is type TTrusteeEx. 
This is type TWellKnownSidTypeSet. 
License

The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ 

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. 

Alternatively, the contents of this file may be used under the terms of the GNU Lesser General Public License (the "LGPL License"), in which case the provisions of the LGPL License are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the LGPL License and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the LGPL License. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the LGPL License. 

For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!