Module: Puppet::FFI::Windows::Constants Private

Extended by:
FFI::Library
Included in:
Process, Functions, Util::Windows::Daemon, Util::Windows::Daemon, Util::Windows::File, Util::Windows::Service, Util::Windows::Service
Defined in:
lib/puppet/ffi/windows/constants.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Constant Summary collapse

FILE_ATTRIBUTE_READONLY =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
FILE_ATTRIBUTE_DIRECTORY =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
SYNCHRONIZE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

msdn.microsoft.com/en-us/library/windows/desktop/aa379607(v=vs.85).aspx The right to use the object for synchronization. This enables a thread to wait until the object is in the signaled state. Some object types do not support this access right.

0x100000
DELETE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The right to delete the object.

0x00010000
WRITE_DAC =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The right to read the information in the object's security descriptor, not including the information in the system access control list (SACL). READ_CONTROL = 0x00020000 The right to modify the discretionary access control list (DACL) in the object's security descriptor.

0x00040000
WRITE_OWNER =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The right to change the owner in the object's security descriptor.

0x00080000
STANDARD_RIGHTS_REQUIRED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Combines DELETE, READ_CONTROL, WRITE_DAC, and WRITE_OWNER access.

0xf0000
STANDARD_RIGHTS_READ =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Currently defined to equal READ_CONTROL.

0x20000
STANDARD_RIGHTS_WRITE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Currently defined to equal READ_CONTROL.

0x20000
STANDARD_RIGHTS_EXECUTE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Currently defined to equal READ_CONTROL.

0x20000
STANDARD_RIGHTS_ALL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Combines DELETE, READ_CONTROL, WRITE_DAC, WRITE_OWNER, and SYNCHRONIZE access.

0x1F0000
SPECIFIC_RIGHTS_ALL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0xFFFF
FILE_READ_DATA =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

1
FILE_WRITE_DATA =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

2
FILE_APPEND_DATA =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

4
FILE_READ_EA =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

8
FILE_WRITE_EA =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

16
FILE_EXECUTE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

32
FILE_DELETE_CHILD =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

64
FILE_READ_ATTRIBUTES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

128
FILE_WRITE_ATTRIBUTES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

256
FILE_ALL_ACCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF
FILE_GENERIC_READ =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STANDARD_RIGHTS_READ |
FILE_READ_DATA |
FILE_READ_ATTRIBUTES |
FILE_READ_EA |
SYNCHRONIZE
FILE_GENERIC_WRITE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STANDARD_RIGHTS_WRITE |
FILE_WRITE_DATA |
FILE_WRITE_ATTRIBUTES |
FILE_WRITE_EA |
FILE_APPEND_DATA |
SYNCHRONIZE
FILE_GENERIC_EXECUTE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STANDARD_RIGHTS_EXECUTE |
FILE_READ_ATTRIBUTES |
FILE_EXECUTE |
SYNCHRONIZE
REPLACEFILE_WRITE_THROUGH =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x1
REPLACEFILE_IGNORE_MERGE_ERRORS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x2
REPLACEFILE_IGNORE_ACL_ERRORS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x3
INVALID_FILE_ATTRIBUTES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

define INVALID_FILE_ATTRIBUTES (DWORD (-1))

0xFFFFFFFF
IO_REPARSE_TAG_MOUNT_POINT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0xA0000003
IO_REPARSE_TAG_HSM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0xC0000004
IO_REPARSE_TAG_HSM2 =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000006
IO_REPARSE_TAG_SIS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000007
IO_REPARSE_TAG_WIM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000008
IO_REPARSE_TAG_CSV =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000009
IO_REPARSE_TAG_DFS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x8000000A
0xA000000C
IO_REPARSE_TAG_DFSR =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000012
IO_REPARSE_TAG_DEDUP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000013
IO_REPARSE_TAG_NFS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000014
FILE_ATTRIBUTE_REPARSE_POINT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x400
GENERIC_READ =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x80000000
GENERIC_WRITE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x40000000
GENERIC_EXECUTE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x20000000
GENERIC_ALL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x10000000
METHOD_BUFFERED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0
FILE_SHARE_READ =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

