Platform SDK: Transaction Server

getDirectCreatorName Method

[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]

Retrieves the user name associated with the current object's immediate (out-of-process) creator.

Provided By

Context class

String getDirectCreatorName ( );

Return Values

User name associated with the process that directly created the current object.

Remarks

You use the getDirectCreatorName method to determine the the process that created the current object. The following scenarios illustrate the functionality of the getDirectCreatorName method.

A base process running on server A, as user A, creates object X on server B, running as user B. Then object X creates object Y, running on server C. If object Y calls getDirectCreatorName, the name of user B is returned.

Security can only be enforced across process boundaries. This means that if an object creates another object within the same process, when the second object calls getDirectCreatorName, it will get the of the most immediate creator outside its own process boundary, not the user name associated with the object that actually created it.

A base client running on server A, as user A, creates object X on server B, running as user B. Then object X creates object Y, running in the same process as object X, also on server B. When object Y calls getDirectCreatorName, the name of user A is returned, not the name of user B.

See Also

Programmatic Security, Advanced Security Methods, Context class