|
JWSCL Documentation
|
class function ParseUNC(const KeyName: TJwString; out Server: TJwString; out SubKey: TJwString; out aRootTuple: TJwRootTuple): boolean; virtual;
|
Parameters |
Description |
|
const KeyName: TJwString |
defines the key path to be parsed |
|
out Server: TJwString |
receives the server name from the key, if parameter KeyName is a UNC. Otherwise the value is empty. |
|
out SubKey: TJwString |
receives the key path without the root name (e.g. LOCAL_MACHINE). It does not start with a "" but ends with it. |
|
out aRootTuple: TJwRootTuple |
received the key root in a structure that contains a string, a HKEY and a special enum value. The KeyName can contain only one root identifier. The root name can be one of the following :
|
The return value is true if the given KeyName is a UNC path; otherwise false.
ParseUNC retrieves from a UNC key name the server name, the root key and the sub key (if any). If the given KeyName is not a UNC path the return value is false and the output parameter Server is empty. The server name can also be the local computer name, "local" or "localhost". The last two names are automatically translated into the computer name and returned in parameter Server.
UNC: \serverrootsubkey
standard: rootsubkey
The function does not raise an exception.
|
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc. |
|
What do you think about this topic? Send feedback!
|