SLPFindScopes Subroutine
Purpose
Sets the ppcScopeList parameter to point to a comma-separated list that includes all available scope values.
Syntax
SLPError SLPFindScopes(SLPHandle hSLP,
char** ppcScopeList);
Description
The SLPFindScopes subroutine sets the ppcScopeList parameter to point to a comma-separated list that includes all available scope values. If there is any order to the scopes, preferred scopes are listed before less desirable scopes. There is always at least one name in the list, the default scope, DEFAULT.
Parameters
Item | Description |
---|---|
hSLP | The SLPHandle on which to search for scopes. |
ppcScopeList | A pointer to a char pointer into which the buffer pointer is placed upon return. The buffer is null terminated. The memory should be freed by calling SLPFree(). |
Return Values
If no error occurs, SLPFindScopes returns SLP_OK; otherwise, it returns the appropriate error code.