Module: Puppet::FFI::Windows::Functions Private

Extended by:
FFI::Library
Includes:
Constants
Included in:
Process, Util::Windows::Daemon, Util::Windows::Daemon, Util::Windows::File, Util::Windows::File, Util::Windows::Process, Util::Windows::Service, Util::Windows::Service
Defined in:
lib/puppet/ffi/windows/functions.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

SC_STATUS_TYPE =

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/nf-winsvc-queryservicestatusex BOOL QueryServiceStatusEx(

SC_HANDLE      hService,
SC_STATUS_TYPE InfoLevel,
LPBYTE         lpBuffer,
DWORD          cbBufSize,
LPDWORD        pcbBytesNeeded

);

enum(
  :SC_STATUS_PROCESS_INFO, 0
)
SC_ENUM_TYPE =

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/nf-winsvc-enumservicesstatusexw BOOL EnumServicesStatusExW(

SC_HANDLE    hSCManager,
SC_ENUM_TYPE InfoLevel,
DWORD        dwServiceType,
DWORD        dwServiceState,
LPBYTE       lpServices,
DWORD        cbBufSize,
LPDWORD      pcbBytesNeeded,
LPDWORD      lpServicesReturned,
LPDWORD      lpResumeHandle,
LPCWSTR      pszGroupName

);

enum(
  :SC_ENUM_PROCESS_INFO, 0
)

Constants included from Constants

