News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Additions related to Services

Started by livinskull, March 02, 2012, 09:04:53 PM

Previous topic - Next topic

livinskull

Working a lot with services some time ago, I stumbled upon some missing definitions related to services.
I don't know if that's all new stuff, but these are the definitions I needed for my project:
(taken from msdn and winsvc.h)


SC_ENUM_PROCESS_INFO equ 0

SC_STATUS_PROCESS_INFO equ 0

SERVICE_CONFIG_DESCRIPTION equ 1


SERVICE_STATUS_PROCESS STRUCT
  dwServiceType             DWORD      ?
  dwCurrentState            DWORD      ?
  dwControlsAccepted        DWORD      ?
  dwWin32ExitCode           DWORD      ?
  dwServiceSpecificExitCode DWORD      ?
  dwCheckPoint              DWORD      ?
  dwWaitHint                DWORD      ?
  dwProcessId                DWORD    ?
  dwServiceFlags                DWORD    ?
SERVICE_STATUS_PROCESS ENDS

ENUM_SERVICE_STATUS_PROCESS STRUCT
  lpServiceName  DWORD      ?
  lpDisplayName  DWORD      ?
  ServiceStatusProcess  SERVICE_STATUS_PROCESS <>
ENUM_SERVICE_STATUS_PROCESS ENDS

SERVICE_DESCRIPTION STRUCT
lpDescription DWORD ?
SERVICE_DESCRIPTION ends