1
FILE_SHARE_WRITE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

2
OPEN_EXISTING =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

3
FILE_DEVICE_FILE_SYSTEM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000009
FILE_FLAG_OPEN_REPARSE_POINT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00200000
FILE_FLAG_BACKUP_SEMANTICS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x02000000
SHGFI_DISPLAYNAME =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x000000200
SHGFI_PIDL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x000000008
ERROR_FILE_NOT_FOUND =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

2
ERROR_PATH_NOT_FOUND =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

3
ERROR_ALREADY_EXISTS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

183
FSCTL_GET_REPARSE_POINT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

msdn.microsoft.com/en-us/library/windows/desktop/aa364571(v=vs.85).aspx

0x900a8
MAXIMUM_REPARSE_DATA_BUFFER_SIZE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

16384
ABOVE_NORMAL_PRIORITY_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Priority constants docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass

0x0008000
BELOW_NORMAL_PRIORITY_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0004000
HIGH_PRIORITY_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000080
IDLE_PRIORITY_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000040
NORMAL_PRIORITY_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000020
REALTIME_PRIORITY_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000010
PROCESS_TERMINATE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Process Access Rights docs.microsoft.com/en-us/windows/win32/procthread/process-security-and-access-rights

0x00000001
PROCESS_SET_INFORMATION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000200
PROCESS_QUERY_INFORMATION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000400
PROCESS_ALL_ACCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x001F0FFF
PROCESS_VM_READ =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
CREATE_BREAKAWAY_FROM_JOB =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Process creation flags docs.microsoft.com/en-us/windows/win32/procthread/process-creation-flags

0x01000000
CREATE_DEFAULT_ERROR_MODE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x04000000
CREATE_NEW_CONSOLE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
CREATE_NEW_PROCESS_GROUP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000200
CREATE_NO_WINDOW =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x08000000
CREATE_PROTECTED_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00040000
CREATE_PRESERVE_CODE_AUTHZ_LEVEL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x02000000
CREATE_SEPARATE_WOW_VDM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000800
CREATE_SHARED_WOW_VDM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00001000
CREATE_SUSPENDED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
CREATE_UNICODE_ENVIRONMENT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000400
DEBUG_ONLY_THIS_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
DEBUG_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
DETACHED_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000008
INHERIT_PARENT_AFFINITY =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00010000
LOGON_WITH_PROFILE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Logon options

0x00000001
STARTF_USESTDHANDLES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STARTUPINFOA constants docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa

0x00000100
HANDLE_FLAG_INHERIT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Miscellaneous

0x00000001
SEM_FAILCRITICALERRORS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
SEM_NOGPFAULTERRORBOX =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
INVALID_HANDLE_VALUE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Error constants

FFI::Pointer.new(-1).address
TOKEN_INFORMATION_CLASS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

msdn.microsoft.com/en-us/library/windows/desktop/aa379626(v=vs.85).aspx

enum(
    :TokenUser, 1,
    :TokenGroups,
    :TokenPrivileges,
    :TokenOwner,
    :TokenPrimaryGroup,
    :TokenDefaultDacl,
    :TokenSource,
    :TokenType,
    :TokenImpersonationLevel,
    :TokenStatistics,
    :TokenRestrictedSids,
    :TokenSessionId,
    :TokenGroupsAndPrivileges,
    :TokenSessionReference,
    :TokenSandBoxInert,
    :TokenAuditPolicy,
    :TokenOrigin,
    :TokenElevationType,
    :TokenLinkedToken,
    :TokenElevation,
    :TokenHasRestrictions,
    :TokenAccessInformation,
    :TokenVirtualizationAllowed,
    :TokenVirtualizationEnabled,
    :TokenIntegrityLevel,
    :TokenUIAccess,
    :TokenMandatoryPolicy,
    :TokenLogonSid,
    :TokenIsAppContainer,
    :TokenCapabilities,
    :TokenAppContainerSid,
    :TokenAppContainerNumber,
    :TokenUserClaimAttributes,
    :TokenDeviceClaimAttributes,
    :TokenRestrictedUserClaimAttributes,
    :TokenRestrictedDeviceClaimAttributes,
    :TokenDeviceGroups,
    :TokenRestrictedDeviceGroups,
    :TokenSecurityAttributes,
    :TokenIsRestricted,
    :MaxTokenInfoClass
)
ERROR_SERVICE_DOES_NOT_EXIST =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service error codes docs.microsoft.com/en-us/windows/desktop/debug/system-error-codes–1000-1299-

