V
V
Vadim Ushakov2021-10-10 05:33:43
C++ / C#
Vadim Ushakov, 2021-10-10 05:33:43

StartService returned error code 2, what could that mean?

StartService (winapi) returned error code 2, what could that mean?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-10-10
@Nightmare1

If we are talking about this StartService:
https://docs.microsoft.com/en-us/windows/win32/cim...
Then code 2 means:

The user did not have the necessary access.

This means there are not enough rights.
If code 2 is received from GetLastError, then this is ERROR_FILE_NOT_FOUND

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question