Share via


UfnInitializeInterface (Compact 2013)

3/26/2014

This function initializes the model device driver (MDD) to client interface. Specifically, it retrieves the device handle and the function table.

Syntax

DWORD UfnInitializeInterface(
  LPCTSTR pszActiveKey,
  UFN_HANDLE *phDevice,
  PUFN_FUNCTIONS pFunctions,
  PVOID *ppvInterfaceInfo
);

Parameters

  • pszActiveKey
    [in] Pointer to a string containing the registry path to the Active key for the driver.
  • phDevice
    [out] Pointer to the handle that identifies the client to the MDD.
  • pFunctions
    [out] Pointer to a UFN_FUNCTIONS structure that contains the MDD function information.
  • ppvInterfaceInfo
    [out] Address of a pointer to the handle of an instance of the client interface information.

Return Value

If the call succeeds, the function returns ERROR_SUCCESS.

Remarks

The USB function client driver helper library is in %_WINCEROOT%\Public\Common\OAK\Drivers\Usbfn\Ufnclientlib.

Requirements

Header

usbfntypes.h

Library

UfnClientLibBase.lib

See Also

Reference

USB Function Client Driver Helper Library Functions