0x00000424
SERVICE_CONTROL_STOP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service control codes docs.microsoft.com/en-us/windows/desktop/api/Winsvc/nf-winsvc-controlserviceexw

0x00000001
SERVICE_CONTROL_PAUSE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
SERVICE_CONTROL_CONTINUE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000003
SERVICE_CONTROL_INTERROGATE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
SERVICE_CONTROL_SHUTDOWN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000005
SERVICE_CONTROL_PARAMCHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000006
SERVICE_CONTROL_NETBINDADD =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000007
SERVICE_CONTROL_NETBINDREMOVE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000008
SERVICE_CONTROL_NETBINDENABLE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000009
SERVICE_CONTROL_NETBINDDISABLE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000A
SERVICE_CONTROL_DEVICEEVENT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000B
SERVICE_CONTROL_HARDWAREPROFILECHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000C
SERVICE_CONTROL_POWEREVENT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000D
SERVICE_CONTROL_SESSIONCHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000E
SERVICE_CONTROL_PRESHUTDOWN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000F
SERVICE_CONTROL_TIMECHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
SERVICE_CONTROL_TRIGGEREVENT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000020
SERVICE_CONTROL_SIGNALS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  SERVICE_CONTROL_STOP                  => :SERVICE_CONTROL_STOP,
  SERVICE_CONTROL_PAUSE                 => :SERVICE_CONTROL_PAUSE,
  SERVICE_CONTROL_CONTINUE              => :SERVICE_CONTROL_CONTINUE,
  SERVICE_CONTROL_INTERROGATE           => :SERVICE_CONTROL_INTERROGATE,
  SERVICE_CONTROL_SHUTDOWN              => :SERVICE_CONTROL_SHUTDOWN,
  SERVICE_CONTROL_PARAMCHANGE           => :SERVICE_CONTROL_PARAMCHANGE,
  SERVICE_CONTROL_NETBINDADD            => :SERVICE_CONTROL_NETBINDADD,
  SERVICE_CONTROL_NETBINDREMOVE         => :SERVICE_CONTROL_NETBINDREMOVE,
  SERVICE_CONTROL_NETBINDENABLE         => :SERVICE_CONTROL_NETBINDENABLE,
  SERVICE_CONTROL_NETBINDDISABLE        => :SERVICE_CONTROL_NETBINDDISABLE,
  SERVICE_CONTROL_DEVICEEVENT           => :SERVICE_CONTROL_DEVICEEVENT,
  SERVICE_CONTROL_HARDWAREPROFILECHANGE => :SERVICE_CONTROL_HARDWAREPROFILECHANGE,
  SERVICE_CONTROL_POWEREVENT            => :SERVICE_CONTROL_POWEREVENT,
  SERVICE_CONTROL_SESSIONCHANGE         => :SERVICE_CONTROL_SESSIONCHANGE,
  SERVICE_CONTROL_PRESHUTDOWN           => :SERVICE_CONTROL_PRESHUTDOWN,
  SERVICE_CONTROL_TIMECHANGE            => :SERVICE_CONTROL_TIMECHANGE,
  SERVICE_CONTROL_TRIGGEREVENT          => :SERVICE_CONTROL_TRIGGEREVENT
}
SERVICE_AUTO_START =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service start type codes docs.microsoft.com/en-us/windows/desktop/api/Winsvc/nf-winsvc-changeserviceconfigw

