Windows API reference
CreateServiceW
Creates a service in the SCM database, specifying its binary path and start type.
- Library
- Advapi32.dll
- Category
- Service Control, Persistence, Privilege Escalation
- Suspicion
- high
Detection summary
CreateServiceW maps to Microsoft-Windows-Security-Auditing; these events record the OS effect, not the API call.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Security-Auditing
- Notes: Security-Auditing events depend on audit policy and do not contain the API name; correlate by process, token and logon identifiers.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Installers, updaters, drivers and enterprise management software.
Related APIs
- StartServiceW — Advapi32.dll
- DeleteService — Advapi32.dll
- ChangeServiceConfigW — Advapi32.dll