ICreateTypeInfo::DefineFuncAsDllEntry

HRESULT DefineFuncAsDllEntry(
  unsigned int  index,  
  OLECHAR FAR*  szDllName,  
  OLECHAR FAR*  szProcName  
);
 

Associates a DLL entry point with the function that has the specified index.

Parameters

index
Index of the function.
szDllName
Name of the DLL that contains the entry point.
szProcName
Name of the entry point or an ordinal (if the high word is zero).

Return Value

The return value of the returned HRESULT is one of the following:

Return value Meaning
S_OK Success.
STG_E_INSUFFICIENTMEMORY Out of memory.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.
TYPE_E_ELEMENTNOTFOUND The element cannot be found.
TYPE_E_WRONGTYPEKIND Type mismatch.

Comments

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.