0x00000002
SERVICE_BOOT_START =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000000
SERVICE_DEMAND_START =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000003
SERVICE_DISABLED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
SERVICE_SYSTEM_START =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
SERVICE_START_TYPES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  SERVICE_AUTO_START => :SERVICE_AUTO_START,
  SERVICE_BOOT_START => :SERVICE_BOOT_START,
  SERVICE_DEMAND_START => :SERVICE_DEMAND_START,
  SERVICE_DISABLED => :SERVICE_DISABLED,
  SERVICE_SYSTEM_START => :SERVICE_SYSTEM_START,
}
SERVICE_FILE_SYSTEM_DRIVER =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service type codes docs.microsoft.com/en-us/windows/desktop/api/Winsvc/nf-winsvc-changeserviceconfigw

0x00000002
SERVICE_KERNEL_DRIVER =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
SERVICE_WIN32_OWN_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
SERVICE_WIN32_SHARE_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000020
SERVICE_USER_OWN_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000050
SERVICE_USER_SHARE_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000060
SERVICE_INTERACTIVE_PROCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Available only if service is also SERVICE_WIN32_OWN_PROCESS or SERVICE_WIN32_SHARE_PROCESS

0x00000100
ALL_SERVICE_TYPES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

SERVICE_FILE_SYSTEM_DRIVER |
SERVICE_KERNEL_DRIVER |
SERVICE_WIN32_OWN_PROCESS |
SERVICE_WIN32_SHARE_PROCESS
SERVICE_CONTINUE_PENDING =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Current state codes docs.microsoft.com/en-us/windows/desktop/api/winsvc/ns-winsvc-_service_status_process

0x00000005
SERVICE_PAUSE_PENDING =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000006
SERVICE_PAUSED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000007
SERVICE_RUNNING =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
SERVICE_START_PENDING =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
SERVICE_STOP_PENDING =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000003
SERVICE_STOPPED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
UNSAFE_PENDING_STATES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[SERVICE_START_PENDING, SERVICE_STOP_PENDING]
FINAL_STATES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  SERVICE_CONTINUE_PENDING => SERVICE_RUNNING,
  SERVICE_PAUSE_PENDING    => SERVICE_PAUSED,
  SERVICE_START_PENDING    => SERVICE_RUNNING,
  SERVICE_STOP_PENDING     => SERVICE_STOPPED
}
SERVICE_STATES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  SERVICE_CONTINUE_PENDING => :SERVICE_CONTINUE_PENDING,
  SERVICE_PAUSE_PENDING => :SERVICE_PAUSE_PENDING,
  SERVICE_PAUSED => :SERVICE_PAUSED,
  SERVICE_RUNNING => :SERVICE_RUNNING,
  SERVICE_START_PENDING => :SERVICE_START_PENDING,
  SERVICE_STOP_PENDING => :SERVICE_STOP_PENDING,
  SERVICE_STOPPED => :SERVICE_STOPPED,
}
SERVICE_ACCEPT_STOP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service accepts control codes docs.microsoft.com/en-us/windows/desktop/api/winsvc/ns-winsvc-_service_status_process

0x00000001
SERVICE_ACCEPT_PAUSE_CONTINUE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
SERVICE_ACCEPT_SHUTDOWN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
SERVICE_ACCEPT_PARAMCHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000008
SERVICE_ACCEPT_NETBINDCHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
SERVICE_ACCEPT_HARDWAREPROFILECHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000020
SERVICE_ACCEPT_POWEREVENT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000040
SERVICE_ACCEPT_SESSIONCHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000080
SERVICE_ACCEPT_PRESHUTDOWN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000100
SERVICE_ACCEPT_TIMECHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000200
SERVICE_ACCEPT_TRIGGEREVENT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000400
SERVICE_ACCEPT_USER_LOGOFF =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000800
SC_MANAGER_CREATE_SERVICE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service manager access codes docs.microsoft.com/en-us/windows/desktop/Services/service-security-and-access-rights

