ICreateTypeInfo::DefineFuncAsDllEntry method (oaidl.h)
Associates a DLL entry point with the function that has the specified index.
Syntax
HRESULT DefineFuncAsDllEntry(
[in] UINT index,
[in] LPOLESTR szDllName,
[in] LPOLESTR szProcName
);
Parameters
[in] index
The index of the function.
[in] szDllName
The name of the DLL that contains the entry point.
[in] szProcName
The name of the entry point or an ordinal (if the high word is zero).
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
|
Insufficient memory to complete the operation. |
|
The element cannot be found. |
|
Type mismatch. |
Remarks
If the high word of szProcName is zero, then the low word must contain the ordinal of the entry point; otherwise, szProcName points to the zero-terminated name of the entry point.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |