ICreateTypeInfo::DefineFuncAsDllEntry
This method associates a dynamic-link library (DLL) entry point with a function that has a specified index.
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 Values
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 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.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Oaidl.h, Oaidl.idl.
Link Library: Oleaut32.lib, Uuid.lib.
See Also
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.