This method associates a dynamic-link library (DLL) entry point with a function that has a specified index.
At a Glance
Header file: | Oaidl.h |
Windows CE versions: | 2.0 and later |
Syntax
HRESULT DefineFuncAsDllEntry( unsigned int index,
OLECHAR FAR* szDllName, OLECHAR FAR* szProcName );
Parameters
index
Index of the function.
szDllName
NULL-terminated string that contains the name of the DLL that contains the entry point.
szProcName
NULL-terminated string that contains the name of the entry point or an ordinal (if the high-order word is zero).
Return Values
One of the values described in the following table is returned.
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 szProcName is zero, then the low-order word must contain the ordinal of the entry point; otherwise, szProcName points to the null-terminated name of the entry point.