Share via


Implementing the DLL Entry Points

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

Each language resource DLL must implement and export the following entry points. The DLL file can be registered to be in any folder.

DllMain. Standard entry point to DLL.

DllRegisterServer. Registers the DLL in the registry. You register the DLL by running the Regsvr32.exe program with the DLL file name for the language resource as an argument.

regsvr32.exe %SystemRoot%\MyFolder\wordbreaker.dll

DllCanUnloadNow. Clients call this entry point through Component Object Model (COM) to determine whether it is possible to unload the language resource DLL.

DllUnRegisterServer. Removes the DLL in the registry.

Secure Code Practices

Troubleshooting Language Resources