Click to Rate and Give Feedback
MSDN
MSDN Library
COM
COM Fundamentals
Reference
Functions
 DllRegisterServer Function
DllRegisterServer Function

Instructs an in-process server to create its registry entries for all classes supported in this server module.

Syntax

C++
HRESULT __stdcall DllRegisterServer(void);

Parameters

This function has no parameters.

Return Value

This function can return the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following values.

Return codeDescription
S_OK

The registry entries were created successfully.

SELFREG_E_TYPELIB

The server was unable to complete the registration of all the type libraries used by its classes.

SELFREG_E_CLASS

The server was unable to complete the registration of all the object classes.

 

Remarks

E_NOTIMPL is not a valid return code.

If this function fails, the state of the registry for all its classes is undefined.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderOlectl.h

See Also

DllUnregisterServer

Send comments about this topic to Microsoft

Build date: 10/22/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Delphi      Carl Kenner ... ldsandon   |   Edit   |   Show History

STDAPI means it uses the stdcall calling convention and it returns a HRESULT.

In Delphi you can declare it as:

Uses Windows;
function DllRegisterServer: HResult; stdcall;

Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker