Compartilhar via


ICreateTypeInfo::DefineFuncAsDllEntry (Compact 2013)

3/26/2014

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 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

Header

oaidl.h,
oaidl.idl

Library

oleaut32.lib,
uuid.lib

See Also

Reference

ICreateTypeInfo