0x00000002
SC_MANAGER_CONNECT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000001
SC_MANAGER_ENUMERATE_SERVICE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
SC_MANAGER_LOCK =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000008
SC_MANAGER_MODIFY_BOOT_CONFIG =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000020
SC_MANAGER_QUERY_LOCK_STATUS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000010
SC_MANAGER_ALL_ACCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STANDARD_RIGHTS_REQUIRED |
SC_MANAGER_CREATE_SERVICE      |
SC_MANAGER_CONNECT             |
SC_MANAGER_ENUMERATE_SERVICE   |
SC_MANAGER_LOCK                |
SC_MANAGER_MODIFY_BOOT_CONFIG  |
SC_MANAGER_QUERY_LOCK_STATUS
SERVICE_CHANGE_CONFIG =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service access codes docs.microsoft.com/en-us/windows/desktop/Services/service-security-and-access-rights

0x0002
SERVICE_ENUMERATE_DEPENDENTS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0008
SERVICE_INTERROGATE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0080
SERVICE_PAUSE_CONTINUE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0040
SERVICE_QUERY_STATUS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0004
SERVICE_QUERY_CONFIG =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0001
SERVICE_START =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0010
SERVICE_STOP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0020
SERVICE_USER_DEFINED_CONTROL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0100
SERVICE_ALL_ACCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

STANDARD_RIGHTS_REQUIRED |
SERVICE_CHANGE_CONFIG          |
SERVICE_ENUMERATE_DEPENDENTS   |
SERVICE_INTERROGATE            |
SERVICE_PAUSE_CONTINUE         |
SERVICE_QUERY_STATUS           |
SERVICE_QUERY_CONFIG           |
SERVICE_START                  |
SERVICE_STOP                   |
SERVICE_USER_DEFINED_CONTROL
SERVICE_CONFIG_DESCRIPTION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service config codes From the windows 10 SDK: // // Value to indicate no change to an optional parameter // #define SERVICE_NO_CHANGE 0xffffffff docs.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc-changeserviceconfig2w

0x00000001
SERVICE_CONFIG_FAILURE_ACTIONS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
SERVICE_CONFIG_DELAYED_AUTO_START_INFO =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000003
SERVICE_CONFIG_FAILURE_ACTIONS_FLAG =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000004
SERVICE_CONFIG_SERVICE_SID_INFO =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000005
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000006
SERVICE_CONFIG_PRESHUTDOWN_INFO =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000007
SERVICE_CONFIG_TRIGGER_INFO =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000008
SERVICE_CONFIG_PREFERRED_NODE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000009
SERVICE_CONFIG_LAUNCH_PROTECTED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x0000000C
SERVICE_NO_CHANGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0xffffffff
SERVICE_CONFIG_TYPES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  SERVICE_CONFIG_DESCRIPTION => :SERVICE_CONFIG_DESCRIPTION,
  SERVICE_CONFIG_FAILURE_ACTIONS => :SERVICE_CONFIG_FAILURE_ACTIONS,
  SERVICE_CONFIG_DELAYED_AUTO_START_INFO => :SERVICE_CONFIG_DELAYED_AUTO_START_INFO,
  SERVICE_CONFIG_FAILURE_ACTIONS_FLAG => :SERVICE_CONFIG_FAILURE_ACTIONS_FLAG,
  SERVICE_CONFIG_SERVICE_SID_INFO => :SERVICE_CONFIG_SERVICE_SID_INFO,
  SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO => :SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO,
  SERVICE_CONFIG_PRESHUTDOWN_INFO => :SERVICE_CONFIG_PRESHUTDOWN_INFO,
  SERVICE_CONFIG_TRIGGER_INFO => :SERVICE_CONFIG_TRIGGER_INFO,
  SERVICE_CONFIG_PREFERRED_NODE => :SERVICE_CONFIG_PREFERRED_NODE,
  SERVICE_CONFIG_LAUNCH_PROTECTED => :SERVICE_CONFIG_LAUNCH_PROTECTED,
}
SERVICE_ACTIVE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Service enum codes docs.microsoft.com/en-us/windows/desktop/api/winsvc/nf-winsvc-enumservicesstatusexa

0x00000001
SERVICE_INACTIVE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

0x00000002
SERVICE_STATE_ALL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

SERVICE_ACTIVE |
SERVICE_INACTIVE
SERVICENAME_MAX =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

docs.microsoft.com/en-us/windows/desktop/api/winsvc/ns-winsvc-_enum_service_status_processw

256