Typically, host-based services create SCPs under the computer object for the host computer. Host-based services are services closely tied to a single host computer.
To create SCPs under a computer object
For more information and a code example, see How Clients Find and Use a Service Connection Point.
Be aware that only domain-member computers have valid computer objects in the directory.
To get the DNS or NetBIOS name of the local computer, call the GetComputerNameEx function.