For example, when you enter a key name
of eventlog, you receive a display name of Event Log. You can specify an optional buffer
size argument for this command that defines the size of the buffer you??™ve set aside for the
description. When the buffer is too small, the utility returns a value that tells you the minimum
buffer size.
GetKeyName ???DisplayName??? [BufferSize] Obtains the key name (the one used for most SC
utility commands) for a service based on its display name. For example, when you enter a display
name of Event Log, the utility returns a key name of event log. Make sure you enclose the
display name in quotes. You can specify an optional buffer size argument for this command that
defines the size of the buffer you??™ve set aside for the description. When the buffer is too small,
the utility returns a value that tells you the minimum buffer size.
60 CHAPTER 3 PERFORMING ESSENTIAL MAINTENANCE TASKS
EnumDepend [BufferSize] Enumerates the dependencies (the list of services that must be
running before the service can start) for a service. You can specify an optional buffer size argument
for this command that defines the size of the buffer you??™ve set aside for the description.
Pages:
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214