Constants::ABOVE_NORMAL_PRIORITY_CLASS, Constants::ALL_SERVICE_TYPES, Constants::BELOW_NORMAL_PRIORITY_CLASS, Constants::CREATE_BREAKAWAY_FROM_JOB, Constants::CREATE_DEFAULT_ERROR_MODE, Constants::CREATE_NEW_CONSOLE, Constants::CREATE_NEW_PROCESS_GROUP, Constants::CREATE_NO_WINDOW, Constants::CREATE_PRESERVE_CODE_AUTHZ_LEVEL, Constants::CREATE_PROTECTED_PROCESS, Constants::CREATE_SEPARATE_WOW_VDM, Constants::CREATE_SHARED_WOW_VDM, Constants::CREATE_SUSPENDED, Constants::CREATE_UNICODE_ENVIRONMENT, Constants::DEBUG_ONLY_THIS_PROCESS, Constants::DEBUG_PROCESS, Constants::DELETE, Constants::DETACHED_PROCESS, Constants::ERROR_ALREADY_EXISTS, Constants::ERROR_FILE_NOT_FOUND, Constants::ERROR_PATH_NOT_FOUND, Constants::ERROR_SERVICE_DOES_NOT_EXIST, Constants::FILE_ALL_ACCESS, Constants::FILE_APPEND_DATA, Constants::FILE_ATTRIBUTE_DIRECTORY, Constants::FILE_ATTRIBUTE_READONLY, Constants::FILE_ATTRIBUTE_REPARSE_POINT, Constants::FILE_DELETE_CHILD, Constants::FILE_DEVICE_FILE_SYSTEM, Constants::FILE_EXECUTE, Constants::FILE_FLAG_BACKUP_SEMANTICS, Constants::FILE_FLAG_OPEN_REPARSE_POINT, Constants::FILE_GENERIC_EXECUTE, Constants::FILE_GENERIC_READ, Constants::FILE_GENERIC_WRITE, Constants::FILE_READ_ATTRIBUTES, Constants::FILE_READ_DATA, Constants::FILE_READ_EA, Constants::FILE_SHARE_READ, Constants::FILE_SHARE_WRITE, Constants::FILE_WRITE_ATTRIBUTES, Constants::FILE_WRITE_DATA, Constants::FILE_WRITE_EA, Constants::FINAL_STATES, Constants::FSCTL_GET_REPARSE_POINT, Constants::GENERIC_ALL, Constants::GENERIC_EXECUTE, Constants::GENERIC_READ, Constants::GENERIC_WRITE, Constants::HANDLE_FLAG_INHERIT, Constants::HIGH_PRIORITY_CLASS, Constants::IDLE_PRIORITY_CLASS, Constants::INHERIT_PARENT_AFFINITY, Constants::INVALID_FILE_ATTRIBUTES, Constants::INVALID_HANDLE_VALUE, Constants::IO_REPARSE_TAG_CSV, Constants::IO_REPARSE_TAG_DEDUP, Constants::IO_REPARSE_TAG_DFS, Constants::IO_REPARSE_TAG_DFSR, Constants::IO_REPARSE_TAG_HSM, Constants::IO_REPARSE_TAG_HSM2, Constants::IO_REPARSE_TAG_MOUNT_POINT, Constants::IO_REPARSE_TAG_NFS, Constants::IO_REPARSE_TAG_SIS, Constants::IO_REPARSE_TAG_SYMLINK, Constants::IO_REPARSE_TAG_WIM, Constants::LOGON_WITH_PROFILE, Constants::MAXIMUM_REPARSE_DATA_BUFFER_SIZE, Constants::METHOD_BUFFERED, Constants::NORMAL_PRIORITY_CLASS, Constants::OPEN_EXISTING, Constants::PROCESS_ALL_ACCESS, Constants::PROCESS_QUERY_INFORMATION, Constants::PROCESS_SET_INFORMATION, Constants::PROCESS_TERMINATE, Constants::PROCESS_VM_READ, Constants::REALTIME_PRIORITY_CLASS, Constants::REPLACEFILE_IGNORE_ACL_ERRORS, Constants::REPLACEFILE_IGNORE_MERGE_ERRORS, Constants::REPLACEFILE_WRITE_THROUGH, Constants::SC_MANAGER_ALL_ACCESS, Constants::SC_MANAGER_CONNECT, Constants::SC_MANAGER_CREATE_SERVICE, Constants::SC_MANAGER_ENUMERATE_SERVICE, Constants::SC_MANAGER_LOCK, Constants::SC_MANAGER_MODIFY_BOOT_CONFIG, Constants::SC_MANAGER_QUERY_LOCK_STATUS, Constants::SEM_FAILCRITICALERRORS, Constants::SEM_NOGPFAULTERRORBOX, Constants::SERVICENAME_MAX, Constants::SERVICE_ACCEPT_HARDWAREPROFILECHANGE, Constants::SERVICE_ACCEPT_NETBINDCHANGE, Constants::SERVICE_ACCEPT_PARAMCHANGE, Constants::SERVICE_ACCEPT_PAUSE_CONTINUE, Constants::SERVICE_ACCEPT_POWEREVENT, Constants::SERVICE_ACCEPT_PRESHUTDOWN, Constants::SERVICE_ACCEPT_SESSIONCHANGE, Constants::SERVICE_ACCEPT_SHUTDOWN, Constants::SERVICE_ACCEPT_STOP, Constants::SERVICE_ACCEPT_TIMECHANGE, Constants::SERVICE_ACCEPT_TRIGGEREVENT, Constants::SERVICE_ACCEPT_USER_LOGOFF, Constants::SERVICE_ACTIVE, Constants::SERVICE_ALL_ACCESS, Constants::SERVICE_AUTO_START, Constants::SERVICE_BOOT_START, Constants::SERVICE_CHANGE_CONFIG, Constants::SERVICE_CONFIG_DELAYED_AUTO_START_INFO, Constants::SERVICE_CONFIG_DESCRIPTION, Constants::SERVICE_CONFIG_FAILURE_ACTIONS, Constants::SERVICE_CONFIG_FAILURE_ACTIONS_FLAG, Constants::SERVICE_CONFIG_LAUNCH_PROTECTED, Constants::SERVICE_CONFIG_PREFERRED_NODE, Constants::SERVICE_CONFIG_PRESHUTDOWN_INFO, Constants::SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO, Constants::SERVICE_CONFIG_SERVICE_SID_INFO, Constants::SERVICE_CONFIG_TRIGGER_INFO, Constants::SERVICE_CONFIG_TYPES, Constants::SERVICE_CONTINUE_PENDING, Constants::SERVICE_CONTROL_CONTINUE, Constants::SERVICE_CONTROL_DEVICEEVENT, Constants::SERVICE_CONTROL_HARDWAREPROFILECHANGE, Constants::SERVICE_CONTROL_INTERROGATE, Constants::SERVICE_CONTROL_NETBINDADD, Constants::SERVICE_CONTROL_NETBINDDISABLE, Constants::SERVICE_CONTROL_NETBINDENABLE, Constants::SERVICE_CONTROL_NETBINDREMOVE, Constants::SERVICE_CONTROL_PARAMCHANGE, Constants::SERVICE_CONTROL_PAUSE, Constants::SERVICE_CONTROL_POWEREVENT, Constants::SERVICE_CONTROL_PRESHUTDOWN, Constants::SERVICE_CONTROL_SESSIONCHANGE, Constants::SERVICE_CONTROL_SHUTDOWN, Constants::SERVICE_CONTROL_SIGNALS, Constants::SERVICE_CONTROL_STOP, Constants::SERVICE_CONTROL_TIMECHANGE, Constants::SERVICE_CONTROL_TRIGGEREVENT, Constants::SERVICE_DEMAND_START, Constants::SERVICE_DISABLED, Constants::SERVICE_ENUMERATE_DEPENDENTS, Constants::SERVICE_FILE_SYSTEM_DRIVER, Constants::SERVICE_INACTIVE, Constants::SERVICE_INTERACTIVE_PROCESS, Constants::SERVICE_INTERROGATE, Constants::SERVICE_KERNEL_DRIVER, Constants::SERVICE_NO_CHANGE, Constants::SERVICE_PAUSED, Constants::SERVICE_PAUSE_CONTINUE, Constants::SERVICE_PAUSE_PENDING, Constants::SERVICE_QUERY_CONFIG, Constants::SERVICE_QUERY_STATUS, Constants::SERVICE_RUNNING, Constants::SERVICE_START, Constants::SERVICE_START_PENDING, Constants::SERVICE_START_TYPES, Constants::SERVICE_STATES, Constants::SERVICE_STATE_ALL, Constants::SERVICE_STOP, Constants::SERVICE_STOPPED, Constants::SERVICE_STOP_PENDING, Constants::SERVICE_SYSTEM_START, Constants::SERVICE_USER_DEFINED_CONTROL, Constants::SERVICE_USER_OWN_PROCESS, Constants::SERVICE_USER_SHARE_PROCESS, Constants::SERVICE_WIN32_OWN_PROCESS, Constants::SERVICE_WIN32_SHARE_PROCESS, Constants::SHGFI_DISPLAYNAME, Constants::SHGFI_PIDL, Constants::SPECIFIC_RIGHTS_ALL, Constants::STANDARD_RIGHTS_ALL, Constants::STANDARD_RIGHTS_EXECUTE, Constants::STANDARD_RIGHTS_READ, Constants::STANDARD_RIGHTS_REQUIRED, Constants::STANDARD_RIGHTS_WRITE, Constants::STARTF_USESTDHANDLES, Constants::SYNCHRONIZE, Constants::TOKEN_INFORMATION_CLASS, Constants::UNSAFE_PENDING_STATES, Constants::WRITE_DAC, Constants::WRITE_OWNER