Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method associates a dynamic-link library (DLL) entry point with a function that has a specified index.
Syntax
HRESULT DefineFuncAsDllEntry( unsigned int index, OLECHAR FAR* szDllName, OLECHAR FAR* szProcName ); |
Parameters
- index
-
[in] Index of the function.
- szDllName
-
[in] Null-terminated string that contains the name of the DLL that contains the entry point.
- szProcName
-
[in] Null-terminated string that contains the name of the entry point or an ordinal (if the high-order word is zero).
Return Value
The following table shows the return values for this function.
Value | Description |
---|---|
S_OK |
Success. |
STG_E_INSUFFICIENTMEMORY |
Out of memory. |
E_OUTOFMEMORY |
Out of memory. |
E_INVALIDARG |
One or more of the parameters is invalid. |
TYPE_E_ELEMENTNOTFOUND |
The element cannot be found. |
TYPE_E_WRONGTYPEKIND |
Type mismatch. |
Remarks
If the high-order word of szProcNameis zero, then the low-order word must contain the ordinal of the entry point; otherwise, szProcNamepoints to the null-terminated name of the entry point.
Requirements
Header | oaidl.h, oaidl.idl |
Library | oleaut32.lib, uuid.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |