lpServiceStartName [in] Pointer to a null-terminated string that specifies the name of the account under which the service should run. Specify NULL if you are not changing the existing account name. If the service type is SERVICE_WIN32_OWN_PROCESS, use an account name in the form
DomainName\
UserName. The service process will be logged on as this user. If the account belongs to the built-in domain, you can specify .\
UserName (note that the corresponding C/C++ string is ".\\
UserName"). For more information, see
Service User Accounts and the warning in the Remarks section.
Windows NT: If the service type is SERVICE_WIN32_SHARE_PROCESS, you must specify the
LocalSystem account. On later versions of Windows, a shared process can run as any user.
If the service type is SERVICE_KERNEL_DRIVER or SERVICE_FILE_SYSTEM_DRIVER, the name is the driver object name that the system uses to load the device driver. Specify NULL if the driver is to use a default object name created by the I/O system.
lpPassword [in] Pointer to a null-terminated string that contains the password to the account name specified by the
lpServiceStartName parameter. Specify NULL if you are not changing the existing password. Specify an empty string if the account has no password or if the service runs in the LocalService, NetworkService, or LocalSystem account. For more information, see
Service Record List. Passwords are ignored for driver services.
Partager