Export (0) Print
Expand All

D2D1CreateFactory(D2D1_FACTORY_TYPE,REFIID,void**) function

Creates a factory object that can be used to create Direct2D resources.

Syntax


HRESULT WINAPI D2D1CreateFactory(D2D1_FACTORY_TYPE,REFIID,**void)(
  _In_   D2D1_FACTORY_TYPE factoryType,
  _In_   REFIID riid,
  _Out_  void **ppIFactory
);

Parameters

factoryType [in]

Type: D2D1_FACTORY_TYPE

The threading model of the factory and the resources it creates.

riid [in]

Type: REFIID

A reference to the IID of ID2D1Factory that is obtained by using __uuidof(ID2D1Factory).

ppIFactory [out]

Type: void**

When this method returns, contains the address to a pointer to the new factory.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft