ReactOS  0.4.14-dev-593-g1793dcc
olectl.h File Reference
#include <ocidl.h>
Include dependency graph for olectl.h:

Go to the source code of this file.

Classes

struct  tagOCPFIPARAMS
 
struct  tagFONTDESC
 
struct  tagPICTDESC
 

Macros

#define FONTSIZE(n)   { n##0000, 0 }
 
#define PICTYPE_UNINITIALIZED   (-1)
 
#define PICTYPE_NONE   0
 
#define PICTYPE_BITMAP   1
 
#define PICTYPE_METAFILE   2
 
#define PICTYPE_ICON   3
 
#define PICTYPE_ENHMETAFILE   4
 
#define LP_DEFAULT   0x0
 
#define LP_MONOCHROME   0x1
 
#define LP_VGACOLOR   0x2
 
#define LP_COLOR   0x4
 
#define OCM__BASE   (WM_USER+0x1c00)
 
#define OCM_COMMAND   (OCM__BASE + WM_COMMAND)
 
#define OCM_CTLCOLORBTN   (OCM__BASE + WM_CTLCOLORBTN)
 
#define OCM_CTLCOLOREDIT   (OCM__BASE + WM_CTLCOLOREDIT)
 
#define OCM_CTLCOLORDLG   (OCM__BASE + WM_CTLCOLORDLG)
 
#define OCM_CTLCOLORLISTBOX   (OCM__BASE + WM_CTLCOLORLISTBOX)
 
#define OCM_CTLCOLORMSGBOX   (OCM__BASE + WM_CTLCOLORMSGBOX)
 
#define OCM_CTLCOLORSCROLLBAR   (OCM__BASE + WM_CTLCOLORSCROLLBAR)
 
#define OCM_CTLCOLORSTATIC   (OCM__BASE + WM_CTLCOLORSTATIC)
 
#define OCM_DRAWITEM   (OCM__BASE + WM_DRAWITEM)
 
#define OCM_MEASUREITEM   (OCM__BASE + WM_MEASUREITEM)
 
#define OCM_DELETEITEM   (OCM__BASE + WM_DELETEITEM)
 
#define OCM_VKEYTOITEM   (OCM__BASE + WM_VKEYTOITEM)
 
#define OCM_CHARTOITEM   (OCM__BASE + WM_CHARTOITEM)
 
#define OCM_COMPAREITEM   (OCM__BASE + WM_COMPAREITEM)
 
#define OCM_HSCROLL   (OCM__BASE + WM_HSCROLL)
 
#define OCM_VSCROLL   (OCM__BASE + WM_VSCROLL)
 
#define OCM_PARENTNOTIFY   (OCM__BASE + WM_PARENTNOTIFY)
 
#define OCM_NOTIFY   (OCM__BASE + WM_NOTIFY)
 
#define CONNECT_E_FIRST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
 
#define CONNECT_E_LAST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
 
#define CONNECT_S_FIRST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
 
#define CONNECT_S_LAST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
 
#define CONNECT_E_NOCONNECTION   (CONNECT_E_FIRST+0)
 
#define CONNECT_E_ADVISELIMIT   (CONNECT_E_FIRST+1)
 
#define CONNECT_E_CANNOTCONNECT   (CONNECT_E_FIRST+2)
 
#define CONNECT_E_OVERRIDDEN   (CONNECT_E_FIRST+3)
 
#define SELFREG_E_FIRST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
 
#define SELFREG_E_LAST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
 
#define SELFREG_S_FIRST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
 
#define SELFREG_S_LAST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
 
#define SELFREG_E_TYPELIB   (SELFREG_E_FIRST+0)
 
#define SELFREG_E_CLASS   (SELFREG_E_FIRST+1)
 
#define FACILITY_CONTROL   0xa
 
#define STD_CTL_SCODE(n)   MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)
 
#define CTL_E_ILLEGALFUNCTIONCALL   STD_CTL_SCODE(5)
 
#define CTL_E_OVERFLOW   STD_CTL_SCODE(6)
 
#define CTL_E_OUTOFMEMORY   STD_CTL_SCODE(7)
 
#define CTL_E_DIVISIONBYZERO   STD_CTL_SCODE(11)
 
#define CTL_E_OUTOFSTRINGSPACE   STD_CTL_SCODE(14)
 
#define CTL_E_OUTOFSTACKSPACE   STD_CTL_SCODE(28)
 
#define CTL_E_BADFILENAMEORNUMBER   STD_CTL_SCODE(52)
 
#define CTL_E_FILENOTFOUND   STD_CTL_SCODE(53)
 
#define CTL_E_BADFILEMODE   STD_CTL_SCODE(54)
 
#define CTL_E_FILEALREADYOPEN   STD_CTL_SCODE(55)
 
#define CTL_E_DEVICEIOERROR   STD_CTL_SCODE(57)
 
#define CTL_E_FILEALREADYEXISTS   STD_CTL_SCODE(58)
 
#define CTL_E_BADRECORDLENGTH   STD_CTL_SCODE(59)
 
#define CTL_E_DISKFULL   STD_CTL_SCODE(61)
 
#define CTL_E_BADRECORDNUMBER   STD_CTL_SCODE(63)
 
#define CTL_E_BADFILENAME   STD_CTL_SCODE(64)
 
#define CTL_E_TOOMANYFILES   STD_CTL_SCODE(67)
 
#define CTL_E_DEVICEUNAVAILABLE   STD_CTL_SCODE(68)
 
#define CTL_E_PERMISSIONDENIED   STD_CTL_SCODE(70)
 
#define CTL_E_DISKNOTREADY   STD_CTL_SCODE(71)
 
#define CTL_E_PATHFILEACCESSERROR   STD_CTL_SCODE(75)
 
#define CTL_E_PATHNOTFOUND   STD_CTL_SCODE(76)
 
#define CTL_E_INVALIDPATTERNSTRING   STD_CTL_SCODE(93)
 
#define CTL_E_INVALIDUSEOFNULL   STD_CTL_SCODE(94)
 
#define CTL_E_INVALIDFILEFORMAT   STD_CTL_SCODE(321)
 
#define CTL_E_INVALIDPROPERTYVALUE   STD_CTL_SCODE(380)
 
#define CTL_E_INVALIDPROPERTYARRAYINDEX   STD_CTL_SCODE(381)
 
#define CTL_E_SETNOTSUPPORTEDATRUNTIME   STD_CTL_SCODE(382)
 
#define CTL_E_SETNOTSUPPORTED   STD_CTL_SCODE(383)
 
#define CTL_E_NEEDPROPERTYARRAYINDEX   STD_CTL_SCODE(385)
 
#define CTL_E_SETNOTPERMITTED   STD_CTL_SCODE(387)
 
#define CTL_E_GETNOTSUPPORTEDATRUNTIME   STD_CTL_SCODE(393)
 
#define CTL_E_GETNOTSUPPORTED   STD_CTL_SCODE(394)
 
#define CTL_E_PROPERTYNOTFOUND   STD_CTL_SCODE(422)
 
#define CTL_E_INVALIDCLIPBOARDFORMAT   STD_CTL_SCODE(460)
 
#define CTL_E_INVALIDPICTURE   STD_CTL_SCODE(481)
 
#define CTL_E_PRINTERERROR   STD_CTL_SCODE(482)
 
#define CTL_E_CANTSAVEFILETOTEMP   STD_CTL_SCODE(735)
 
#define CTL_E_SEARCHTEXTNOTFOUND   STD_CTL_SCODE(744)
 
#define CTL_E_REPLACEMENTSTOOLONG   STD_CTL_SCODE(746)
 
#define CUSTOM_CTL_SCODE(n)   MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)
 
#define CTL_E_CUSTOM_FIRST   CUSTOM_CTL_SCODE(600)
 
#define VT_COLOR   VT_I4
 
#define VT_XPOS_PIXELS   VT_I4
 
#define VT_YPOS_PIXELS   VT_I4
 
#define VT_XSIZE_PIXELS   VT_I4
 
#define VT_YSIZE_PIXELS   VT_I4
 
#define VT_XPOS_HIMETRIC   VT_I4
 
#define VT_YPOS_HIMETRIC   VT_I4
 
#define VT_XSIZE_HIMETRIC   VT_I4
 
#define VT_YSIZE_HIMETRIC   VT_I4
 
#define VT_TRISTATE   VT_I2
 
#define VT_OPTEXCLUSIVE   VT_BOOL
 
#define VT_FONT   VT_DISPATCH
 
#define VT_PICTURE   VT_DISPATCH
 
#define VT_STREAMED_PROPSET   73
 
#define VT_STORED_PROPSET   74
 
#define VT_BLOB_PROPSET   75
 
#define VT_VERBOSE_ENUM   76
 
#define OLEIVERB_PROPERTIES   (-7L)
 
#define PERPROP_E_FIRST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)
 
#define PERPROP_E_LAST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)
 
#define PERPROP_S_FIRST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
 
#define PERPROP_S_LAST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
 
#define PERPROP_E_NOPAGEAVAILABLE   (PERPROP_E_FIRST+0)
 
#define DISPID_AUTOSIZE   (-500)
 
#define DISPID_BACKCOLOR   (-501)
 
#define DISPID_BACKSTYLE   (-502)
 
#define DISPID_BORDERCOLOR   (-503)
 
#define DISPID_BORDERSTYLE   (-504)
 
#define DISPID_BORDERWIDTH   (-505)
 
#define DISPID_DRAWMODE   (-507)
 
#define DISPID_DRAWSTYLE   (-508)
 
#define DISPID_DRAWWIDTH   (-509)
 
#define DISPID_FILLCOLOR   (-510)
 
#define DISPID_FILLSTYLE   (-511)
 
#define DISPID_FONT   (-512)
 
#define DISPID_FORECOLOR   (-513)
 
#define DISPID_ENABLED   (-514)
 
#define DISPID_HWND   (-515)
 
#define DISPID_TABSTOP   (-516)
 
#define DISPID_TEXT   (-517)
 
#define DISPID_CAPTION   (-518)
 
#define DISPID_BORDERVISIBLE   (-519)
 
#define DISPID_APPEARANCE   (-520)
 
#define DISPID_MOUSEPOINTER   (-521)
 
#define DISPID_MOUSEICON   (-522)
 
#define DISPID_PICTURE   (-523)
 
#define DISPID_VALID   (-524)
 
#define DISPID_READYSTATE   (-525)
 
#define DISPID_REFRESH   (-550)
 
#define DISPID_DOCLICK   (-551)
 
#define DISPID_ABOUTBOX   (-552)
 
#define DISPID_ADDITEM   (-553)
 
#define DISPID_CLEAR   (-554)
 
#define DISPID_REMOVEITEM   (-555)
 
#define DISPID_CLICK   (-600)
 
#define DISPID_DBLCLICK   (-601)
 
#define DISPID_KEYDOWN   (-602)
 
#define DISPID_KEYPRESS   (-603)
 
#define DISPID_KEYUP   (-604)
 
#define DISPID_MOUSEDOWN   (-605)
 
#define DISPID_MOUSEMOVE   (-606)
 
#define DISPID_MOUSEUP   (-607)
 
#define DISPID_ERROREVENT   (-608)
 
#define DISPID_READYSTATECHANGE   (-609)
 
#define DISPID_CLICK_VALUE   (-610)
 
#define DISPID_RIGHTTOLEFT   (-611)
 
#define DISPID_TOPTOBOTTOM   (-612)
 
#define DISPID_THIS   (-613)
 
#define DISPID_AMBIENT_BACKCOLOR   (-701)
 
#define DISPID_AMBIENT_DISPLAYNAME   (-702)
 
#define DISPID_AMBIENT_FONT   (-703)
 
#define DISPID_AMBIENT_FORECOLOR   (-704)
 
#define DISPID_AMBIENT_LOCALEID   (-705)
 
#define DISPID_AMBIENT_MESSAGEREFLECT   (-706)
 
#define DISPID_AMBIENT_SCALEUNITS   (-707)
 
#define DISPID_AMBIENT_TEXTALIGN   (-708)
 
#define DISPID_AMBIENT_USERMODE   (-709)
 
#define DISPID_AMBIENT_UIDEAD   (-710)
 
#define DISPID_AMBIENT_SHOWGRABHANDLES   (-711)
 
#define DISPID_AMBIENT_SHOWHATCHING   (-712)
 
#define DISPID_AMBIENT_DISPLAYASDEFAULT   (-713)
 
#define DISPID_AMBIENT_SUPPORTSMNEMONICS   (-714)
 
#define DISPID_AMBIENT_AUTOCLIP   (-715)
 
#define DISPID_AMBIENT_APPEARANCE   (-716)
 
#define DISPID_AMBIENT_CODEPAGE   (-725)
 
#define DISPID_AMBIENT_PALETTE   (-726)
 
#define DISPID_AMBIENT_CHARSET   (-727)
 
#define DISPID_AMBIENT_TRANSFERPRIORITY   (-728)
 
#define DISPID_AMBIENT_RIGHTTOLEFT   (-732)
 
#define DISPID_AMBIENT_TOPTOBOTTOM   (-733)
 
#define DISPID_Name   (-800)
 
#define DISPID_Delete   (-801)
 
#define DISPID_Object   (-802)
 
#define DISPID_Parent   (-803)
 
#define DISPID_FONT_NAME   0
 
#define DISPID_FONT_SIZE   2
 
#define DISPID_FONT_BOLD   3
 
#define DISPID_FONT_ITALIC   4
 
#define DISPID_FONT_UNDER   5
 
#define DISPID_FONT_STRIKE   6
 
#define DISPID_FONT_WEIGHT   7
 
#define DISPID_FONT_CHARSET   8
 
#define DISPID_FONT_CHANGED   9
 
#define DISPID_PICT_HANDLE   0
 
#define DISPID_PICT_HPAL   2
 
#define DISPID_PICT_TYPE   3
 
#define DISPID_PICT_WIDTH   4
 
#define DISPID_PICT_HEIGHT   5
 
#define DISPID_PICT_RENDER   6
 

Typedefs

typedef struct tagOCPFIPARAMS OCPFIPARAMS
 
typedef struct tagOCPFIPARAMSLPOCPFIPARAMS
 
typedef struct tagFONTDESC FONTDESC
 
typedef struct tagFONTDESCLPFONTDESC
 
typedef struct tagPICTDESC PICTDESC
 
typedef struct tagPICTDESCLPPICTDESC
 
typedef LONG OLE_XPOS_PIXELS
 
typedef LONG OLE_YPOS_PIXELS
 
typedef LONG OLE_XSIZE_PIXELS
 
typedef LONG OLE_YSIZE_PIXELS
 
typedef float OLE_XPOS_CONTAINER
 
typedef float OLE_YPOS_CONTAINER
 
typedef float OLE_XSIZE_CONTAINER
 
typedef float OLE_YSIZE_CONTAINER
 
typedef VARIANT_BOOL OLE_OPTEXCLUSIVE
 
typedef VARIANT_BOOL OLE_CANCELBOOL
 
typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL
 

Enumerations

enum  OLE_TRISTATE { triUnchecked = 0, triChecked = 1, triGray = 2 }
 

Functions

 DEFINE_GUID (CLSID_ConvertVBX, 0xfb8f0822, 0x0164, 0x101b, 0x84, 0xed, 0x08, 0x00, 0x2b, 0x2e, 0xc7, 0x13)
 
 DEFINE_GUID (CLSID_PersistPropset, 0xfb8f0821, 0x0164, 0x101b, 0x84, 0xed, 0x08, 0x00, 0x2b, 0x2e, 0xc7, 0x13)
 
 DEFINE_GUID (CLSID_StdFont, 0x0be35203, 0x8f91, 0x11ce, 0x9d, 0xe3, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51)
 
 DEFINE_GUID (CLSID_StdPicture, 0x0be35204, 0x8f91, 0x11ce, 0x9d, 0xe3, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51)
 
 DEFINE_GUID (IID_IPropertyFrame, 0xb196b28a, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07)
 
 DEFINE_GUID (CLSID_CFontPropPage, 0x0be35200, 0x8f91, 0x11ce, 0x9d, 0xe3, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51)
 
 DEFINE_GUID (CLSID_CColorPropPage, 0x0be35201, 0x8f91, 0x11ce, 0x9d, 0xe3, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51)
 
 DEFINE_GUID (CLSID_CPicturePropPage, 0x0be35202, 0x8f91, 0x11ce, 0x9d, 0xe3, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51)
 
 DEFINE_GUID (GUID_HIMETRIC, 0x66504300, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_COLOR, 0x66504301, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_XPOSPIXEL, 0x66504302, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_YPOSPIXEL, 0x66504303, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_XSIZEPIXEL, 0x66504304, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_YSIZEPIXEL, 0x66504305, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_XPOS, 0x66504306, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_YPOS, 0x66504307, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_XSIZE, 0x66504308, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_YSIZE, 0x66504309, 0xBE0F, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB)
 
 DEFINE_GUID (GUID_TRISTATE, 0x6650430a, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_OPTIONVALUEEXCLUSIVE, 0x6650430b, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_CHECKVALUEEXCLUSIVE, 0x6650430c, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_FONTNAME, 0x6650430d, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_FONTSIZE, 0x6650430e, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_FONTBOLD, 0x6650430f, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_FONTITALIC, 0x66504310, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_FONTUNDERSCORE, 0x66504311, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_FONTSTRIKETHROUGH, 0x66504312, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
 DEFINE_GUID (GUID_HANDLE, 0x66504313, 0xbe0f, 0x101a, 0x8b, 0xbb, 0x00, 0xaa, 0x00, 0x30, 0x0c, 0xab)
 
HCURSOR WINAPI OleIconToCursor (HINSTANCE hinstExe, HICON hicon)
 
HRESULT WINAPI OleCreatePropertyFrameIndirect (LPOCPFIPARAMS lpParams)
 
HRESULT WINAPI OleCreatePropertyFrame (HWND hwndOwner, UINT x, UINT y, LPCOLESTR lpszCaption, ULONG cObjects, LPUNKNOWN *ppUnk, ULONG cPages, LPCLSID pPageClsID, LCID lcid, DWORD dwReserved, LPVOID pvReserved)
 
HRESULT WINAPI OleLoadPicture (LPSTREAM lpstream, LONG lSize, BOOL fRunmode, REFIID riid, LPVOID *lplpvObj)
 
HRESULT WINAPI OleLoadPictureEx (LPSTREAM lpstream, LONG lSize, BOOL fRunMode, REFIID riid, DWORD xSizeDesired, DWORD ySizeDesired, DWORD dwFlags, LPVOID *lplpvObj)
 
HRESULT WINAPI OleLoadPictureFile (VARIANT varFilename, IDispatch **ppdispPicture)
 
HRESULT WINAPI OleLoadPictureFileEx (VARIANT varFilename, DWORD xSizeDesired, DWORD ySizeDesired, DWORD dwFlags, IDispatch **ppdispPicture)
 
HRESULT WINAPI OleSavePictureFile (IDispatch *pdispPicture, BSTR bstrFilename)
 
HRESULT WINAPI OleLoadPicturePath (LPOLESTR szURLorPath, LPUNKNOWN punkCaller, DWORD dwReserved, OLE_COLOR clrReserved, REFIID riid, LPVOID *ppvRet)
 
HRESULT WINAPI OleCreatePictureIndirect (LPPICTDESC lpPictDesc, REFIID riid, BOOL fOwn, LPVOID *lplpvObj)
 
HRESULT WINAPI OleCreateFontIndirect (LPFONTDESC lpFontDesc, REFIID riid, LPVOID *lplpvObj)
 
HRESULT WINAPI OleTranslateColor (OLE_COLOR clr, HPALETTE hpal, COLORREF *lpcolorref)
 

Macro Definition Documentation

◆ CONNECT_E_ADVISELIMIT

#define CONNECT_E_ADVISELIMIT   (CONNECT_E_FIRST+1)

Definition at line 252 of file olectl.h.

◆ CONNECT_E_CANNOTCONNECT

#define CONNECT_E_CANNOTCONNECT   (CONNECT_E_FIRST+2)

Definition at line 253 of file olectl.h.

◆ CONNECT_E_FIRST

#define CONNECT_E_FIRST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)

Definition at line 246 of file olectl.h.

◆ CONNECT_E_LAST

#define CONNECT_E_LAST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)

Definition at line 247 of file olectl.h.

◆ CONNECT_E_NOCONNECTION

#define CONNECT_E_NOCONNECTION   (CONNECT_E_FIRST+0)

Definition at line 251 of file olectl.h.

◆ CONNECT_E_OVERRIDDEN

#define CONNECT_E_OVERRIDDEN   (CONNECT_E_FIRST+3)

Definition at line 254 of file olectl.h.

◆ CONNECT_S_FIRST

#define CONNECT_S_FIRST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)

Definition at line 248 of file olectl.h.

◆ CONNECT_S_LAST

#define CONNECT_S_LAST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)

Definition at line 249 of file olectl.h.

◆ CTL_E_BADFILEMODE

#define CTL_E_BADFILEMODE   STD_CTL_SCODE(54)

Definition at line 275 of file olectl.h.

◆ CTL_E_BADFILENAME

#define CTL_E_BADFILENAME   STD_CTL_SCODE(64)

Definition at line 282 of file olectl.h.

◆ CTL_E_BADFILENAMEORNUMBER

#define CTL_E_BADFILENAMEORNUMBER   STD_CTL_SCODE(52)

Definition at line 273 of file olectl.h.

◆ CTL_E_BADRECORDLENGTH

#define CTL_E_BADRECORDLENGTH   STD_CTL_SCODE(59)

Definition at line 279 of file olectl.h.

◆ CTL_E_BADRECORDNUMBER

#define CTL_E_BADRECORDNUMBER   STD_CTL_SCODE(63)

Definition at line 281 of file olectl.h.

◆ CTL_E_CANTSAVEFILETOTEMP

#define CTL_E_CANTSAVEFILETOTEMP   STD_CTL_SCODE(735)

Definition at line 304 of file olectl.h.

◆ CTL_E_CUSTOM_FIRST

#define CTL_E_CUSTOM_FIRST   CUSTOM_CTL_SCODE(600)

Definition at line 309 of file olectl.h.

◆ CTL_E_DEVICEIOERROR

#define CTL_E_DEVICEIOERROR   STD_CTL_SCODE(57)

Definition at line 277 of file olectl.h.

◆ CTL_E_DEVICEUNAVAILABLE

#define CTL_E_DEVICEUNAVAILABLE   STD_CTL_SCODE(68)

Definition at line 284 of file olectl.h.

◆ CTL_E_DISKFULL

#define CTL_E_DISKFULL   STD_CTL_SCODE(61)

Definition at line 280 of file olectl.h.

◆ CTL_E_DISKNOTREADY

#define CTL_E_DISKNOTREADY   STD_CTL_SCODE(71)

Definition at line 286 of file olectl.h.

◆ CTL_E_DIVISIONBYZERO

#define CTL_E_DIVISIONBYZERO   STD_CTL_SCODE(11)

Definition at line 270 of file olectl.h.

◆ CTL_E_FILEALREADYEXISTS

#define CTL_E_FILEALREADYEXISTS   STD_CTL_SCODE(58)

Definition at line 278 of file olectl.h.

◆ CTL_E_FILEALREADYOPEN

#define CTL_E_FILEALREADYOPEN   STD_CTL_SCODE(55)

Definition at line 276 of file olectl.h.

◆ CTL_E_FILENOTFOUND

#define CTL_E_FILENOTFOUND   STD_CTL_SCODE(53)

Definition at line 274 of file olectl.h.

◆ CTL_E_GETNOTSUPPORTED

#define CTL_E_GETNOTSUPPORTED   STD_CTL_SCODE(394)

Definition at line 299 of file olectl.h.

◆ CTL_E_GETNOTSUPPORTEDATRUNTIME

#define CTL_E_GETNOTSUPPORTEDATRUNTIME   STD_CTL_SCODE(393)

Definition at line 298 of file olectl.h.

◆ CTL_E_ILLEGALFUNCTIONCALL

#define CTL_E_ILLEGALFUNCTIONCALL   STD_CTL_SCODE(5)

Definition at line 267 of file olectl.h.

◆ CTL_E_INVALIDCLIPBOARDFORMAT

#define CTL_E_INVALIDCLIPBOARDFORMAT   STD_CTL_SCODE(460)

Definition at line 301 of file olectl.h.

◆ CTL_E_INVALIDFILEFORMAT

#define CTL_E_INVALIDFILEFORMAT   STD_CTL_SCODE(321)

Definition at line 291 of file olectl.h.

◆ CTL_E_INVALIDPATTERNSTRING

#define CTL_E_INVALIDPATTERNSTRING   STD_CTL_SCODE(93)

Definition at line 289 of file olectl.h.

◆ CTL_E_INVALIDPICTURE

#define CTL_E_INVALIDPICTURE   STD_CTL_SCODE(481)

Definition at line 302 of file olectl.h.

◆ CTL_E_INVALIDPROPERTYARRAYINDEX

#define CTL_E_INVALIDPROPERTYARRAYINDEX   STD_CTL_SCODE(381)

Definition at line 293 of file olectl.h.

◆ CTL_E_INVALIDPROPERTYVALUE

#define CTL_E_INVALIDPROPERTYVALUE   STD_CTL_SCODE(380)

Definition at line 292 of file olectl.h.

◆ CTL_E_INVALIDUSEOFNULL

#define CTL_E_INVALIDUSEOFNULL   STD_CTL_SCODE(94)

Definition at line 290 of file olectl.h.

◆ CTL_E_NEEDPROPERTYARRAYINDEX

#define CTL_E_NEEDPROPERTYARRAYINDEX   STD_CTL_SCODE(385)

Definition at line 296 of file olectl.h.

◆ CTL_E_OUTOFMEMORY

#define CTL_E_OUTOFMEMORY   STD_CTL_SCODE(7)

Definition at line 269 of file olectl.h.

◆ CTL_E_OUTOFSTACKSPACE

#define CTL_E_OUTOFSTACKSPACE   STD_CTL_SCODE(28)

Definition at line 272 of file olectl.h.

◆ CTL_E_OUTOFSTRINGSPACE

#define CTL_E_OUTOFSTRINGSPACE   STD_CTL_SCODE(14)

Definition at line 271 of file olectl.h.

◆ CTL_E_OVERFLOW

#define CTL_E_OVERFLOW   STD_CTL_SCODE(6)

Definition at line 268 of file olectl.h.

◆ CTL_E_PATHFILEACCESSERROR

#define CTL_E_PATHFILEACCESSERROR   STD_CTL_SCODE(75)

Definition at line 287 of file olectl.h.

◆ CTL_E_PATHNOTFOUND

#define CTL_E_PATHNOTFOUND   STD_CTL_SCODE(76)

Definition at line 288 of file olectl.h.

◆ CTL_E_PERMISSIONDENIED

#define CTL_E_PERMISSIONDENIED   STD_CTL_SCODE(70)

Definition at line 285 of file olectl.h.

◆ CTL_E_PRINTERERROR

#define CTL_E_PRINTERERROR   STD_CTL_SCODE(482)

Definition at line 303 of file olectl.h.

◆ CTL_E_PROPERTYNOTFOUND

#define CTL_E_PROPERTYNOTFOUND   STD_CTL_SCODE(422)

Definition at line 300 of file olectl.h.

◆ CTL_E_REPLACEMENTSTOOLONG

#define CTL_E_REPLACEMENTSTOOLONG   STD_CTL_SCODE(746)

Definition at line 306 of file olectl.h.

◆ CTL_E_SEARCHTEXTNOTFOUND

#define CTL_E_SEARCHTEXTNOTFOUND   STD_CTL_SCODE(744)

Definition at line 305 of file olectl.h.

◆ CTL_E_SETNOTPERMITTED

#define CTL_E_SETNOTPERMITTED   STD_CTL_SCODE(387)

Definition at line 297 of file olectl.h.

◆ CTL_E_SETNOTSUPPORTED

#define CTL_E_SETNOTSUPPORTED   STD_CTL_SCODE(383)

Definition at line 295 of file olectl.h.

◆ CTL_E_SETNOTSUPPORTEDATRUNTIME

#define CTL_E_SETNOTSUPPORTEDATRUNTIME   STD_CTL_SCODE(382)

Definition at line 294 of file olectl.h.

◆ CTL_E_TOOMANYFILES

#define CTL_E_TOOMANYFILES   STD_CTL_SCODE(67)

Definition at line 283 of file olectl.h.

◆ CUSTOM_CTL_SCODE

#define CUSTOM_CTL_SCODE (   n)    MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)

Definition at line 308 of file olectl.h.

◆ DISPID_ABOUTBOX

#define DISPID_ABOUTBOX   (-552)

Definition at line 377 of file olectl.h.

◆ DISPID_ADDITEM

#define DISPID_ADDITEM   (-553)

Definition at line 378 of file olectl.h.

◆ DISPID_AMBIENT_APPEARANCE

#define DISPID_AMBIENT_APPEARANCE   (-716)

Definition at line 412 of file olectl.h.

◆ DISPID_AMBIENT_AUTOCLIP

#define DISPID_AMBIENT_AUTOCLIP   (-715)

Definition at line 411 of file olectl.h.

◆ DISPID_AMBIENT_BACKCOLOR

#define DISPID_AMBIENT_BACKCOLOR   (-701)

Definition at line 397 of file olectl.h.

◆ DISPID_AMBIENT_CHARSET

#define DISPID_AMBIENT_CHARSET   (-727)

Definition at line 416 of file olectl.h.

◆ DISPID_AMBIENT_CODEPAGE

#define DISPID_AMBIENT_CODEPAGE   (-725)

Definition at line 414 of file olectl.h.

◆ DISPID_AMBIENT_DISPLAYASDEFAULT

#define DISPID_AMBIENT_DISPLAYASDEFAULT   (-713)

Definition at line 409 of file olectl.h.

◆ DISPID_AMBIENT_DISPLAYNAME

#define DISPID_AMBIENT_DISPLAYNAME   (-702)

Definition at line 398 of file olectl.h.

◆ DISPID_AMBIENT_FONT

#define DISPID_AMBIENT_FONT   (-703)

Definition at line 399 of file olectl.h.

◆ DISPID_AMBIENT_FORECOLOR

#define DISPID_AMBIENT_FORECOLOR   (-704)

Definition at line 400 of file olectl.h.

◆ DISPID_AMBIENT_LOCALEID

#define DISPID_AMBIENT_LOCALEID   (-705)

Definition at line 401 of file olectl.h.

◆ DISPID_AMBIENT_MESSAGEREFLECT

#define DISPID_AMBIENT_MESSAGEREFLECT   (-706)

Definition at line 402 of file olectl.h.

◆ DISPID_AMBIENT_PALETTE

#define DISPID_AMBIENT_PALETTE   (-726)

Definition at line 415 of file olectl.h.

◆ DISPID_AMBIENT_RIGHTTOLEFT

#define DISPID_AMBIENT_RIGHTTOLEFT   (-732)

Definition at line 419 of file olectl.h.

◆ DISPID_AMBIENT_SCALEUNITS

#define DISPID_AMBIENT_SCALEUNITS   (-707)

Definition at line 403 of file olectl.h.

◆ DISPID_AMBIENT_SHOWGRABHANDLES

#define DISPID_AMBIENT_SHOWGRABHANDLES   (-711)

Definition at line 407 of file olectl.h.

◆ DISPID_AMBIENT_SHOWHATCHING

#define DISPID_AMBIENT_SHOWHATCHING   (-712)

Definition at line 408 of file olectl.h.

◆ DISPID_AMBIENT_SUPPORTSMNEMONICS

#define DISPID_AMBIENT_SUPPORTSMNEMONICS   (-714)

Definition at line 410 of file olectl.h.

◆ DISPID_AMBIENT_TEXTALIGN

#define DISPID_AMBIENT_TEXTALIGN   (-708)

Definition at line 404 of file olectl.h.

◆ DISPID_AMBIENT_TOPTOBOTTOM

#define DISPID_AMBIENT_TOPTOBOTTOM   (-733)

Definition at line 420 of file olectl.h.

◆ DISPID_AMBIENT_TRANSFERPRIORITY

#define DISPID_AMBIENT_TRANSFERPRIORITY   (-728)

Definition at line 417 of file olectl.h.

◆ DISPID_AMBIENT_UIDEAD

#define DISPID_AMBIENT_UIDEAD   (-710)

Definition at line 406 of file olectl.h.

◆ DISPID_AMBIENT_USERMODE

#define DISPID_AMBIENT_USERMODE   (-709)

Definition at line 405 of file olectl.h.

◆ DISPID_APPEARANCE

#define DISPID_APPEARANCE   (-520)

Definition at line 368 of file olectl.h.

◆ DISPID_AUTOSIZE

#define DISPID_AUTOSIZE   (-500)

Definition at line 349 of file olectl.h.

◆ DISPID_BACKCOLOR

#define DISPID_BACKCOLOR   (-501)

Definition at line 350 of file olectl.h.

◆ DISPID_BACKSTYLE

#define DISPID_BACKSTYLE   (-502)

Definition at line 351 of file olectl.h.

◆ DISPID_BORDERCOLOR

#define DISPID_BORDERCOLOR   (-503)

Definition at line 352 of file olectl.h.

◆ DISPID_BORDERSTYLE

#define DISPID_BORDERSTYLE   (-504)

Definition at line 353 of file olectl.h.

◆ DISPID_BORDERVISIBLE

#define DISPID_BORDERVISIBLE   (-519)

Definition at line 367 of file olectl.h.

◆ DISPID_BORDERWIDTH

#define DISPID_BORDERWIDTH   (-505)

Definition at line 354 of file olectl.h.

◆ DISPID_CAPTION

#define DISPID_CAPTION   (-518)

Definition at line 366 of file olectl.h.

◆ DISPID_CLEAR

#define DISPID_CLEAR   (-554)

Definition at line 379 of file olectl.h.

◆ DISPID_CLICK

#define DISPID_CLICK   (-600)

Definition at line 382 of file olectl.h.

◆ DISPID_CLICK_VALUE

#define DISPID_CLICK_VALUE   (-610)

Definition at line 392 of file olectl.h.

◆ DISPID_DBLCLICK

#define DISPID_DBLCLICK   (-601)

Definition at line 383 of file olectl.h.

◆ DISPID_Delete

#define DISPID_Delete   (-801)

Definition at line 423 of file olectl.h.

◆ DISPID_DOCLICK

#define DISPID_DOCLICK   (-551)

Definition at line 376 of file olectl.h.

◆ DISPID_DRAWMODE

#define DISPID_DRAWMODE   (-507)

Definition at line 355 of file olectl.h.

◆ DISPID_DRAWSTYLE

#define DISPID_DRAWSTYLE   (-508)

Definition at line 356 of file olectl.h.

◆ DISPID_DRAWWIDTH

#define DISPID_DRAWWIDTH   (-509)

Definition at line 357 of file olectl.h.

◆ DISPID_ENABLED

#define DISPID_ENABLED   (-514)

Definition at line 362 of file olectl.h.

◆ DISPID_ERROREVENT

#define DISPID_ERROREVENT   (-608)

Definition at line 390 of file olectl.h.

◆ DISPID_FILLCOLOR

#define DISPID_FILLCOLOR   (-510)

Definition at line 358 of file olectl.h.

◆ DISPID_FILLSTYLE

#define DISPID_FILLSTYLE   (-511)

Definition at line 359 of file olectl.h.

◆ DISPID_FONT

#define DISPID_FONT   (-512)

Definition at line 360 of file olectl.h.

◆ DISPID_FONT_BOLD

#define DISPID_FONT_BOLD   3

Definition at line 429 of file olectl.h.

◆ DISPID_FONT_CHANGED

#define DISPID_FONT_CHANGED   9

Definition at line 435 of file olectl.h.

◆ DISPID_FONT_CHARSET

#define DISPID_FONT_CHARSET   8

Definition at line 434 of file olectl.h.

◆ DISPID_FONT_ITALIC

#define DISPID_FONT_ITALIC   4

Definition at line 430 of file olectl.h.

◆ DISPID_FONT_NAME

#define DISPID_FONT_NAME   0

Definition at line 427 of file olectl.h.

◆ DISPID_FONT_SIZE

#define DISPID_FONT_SIZE   2

Definition at line 428 of file olectl.h.

◆ DISPID_FONT_STRIKE

#define DISPID_FONT_STRIKE   6

Definition at line 432 of file olectl.h.

◆ DISPID_FONT_UNDER

#define DISPID_FONT_UNDER   5

Definition at line 431 of file olectl.h.

◆ DISPID_FONT_WEIGHT

#define DISPID_FONT_WEIGHT   7

Definition at line 433 of file olectl.h.

◆ DISPID_FORECOLOR

#define DISPID_FORECOLOR   (-513)

Definition at line 361 of file olectl.h.

◆ DISPID_HWND

#define DISPID_HWND   (-515)

Definition at line 363 of file olectl.h.

◆ DISPID_KEYDOWN

#define DISPID_KEYDOWN   (-602)

Definition at line 384 of file olectl.h.

◆ DISPID_KEYPRESS

#define DISPID_KEYPRESS   (-603)

Definition at line 385 of file olectl.h.

◆ DISPID_KEYUP

#define DISPID_KEYUP   (-604)

Definition at line 386 of file olectl.h.

◆ DISPID_MOUSEDOWN

#define DISPID_MOUSEDOWN   (-605)

Definition at line 387 of file olectl.h.

◆ DISPID_MOUSEICON

#define DISPID_MOUSEICON   (-522)

Definition at line 370 of file olectl.h.

◆ DISPID_MOUSEMOVE

#define DISPID_MOUSEMOVE   (-606)

Definition at line 388 of file olectl.h.

◆ DISPID_MOUSEPOINTER

#define DISPID_MOUSEPOINTER   (-521)

Definition at line 369 of file olectl.h.

◆ DISPID_MOUSEUP

#define DISPID_MOUSEUP   (-607)

Definition at line 389 of file olectl.h.

◆ DISPID_Name

#define DISPID_Name   (-800)

Definition at line 422 of file olectl.h.

◆ DISPID_Object

#define DISPID_Object   (-802)

Definition at line 424 of file olectl.h.

◆ DISPID_Parent

#define DISPID_Parent   (-803)

Definition at line 425 of file olectl.h.

◆ DISPID_PICT_HANDLE

#define DISPID_PICT_HANDLE   0

Definition at line 438 of file olectl.h.

◆ DISPID_PICT_HEIGHT

#define DISPID_PICT_HEIGHT   5

Definition at line 442 of file olectl.h.

◆ DISPID_PICT_HPAL

#define DISPID_PICT_HPAL   2

Definition at line 439 of file olectl.h.

◆ DISPID_PICT_RENDER

#define DISPID_PICT_RENDER   6

Definition at line 443 of file olectl.h.

◆ DISPID_PICT_TYPE

#define DISPID_PICT_TYPE   3

Definition at line 440 of file olectl.h.

◆ DISPID_PICT_WIDTH

#define DISPID_PICT_WIDTH   4

Definition at line 441 of file olectl.h.

◆ DISPID_PICTURE

#define DISPID_PICTURE   (-523)

Definition at line 371 of file olectl.h.

◆ DISPID_READYSTATE

#define DISPID_READYSTATE   (-525)

Definition at line 373 of file olectl.h.

◆ DISPID_READYSTATECHANGE

#define DISPID_READYSTATECHANGE   (-609)

Definition at line 391 of file olectl.h.

◆ DISPID_REFRESH

#define DISPID_REFRESH   (-550)

Definition at line 375 of file olectl.h.

◆ DISPID_REMOVEITEM

#define DISPID_REMOVEITEM   (-555)

Definition at line 380 of file olectl.h.

◆ DISPID_RIGHTTOLEFT

#define DISPID_RIGHTTOLEFT   (-611)

Definition at line 393 of file olectl.h.

◆ DISPID_TABSTOP

#define DISPID_TABSTOP   (-516)

Definition at line 364 of file olectl.h.

◆ DISPID_TEXT

#define DISPID_TEXT   (-517)

Definition at line 365 of file olectl.h.

◆ DISPID_THIS

#define DISPID_THIS   (-613)

Definition at line 395 of file olectl.h.

◆ DISPID_TOPTOBOTTOM

#define DISPID_TOPTOBOTTOM   (-612)

Definition at line 394 of file olectl.h.

◆ DISPID_VALID

#define DISPID_VALID   (-524)

Definition at line 372 of file olectl.h.

◆ FACILITY_CONTROL

#define FACILITY_CONTROL   0xa

Definition at line 264 of file olectl.h.

◆ FONTSIZE

#define FONTSIZE (   n)    { n##0000, 0 }

Definition at line 129 of file olectl.h.

◆ LP_COLOR

#define LP_COLOR   0x4

Definition at line 184 of file olectl.h.

◆ LP_DEFAULT

#define LP_DEFAULT   0x0

Definition at line 181 of file olectl.h.

◆ LP_MONOCHROME

#define LP_MONOCHROME   0x1

Definition at line 182 of file olectl.h.

◆ LP_VGACOLOR

#define LP_VGACOLOR   0x2

Definition at line 183 of file olectl.h.

◆ OCM__BASE

#define OCM__BASE   (WM_USER+0x1c00)

Definition at line 224 of file olectl.h.

◆ OCM_CHARTOITEM

#define OCM_CHARTOITEM   (OCM__BASE + WM_CHARTOITEM)

Definition at line 239 of file olectl.h.

◆ OCM_COMMAND

#define OCM_COMMAND   (OCM__BASE + WM_COMMAND)

Definition at line 225 of file olectl.h.

◆ OCM_COMPAREITEM

#define OCM_COMPAREITEM   (OCM__BASE + WM_COMPAREITEM)

Definition at line 240 of file olectl.h.

◆ OCM_CTLCOLORBTN

#define OCM_CTLCOLORBTN   (OCM__BASE + WM_CTLCOLORBTN)

Definition at line 227 of file olectl.h.

◆ OCM_CTLCOLORDLG

#define OCM_CTLCOLORDLG   (OCM__BASE + WM_CTLCOLORDLG)

Definition at line 229 of file olectl.h.

◆ OCM_CTLCOLOREDIT

#define OCM_CTLCOLOREDIT   (OCM__BASE + WM_CTLCOLOREDIT)

Definition at line 228 of file olectl.h.

◆ OCM_CTLCOLORLISTBOX

#define OCM_CTLCOLORLISTBOX   (OCM__BASE + WM_CTLCOLORLISTBOX)

Definition at line 230 of file olectl.h.

◆ OCM_CTLCOLORMSGBOX

#define OCM_CTLCOLORMSGBOX   (OCM__BASE + WM_CTLCOLORMSGBOX)

Definition at line 231 of file olectl.h.

◆ OCM_CTLCOLORSCROLLBAR

#define OCM_CTLCOLORSCROLLBAR   (OCM__BASE + WM_CTLCOLORSCROLLBAR)

Definition at line 232 of file olectl.h.

◆ OCM_CTLCOLORSTATIC

#define OCM_CTLCOLORSTATIC   (OCM__BASE + WM_CTLCOLORSTATIC)

Definition at line 233 of file olectl.h.

◆ OCM_DELETEITEM

#define OCM_DELETEITEM   (OCM__BASE + WM_DELETEITEM)

Definition at line 237 of file olectl.h.

◆ OCM_DRAWITEM

#define OCM_DRAWITEM   (OCM__BASE + WM_DRAWITEM)

Definition at line 235 of file olectl.h.

◆ OCM_HSCROLL

#define OCM_HSCROLL   (OCM__BASE + WM_HSCROLL)

Definition at line 241 of file olectl.h.

◆ OCM_MEASUREITEM

#define OCM_MEASUREITEM   (OCM__BASE + WM_MEASUREITEM)

Definition at line 236 of file olectl.h.

◆ OCM_NOTIFY

#define OCM_NOTIFY   (OCM__BASE + WM_NOTIFY)

Definition at line 244 of file olectl.h.

◆ OCM_PARENTNOTIFY

#define OCM_PARENTNOTIFY   (OCM__BASE + WM_PARENTNOTIFY)

Definition at line 243 of file olectl.h.

◆ OCM_VKEYTOITEM

#define OCM_VKEYTOITEM   (OCM__BASE + WM_VKEYTOITEM)

Definition at line 238 of file olectl.h.

◆ OCM_VSCROLL

#define OCM_VSCROLL   (OCM__BASE + WM_VSCROLL)

Definition at line 242 of file olectl.h.

◆ OLEIVERB_PROPERTIES

#define OLEIVERB_PROPERTIES   (-7L)

Definition at line 331 of file olectl.h.

◆ PERPROP_E_FIRST

#define PERPROP_E_FIRST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)

Definition at line 334 of file olectl.h.

◆ PERPROP_E_LAST

#define PERPROP_E_LAST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)

Definition at line 335 of file olectl.h.

◆ PERPROP_E_NOPAGEAVAILABLE

#define PERPROP_E_NOPAGEAVAILABLE   (PERPROP_E_FIRST+0)

Definition at line 339 of file olectl.h.

◆ PERPROP_S_FIRST

#define PERPROP_S_FIRST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)

Definition at line 336 of file olectl.h.

◆ PERPROP_S_LAST

#define PERPROP_S_LAST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)

Definition at line 337 of file olectl.h.

◆ PICTYPE_BITMAP

#define PICTYPE_BITMAP   1

Definition at line 133 of file olectl.h.

◆ PICTYPE_ENHMETAFILE

#define PICTYPE_ENHMETAFILE   4

Definition at line 136 of file olectl.h.

◆ PICTYPE_ICON

#define PICTYPE_ICON   3

Definition at line 135 of file olectl.h.

◆ PICTYPE_METAFILE

#define PICTYPE_METAFILE   2

Definition at line 134 of file olectl.h.

◆ PICTYPE_NONE

#define PICTYPE_NONE   0

Definition at line 132 of file olectl.h.

◆ PICTYPE_UNINITIALIZED

#define PICTYPE_UNINITIALIZED   (-1)

Definition at line 131 of file olectl.h.

◆ SELFREG_E_CLASS

#define SELFREG_E_CLASS   (SELFREG_E_FIRST+1)

Definition at line 261 of file olectl.h.

◆ SELFREG_E_FIRST

#define SELFREG_E_FIRST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x0200)

Definition at line 256 of file olectl.h.

◆ SELFREG_E_LAST

#define SELFREG_E_LAST   MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x020F)

Definition at line 257 of file olectl.h.

◆ SELFREG_E_TYPELIB

#define SELFREG_E_TYPELIB   (SELFREG_E_FIRST+0)

Definition at line 260 of file olectl.h.

◆ SELFREG_S_FIRST

#define SELFREG_S_FIRST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)

Definition at line 258 of file olectl.h.

◆ SELFREG_S_LAST

#define SELFREG_S_LAST   MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)

Definition at line 259 of file olectl.h.

◆ STD_CTL_SCODE

#define STD_CTL_SCODE (   n)    MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)

Definition at line 266 of file olectl.h.

◆ VT_BLOB_PROPSET

#define VT_BLOB_PROPSET   75

Definition at line 327 of file olectl.h.

◆ VT_COLOR

#define VT_COLOR   VT_I4

Definition at line 311 of file olectl.h.

◆ VT_FONT

#define VT_FONT   VT_DISPATCH

Definition at line 322 of file olectl.h.

◆ VT_OPTEXCLUSIVE

#define VT_OPTEXCLUSIVE   VT_BOOL

Definition at line 321 of file olectl.h.

◆ VT_PICTURE

#define VT_PICTURE   VT_DISPATCH

Definition at line 323 of file olectl.h.

◆ VT_STORED_PROPSET

#define VT_STORED_PROPSET   74

Definition at line 326 of file olectl.h.

◆ VT_STREAMED_PROPSET

#define VT_STREAMED_PROPSET   73

Definition at line 325 of file olectl.h.

◆ VT_TRISTATE

#define VT_TRISTATE   VT_I2

Definition at line 320 of file olectl.h.

◆ VT_VERBOSE_ENUM

#define VT_VERBOSE_ENUM   76

Definition at line 328 of file olectl.h.

◆ VT_XPOS_HIMETRIC

#define VT_XPOS_HIMETRIC   VT_I4

Definition at line 316 of file olectl.h.

◆ VT_XPOS_PIXELS

#define VT_XPOS_PIXELS   VT_I4

Definition at line 312 of file olectl.h.

◆ VT_XSIZE_HIMETRIC

#define VT_XSIZE_HIMETRIC   VT_I4

Definition at line 318 of file olectl.h.

◆ VT_XSIZE_PIXELS

#define VT_XSIZE_PIXELS   VT_I4

Definition at line 314 of file olectl.h.

◆ VT_YPOS_HIMETRIC

#define VT_YPOS_HIMETRIC   VT_I4

Definition at line 317 of file olectl.h.

◆ VT_YPOS_PIXELS

#define VT_YPOS_PIXELS   VT_I4

Definition at line 313 of file olectl.h.

◆ VT_YSIZE_HIMETRIC

#define VT_YSIZE_HIMETRIC   VT_I4

Definition at line 319 of file olectl.h.

◆ VT_YSIZE_PIXELS

#define VT_YSIZE_PIXELS   VT_I4

Definition at line 315 of file olectl.h.

Typedef Documentation

◆ FONTDESC

◆ LPFONTDESC

◆ LPOCPFIPARAMS

◆ LPPICTDESC

◆ OCPFIPARAMS

◆ OLE_CANCELBOOL

Definition at line 177 of file olectl.h.

◆ OLE_ENABLEDEFAULTBOOL

Definition at line 178 of file olectl.h.

◆ OLE_OPTEXCLUSIVE

Definition at line 176 of file olectl.h.

◆ OLE_XPOS_CONTAINER

Definition at line 164 of file olectl.h.

◆ OLE_XPOS_PIXELS

Definition at line 160 of file olectl.h.

◆ OLE_XSIZE_CONTAINER

Definition at line 166 of file olectl.h.

◆ OLE_XSIZE_PIXELS

Definition at line 162 of file olectl.h.

◆ OLE_YPOS_CONTAINER

Definition at line 165 of file olectl.h.

◆ OLE_YPOS_PIXELS

Definition at line 161 of file olectl.h.

◆ OLE_YSIZE_CONTAINER

Definition at line 167 of file olectl.h.

◆ OLE_YSIZE_PIXELS

Definition at line 163 of file olectl.h.

◆ PICTDESC

Enumeration Type Documentation

◆ OLE_TRISTATE

Enumerator
triUnchecked 
triChecked 
triGray 

Definition at line 169 of file olectl.h.

170 {
171  triUnchecked = 0,
172  triChecked = 1,
173  triGray = 2
174 } OLE_TRISTATE;
OLE_TRISTATE
Definition: olectl.h:169

Function Documentation

◆ DEFINE_GUID() [1/28]

DEFINE_GUID ( CLSID_ConvertVBX  ,
0xfb8f0822  ,
0x0164  ,
0x101b  ,
0x84  ,
0xed  ,
0x08  ,
0x00  ,
0x2b  ,
0x2e  ,
0xc7  ,
0x13   
)

◆ DEFINE_GUID() [2/28]

DEFINE_GUID ( CLSID_PersistPropset  ,
0xfb8f0821  ,
0x0164  ,
0x101b  ,
0x84  ,
0xed  ,
0x08  ,
0x00  ,
0x2b  ,
0x2e  ,
0xc7  ,
0x13   
)

◆ DEFINE_GUID() [3/28]

DEFINE_GUID ( CLSID_StdFont  ,
0x0be35203  ,
0x8f91  ,
0x11ce  ,
0x9d  ,
0xe3  ,
0x00  ,
0xaa  ,
0x00  ,
0x4b  ,
0xb8  ,
0x51   
)

◆ DEFINE_GUID() [4/28]

DEFINE_GUID ( CLSID_StdPicture  ,
0x0be35204  ,
0x8f91  ,
0x11ce  ,
0x9d  ,
0xe3  ,
0x00  ,
0xaa  ,
0x00  ,
0x4b  ,
0xb8  ,
0x51   
)

◆ DEFINE_GUID() [5/28]

DEFINE_GUID ( IID_IPropertyFrame  ,
0xb196b28a  ,
0xbab4  ,
0x101a  ,
0xb6  ,
0x9c  ,
0x00  ,
0xaa  ,
0x00  ,
0x34  ,
0x1d  ,
0x07   
)

◆ DEFINE_GUID() [6/28]

DEFINE_GUID ( CLSID_CFontPropPage  ,
0x0be35200  ,
0x8f91  ,
0x11ce  ,
0x9d  ,
0xe3  ,
0x00  ,
0xaa  ,
0x00  ,
0x4b  ,
0xb8  ,
0x51   
)

◆ DEFINE_GUID() [7/28]

DEFINE_GUID ( CLSID_CColorPropPage  ,
0x0be35201  ,
0x8f91  ,
0x11ce  ,
0x9d  ,
0xe3  ,
0x00  ,
0xaa  ,
0x00  ,
0x4b  ,
0xb8  ,
0x51   
)

◆ DEFINE_GUID() [8/28]

DEFINE_GUID ( CLSID_CPicturePropPage  ,
0x0be35202  ,
0x8f91  ,
0x11ce  ,
0x9d  ,
0xe3  ,
0x00  ,
0xaa  ,
0x00  ,
0x4b  ,
0xb8  ,
0x51   
)

◆ DEFINE_GUID() [9/28]

DEFINE_GUID ( GUID_HIMETRIC  ,
0x66504300  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [10/28]

DEFINE_GUID ( GUID_COLOR  ,
0x66504301  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [11/28]

DEFINE_GUID ( GUID_XPOSPIXEL  ,
0x66504302  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [12/28]

DEFINE_GUID ( GUID_YPOSPIXEL  ,
0x66504303  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [13/28]

DEFINE_GUID ( GUID_XSIZEPIXEL  ,
0x66504304  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [14/28]

DEFINE_GUID ( GUID_YSIZEPIXEL  ,
0x66504305  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [15/28]

DEFINE_GUID ( GUID_XPOS  ,
0x66504306  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [16/28]

DEFINE_GUID ( GUID_YPOS  ,
0x66504307  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [17/28]

DEFINE_GUID ( GUID_XSIZE  ,
0x66504308  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [18/28]

DEFINE_GUID ( GUID_YSIZE  ,
0x66504309  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [19/28]

DEFINE_GUID ( GUID_TRISTATE  ,
0x6650430a  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [20/28]

DEFINE_GUID ( GUID_OPTIONVALUEEXCLUSIVE  ,
0x6650430b  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [21/28]

DEFINE_GUID ( GUID_CHECKVALUEEXCLUSIVE  ,
0x6650430c  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [22/28]

DEFINE_GUID ( GUID_FONTNAME  ,
0x6650430d  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [23/28]

DEFINE_GUID ( GUID_FONTSIZE  ,
0x6650430e  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [24/28]

DEFINE_GUID ( GUID_FONTBOLD  ,
0x6650430f  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [25/28]

DEFINE_GUID ( GUID_FONTITALIC  ,
0x66504310  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [26/28]

DEFINE_GUID ( GUID_FONTUNDERSCORE  ,
0x66504311  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [27/28]

DEFINE_GUID ( GUID_FONTSTRIKETHROUGH  ,
0x66504312  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ DEFINE_GUID() [28/28]

DEFINE_GUID ( GUID_HANDLE  ,
0x66504313  ,
0xbe0f  ,
0x101a  ,
0x8b  ,
0xbb  ,
0x00  ,
0xaa  ,
0x00  ,
0x30  ,
0x0c  ,
0xab   
)

◆ OleCreateFontIndirect()

HRESULT WINAPI OleCreateFontIndirect ( LPFONTDESC  lpFontDesc,
REFIID  riid,
LPVOID lplpvObj 
)

Definition at line 331 of file olefont.c.

335 {
336  OLEFontImpl* newFont;
337  HRESULT hr;
338  FONTDESC fd;
339 
340  TRACE("(%p, %s, %p)\n", lpFontDesc, debugstr_guid(riid), ppvObj);
341 
342  if (!ppvObj) return E_POINTER;
343 
344  *ppvObj = 0;
345 
346  if (!lpFontDesc) {
347  static WCHAR fname[] = { 'S','y','s','t','e','m',0 };
348 
349  fd.cbSizeofstruct = sizeof(fd);
350  fd.lpstrName = fname;
351  fd.cySize.s.Lo = 80000;
352  fd.cySize.s.Hi = 0;
353  fd.sWeight = 0;
354  fd.sCharset = 0;
355  fd.fItalic = FALSE;
356  fd.fUnderline = FALSE;
357  fd.fStrikethrough = FALSE;
358  lpFontDesc = &fd;
359  }
360 
361  newFont = OLEFontImpl_Construct(lpFontDesc);
362  if (!newFont) return E_OUTOFMEMORY;
363 
364  hr = IFont_QueryInterface(&newFont->IFont_iface, riid, ppvObj);
365  IFont_Release(&newFont->IFont_iface);
366 
367  return hr;
368 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
IFont IFont_iface
Definition: olefont.c:253
static int fd
Definition: io.c:51
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
static OLEFontImpl * OLEFontImpl_Construct(const FONTDESC *fontDesc)
Definition: olefont.c:2148
#define E_POINTER
Definition: winerror.h:2365

Referenced by SFCF_CreateInstance().

◆ OleCreatePictureIndirect()

HRESULT WINAPI OleCreatePictureIndirect ( LPPICTDESC  lpPictDesc,
REFIID  riid,
BOOL  fOwn,
LPVOID lplpvObj 
)

◆ OleCreatePropertyFrame()

HRESULT WINAPI OleCreatePropertyFrame ( HWND  hwndOwner,
UINT  x,
UINT  y,
LPCOLESTR  lpszCaption,
ULONG  cObjects,
LPUNKNOWN ppUnk,
ULONG  cPages,
LPCLSID  pPageClsID,
LCID  lcid,
DWORD  dwReserved,
LPVOID  pvReserved 
)

Definition at line 324 of file olepropframe.c.

328 {
329  OCPFIPARAMS ocpf;
330 
331  ocpf.cbStructSize = sizeof(OCPFIPARAMS);
332  ocpf.hWndOwner = hwndOwner;
333  ocpf.x = x;
334  ocpf.y = y;
335  ocpf.lpszCaption = lpszCaption;
336  ocpf.cObjects = cObjects;
337  ocpf.lplpUnk = ppUnk;
338  ocpf.cPages = cPages;
339  ocpf.lpPages = pPageClsID;
340  ocpf.lcid = lcid;
341  ocpf.dispidInitialProperty = 0;
342 
343  return OleCreatePropertyFrameIndirect(&ocpf);
344 }
CLSID * lpPages
Definition: olectl.h:110
struct tagOCPFIPARAMS OCPFIPARAMS
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
ULONG cObjects
Definition: olectl.h:107
HRESULT WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams)
Definition: olepropframe.c:155
DISPID dispidInitialProperty
Definition: olectl.h:112
LPCOLESTR lpszCaption
Definition: olectl.h:106
LPUNKNOWN * lplpUnk
Definition: olectl.h:108
HWND hWndOwner
Definition: olectl.h:103
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
ULONG cbStructSize
Definition: olectl.h:102
ULONG cPages
Definition: olectl.h:109

◆ OleCreatePropertyFrameIndirect()

HRESULT WINAPI OleCreatePropertyFrameIndirect ( LPOCPFIPARAMS  lpParams)

Definition at line 155 of file olepropframe.c.

156 {
157  static const WCHAR comctlW[] = { 'c','o','m','c','t','l','3','2','.','d','l','l',0 };
158 
159  PROPSHEETHEADERW property_sheet;
160  PROPSHEETPAGEW property_sheet_page;
161  struct {
162  DLGTEMPLATE template;
163  WORD menu;
164  WORD class;
165  WORD title;
166  } *dialogs;
167  IPropertyPage **property_page;
168  PropertyPageSite *property_page_site;
169  HRESULT res;
170  ULONG i;
171  HMODULE hcomctl;
172  HRSRC property_sheet_dialog_find = NULL;
173  HGLOBAL property_sheet_dialog_load = NULL;
174  WCHAR *property_sheet_dialog_data = NULL;
175  HDC hdc;
176  LOGFONTW font_desc;
177  HFONT hfont;
178  LONG font_width = 4, font_height = 8;
179 
180  if(!lpParams)
181  return E_POINTER;
182 
183  TRACE("(%d %p %d %d %s %d %p %d %p %d %d)\n", lpParams->cbStructSize,
184  lpParams->hWndOwner, lpParams->x, lpParams->y,
185  debugstr_w(lpParams->lpszCaption), lpParams->cObjects,
186  lpParams->lplpUnk, lpParams->cPages, lpParams->lpPages,
187  lpParams->lcid, lpParams->dispidInitialProperty);
188 
189  if(!lpParams->lpPages)
190  return E_POINTER;
191 
192  if(lpParams->cbStructSize != sizeof(OCPFIPARAMS)) {
193  WARN("incorrect structure size\n");
194  return E_INVALIDARG;
195  }
196 
197  if(lpParams->dispidInitialProperty)
198  FIXME("dispidInitialProperty not yet implemented\n");
199 
200  hdc = GetDC(NULL);
201  hcomctl = LoadLibraryW(comctlW);
202  if(hcomctl)
203  property_sheet_dialog_find = FindResourceW(hcomctl,
204  MAKEINTRESOURCEW(1006 /*IDD_PROPSHEET*/), (LPWSTR)RT_DIALOG);
205  if(property_sheet_dialog_find)
206  property_sheet_dialog_load = LoadResource(hcomctl, property_sheet_dialog_find);
207  if(property_sheet_dialog_load)
208  property_sheet_dialog_data = LockResource(property_sheet_dialog_load);
209 
210  if(property_sheet_dialog_data) {
211  if(property_sheet_dialog_data[1] == 0xffff) {
212  ERR("Expected DLGTEMPLATE structure\n");
213  FreeLibrary(hcomctl);
214  return E_OUTOFMEMORY;
215  }
216 
217  property_sheet_dialog_data += sizeof(DLGTEMPLATE)/sizeof(WCHAR);
218  /* Skip menu, class and title */
219  property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1;
220  property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1;
221  property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1;
222 
223  memset(&font_desc, 0, sizeof(LOGFONTW));
224  /* Calculate logical height */
225  font_desc.lfHeight = -MulDiv(property_sheet_dialog_data[0],
227  font_desc.lfCharSet = DEFAULT_CHARSET;
228  memcpy(font_desc.lfFaceName, property_sheet_dialog_data+1,
229  sizeof(WCHAR)*(lstrlenW(property_sheet_dialog_data+1)+1));
230  hfont = CreateFontIndirectW(&font_desc);
231 
232  if(hfont) {
234  font_width = GdiGetCharDimensions(hdc, NULL, &font_height);
236  }
237  }
238  if(hcomctl)
239  FreeLibrary(hcomctl);
240  ReleaseDC(NULL, hdc);
241 
242  memset(&property_sheet, 0, sizeof(property_sheet));
243  property_sheet.dwSize = sizeof(property_sheet);
244  if(lpParams->lpszCaption) {
245  property_sheet.dwFlags = PSH_PROPTITLE;
246  property_sheet.pszCaption = lpParams->lpszCaption;
247  }
248 
249  property_sheet.u3.phpage = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
250  lpParams->cPages*sizeof(HPROPSHEETPAGE));
251  property_page = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
252  lpParams->cPages*sizeof(IPropertyPage*));
254  lpParams->cPages*sizeof(*dialogs));
255  if(!property_sheet.u3.phpage || !property_page || !dialogs) {
256  HeapFree(GetProcessHeap(), 0, property_sheet.u3.phpage);
257  HeapFree(GetProcessHeap(), 0, property_page);
258  HeapFree(GetProcessHeap(), 0, dialogs);
259  return E_OUTOFMEMORY;
260  }
261 
262  memset(&property_sheet_page, 0, sizeof(PROPSHEETPAGEW));
263  property_sheet_page.dwSize = sizeof(PROPSHEETPAGEW);
264  property_sheet_page.dwFlags = PSP_DLGINDIRECT|PSP_USETITLE;
265  property_sheet_page.pfnDlgProc = property_sheet_proc;
266 
267  for(i=0; i<lpParams->cPages; i++) {
268  PROPPAGEINFO page_info;
269 
270  res = CoCreateInstance(&lpParams->lpPages[i], NULL, CLSCTX_INPROC_SERVER,
271  &IID_IPropertyPage, (void**)&property_page[i]);
272  if(FAILED(res))
273  continue;
274 
275  property_page_site = HeapAlloc(GetProcessHeap(), 0, sizeof(PropertyPageSite));
276  if(!property_page_site)
277  continue;
278  property_page_site->IPropertyPageSite_iface.lpVtbl = &PropertyPageSiteVtbl;
279  property_page_site->ref = 1;
280  property_page_site->lcid = lpParams->lcid;
281 
282  res = IPropertyPage_SetPageSite(property_page[i],
283  &property_page_site->IPropertyPageSite_iface);
284  IPropertyPageSite_Release(&property_page_site->IPropertyPageSite_iface);
285  if(FAILED(res))
286  continue;
287 
288  res = IPropertyPage_SetObjects(property_page[i],
289  lpParams->cObjects, lpParams->lplpUnk);
290  if(FAILED(res))
291  WARN("SetObjects() failed, hr %#x.\n", res);
292 
293  res = IPropertyPage_GetPageInfo(property_page[i], &page_info);
294  if(FAILED(res))
295  continue;
296 
297  dialogs[i].template.cx = MulDiv(page_info.size.cx, 4, font_width);
298  dialogs[i].template.cy = MulDiv(page_info.size.cy, 8, font_height);
299 
300  property_sheet_page.u.pResource = &dialogs[i].template;
301  property_sheet_page.lParam = (LPARAM)property_page[i];
302  property_sheet_page.pszTitle = page_info.pszTitle;
303 
304  property_sheet.u3.phpage[property_sheet.nPages++] =
305  CreatePropertySheetPageW(&property_sheet_page);
306  }
307 
308  PropertySheetW(&property_sheet);
309 
310  for(i=0; i<lpParams->cPages; i++) {
311  if(property_page[i])
312  IPropertyPage_Release(property_page[i]);
313  }
314 
315  HeapFree(GetProcessHeap(), 0, dialogs);
316  HeapFree(GetProcessHeap(), 0, property_page);
317  HeapFree(GetProcessHeap(), 0, property_sheet.u3.phpage);
318  return S_OK;
319 }
CLSID * lpPages
Definition: olectl.h:110
HDC WINAPI GetDC(_In_opt_ HWND)
#define WARN(fmt,...)
Definition: debug.h:111
LONG lfHeight
Definition: dimm.idl:59
BYTE lfCharSet
Definition: dimm.idl:67
LPCDLGTEMPLATE pResource
Definition: prsht.h:210
static HDC
Definition: imagelist.c:92
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
#define DEFAULT_CHARSET
Definition: wingdi.h:383
#define lstrlenW
Definition: compat.h:415
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
DWORD dwSize
Definition: prsht.h:205
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
LPCWSTR pszCaption
Definition: prsht.h:283
DLGPROC pfnDlgProc
Definition: prsht.h:217
long LONG
Definition: pedump.c:60
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
#define debugstr_w
Definition: kernel32.h:32
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
#define FIXME(fmt,...)
Definition: debug.h:110
ULONG cObjects
Definition: olectl.h:107
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
#define E_INVALIDARG
Definition: ddrawi.h:101
struct _PROPSHEETPAGEW PROPSHEETPAGEW
#define LoadLibraryW(x)
Definition: compat.h:412
smooth NULL
Definition: ftsmooth.c:416
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
LONG_PTR LPARAM
Definition: windef.h:208
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
Definition: propsheet.c:2905
LPCWSTR pszTitle
Definition: prsht.h:216
static HFONT hfont
#define RT_DIALOG
Definition: pedump.c:367
HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage)
Definition: propsheet.c:3075
const GUID IID_IPropertyPage
static INT_PTR CALLBACK property_sheet_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: olepropframe.c:48
#define TRACE(s)
Definition: solgame.cpp:4
#define FreeLibrary(x)
Definition: compat.h:413
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define PSH_PROPTITLE
Definition: prsht.h:40
LONG HRESULT
Definition: typedefs.h:77
DISPID dispidInitialProperty
Definition: olectl.h:112
unsigned short WORD
Definition: ntddk_ex.h:93
DWORD dwSize
Definition: prsht.h:275
DWORD dwFlags
Definition: prsht.h:276
HDC hdc
Definition: main.c:9
LPARAM lParam
Definition: prsht.h:218
static IPropertyPageSiteVtbl PropertyPageSiteVtbl
Definition: olepropframe.c:142
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static int font_height(HFONT hFont)
Definition: combo.c:612
LPCOLESTR lpszCaption
Definition: olectl.h:106
#define PSP_USETITLE
Definition: prsht.h:26
HPROPSHEETPAGE * phpage
Definition: prsht.h:291
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
#define ERR(fmt,...)
Definition: debug.h:109
LPUNKNOWN * lplpUnk
Definition: olectl.h:108
#define S_OK
Definition: intsafe.h:59
LONG WINAPI GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *)
Definition: font.c:2145
HWND hWndOwner
Definition: olectl.h:103
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
IPropertyPageSite IPropertyPageSite_iface
Definition: olepropframe.c:38
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
GLuint res
Definition: glext.h:9613
WCHAR lfFaceName[LF_FACESIZE]
Definition: dimm.idl:72
unsigned int ULONG
Definition: retypes.h:1
#define LOGPIXELSY
Definition: wingdi.h:718
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
WCHAR * LPWSTR
Definition: xmlstorage.h:184
ULONG cbStructSize
Definition: olectl.h:102
#define E_POINTER
Definition: winerror.h:2365
ULONG cPages
Definition: olectl.h:109
#define memset(x, y, z)
Definition: compat.h:39
static char title[]
Definition: ps.c:92
DWORD dwFlags
Definition: prsht.h:206
#define HeapFree(x, y, z)
Definition: compat.h:402
#define MulDiv(x, y, z)
Definition: gdifloat.h:86
#define PSP_DLGINDIRECT
Definition: prsht.h:23

Referenced by OleCreatePropertyFrame().

◆ OleIconToCursor()

HCURSOR WINAPI OleIconToCursor ( HINSTANCE  hinstExe,
HICON  hicon 
)

Definition at line 1138 of file oleaut.c.

1139 {
1140  FIXME("(%p,%p), partially implemented.\n",hinstExe,hIcon);
1141  /* FIXME: make an extended conversation from HICON to HCURSOR */
1142  return CopyCursor(hIcon);
1143 }
#define CopyCursor(c)
Definition: winuser.h:4210
#define FIXME(fmt,...)
Definition: debug.h:110
HICON hIcon
Definition: msconfig.c:44

◆ OleLoadPicture()

HRESULT WINAPI OleLoadPicture ( LPSTREAM  lpstream,
LONG  lSize,
BOOL  fRunmode,
REFIID  riid,
LPVOID lplpvObj 
)

Definition at line 2344 of file olepicture.c.

2346 {
2347  LPPERSISTSTREAM ps;
2348  IPicture *newpic;
2349  HRESULT hr;
2350 
2351  TRACE("(%p,%d,%d,%s,%p), partially implemented.\n",
2352  lpstream, lSize, fRunmode, debugstr_guid(riid), ppvObj);
2353 
2354  hr = OleCreatePictureIndirect(NULL,riid,!fRunmode,(LPVOID*)&newpic);
2355  if (hr != S_OK)
2356  return hr;
2357  hr = IPicture_QueryInterface(newpic,&IID_IPersistStream, (LPVOID*)&ps);
2358  if (hr != S_OK) {
2359  ERR("Could not get IPersistStream iface from Ole Picture?\n");
2360  IPicture_Release(newpic);
2361  *ppvObj = NULL;
2362  return hr;
2363  }
2364  hr = IPersistStream_Load(ps,lpstream);
2365  IPersistStream_Release(ps);
2366  if (FAILED(hr))
2367  {
2368  ERR("IPersistStream_Load failed\n");
2369  IPicture_Release(newpic);
2370  *ppvObj = NULL;
2371  return hr;
2372  }
2373  hr = IPicture_QueryInterface(newpic,riid,ppvObj);
2374  if (hr != S_OK)
2375  ERR("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
2376  IPicture_Release(newpic);
2377  return hr;
2378 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IPersistStream
Definition: proxy.cpp:13
HRESULT WINAPI OleCreatePictureIndirect(LPPICTDESC lpPictDesc, REFIID riid, BOOL Own, void **ppvObj)
Definition: olepicture.c:2313
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
interface IPersistStream * LPPERSISTSTREAM
Definition: objfwd.h:16

Referenced by DoLoadPicture(), msi_load_picture(), OleLoadPictureFile(), and OleLoadPicturePath().

◆ OleLoadPictureEx()

HRESULT WINAPI OleLoadPictureEx ( LPSTREAM  lpstream,
LONG  lSize,
BOOL  fRunMode,
REFIID  riid,
DWORD  xSizeDesired,
DWORD  ySizeDesired,
DWORD  dwFlags,
LPVOID lplpvObj 
)

Definition at line 2383 of file olepicture.c.

2385 {
2386  LPPERSISTSTREAM ps;
2387  IPicture *newpic;
2388  HRESULT hr;
2389 
2390  FIXME("(%p,%d,%d,%s,x=%d,y=%d,f=%x,%p), partially implemented.\n",
2391  lpstream, lSize, fRunmode, debugstr_guid(riid), xsiz, ysiz, flags, ppvObj);
2392 
2393  hr = OleCreatePictureIndirect(NULL,riid,!fRunmode,(LPVOID*)&newpic);
2394  if (hr != S_OK)
2395  return hr;
2396  hr = IPicture_QueryInterface(newpic,&IID_IPersistStream, (LPVOID*)&ps);
2397  if (hr != S_OK) {
2398  ERR("Could not get IPersistStream iface from Ole Picture?\n");
2399  IPicture_Release(newpic);
2400  *ppvObj = NULL;
2401  return hr;
2402  }
2403  hr = IPersistStream_Load(ps,lpstream);
2404  IPersistStream_Release(ps);
2405  if (FAILED(hr))
2406  {
2407  ERR("IPersistStream_Load failed\n");
2408  IPicture_Release(newpic);
2409  *ppvObj = NULL;
2410  return hr;
2411  }
2412  hr = IPicture_QueryInterface(newpic,riid,ppvObj);
2413  if (hr != S_OK)
2414  ERR("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
2415  IPicture_Release(newpic);
2416  return hr;
2417 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
LONG HRESULT
Definition: typedefs.h:77
GLbitfield flags
Definition: glext.h:7161
const GUID IID_IPersistStream
Definition: proxy.cpp:13
HRESULT WINAPI OleCreatePictureIndirect(LPPICTDESC lpPictDesc, REFIID riid, BOOL Own, void **ppvObj)
Definition: olepicture.c:2313
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
interface IPersistStream * LPPERSISTSTREAM
Definition: objfwd.h:16

◆ OleLoadPictureFile()

HRESULT WINAPI OleLoadPictureFile ( VARIANT  varFilename,
IDispatch **  ppdispPicture 
)

Definition at line 2461 of file olepicture.c.

2462 {
2463  IStream *stream;
2464  HRESULT hr;
2465 
2466  TRACE("(%s,%p)\n", wine_dbgstr_variant(&filename), picture);
2467 
2468  if (V_VT(&filename) != VT_BSTR)
2469  return CTL_E_FILENOTFOUND;
2470 
2472  if (hr != S_OK)
2473  {
2475  return CTL_E_FILENOTFOUND;
2476 
2478  }
2479 
2480  hr = OleLoadPicture(stream, 0, FALSE, &IID_IDispatch, (void **)picture);
2481  IStream_Release(stream);
2482  return hr;
2483 }
#define CTL_E_FILENOTFOUND
Definition: olectl.h:274
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
Definition: id3.c:18
HRESULT hr
Definition: shlfolder.c:183
const char * filename
Definition: ioapi.h:135
HRESULT WINAPI OleLoadPicture(LPSTREAM lpstream, LONG lSize, BOOL fRunmode, REFIID riid, LPVOID *ppvObj)
Definition: olepicture.c:2344
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IDispatch
Definition: parse.h:22
GLuint GLuint stream
Definition: glext.h:7522
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define S_OK
Definition: intsafe.h:59
#define CTL_E_PATHFILEACCESSERROR
Definition: olectl.h:287
static HRESULT create_stream(const WCHAR *filename, IStream **stream)
Definition: olepicture.c:2419

Referenced by test_OleLoadPicturePath().

◆ OleLoadPictureFileEx()

HRESULT WINAPI OleLoadPictureFileEx ( VARIANT  varFilename,
DWORD  xSizeDesired,
DWORD  ySizeDesired,
DWORD  dwFlags,
IDispatch **  ppdispPicture 
)

◆ OleLoadPicturePath()

HRESULT WINAPI OleLoadPicturePath ( LPOLESTR  szURLorPath,
LPUNKNOWN  punkCaller,
DWORD  dwReserved,
OLE_COLOR  clrReserved,
REFIID  riid,
LPVOID ppvRet 
)

Definition at line 2497 of file olepicture.c.

2500 {
2501  static const WCHAR file[] = { 'f','i','l','e',':',0 };
2502  IStream *stream;
2503  HRESULT hRes;
2504  WCHAR *file_candidate;
2505  WCHAR path_buf[MAX_PATH];
2506 
2507  TRACE("(%s,%p,%d,%08x,%s,%p): stub\n",
2508  debugstr_w(szURLorPath), punkCaller, dwReserved, clrReserved,
2509  debugstr_guid(riid), ppvRet);
2510 
2511  if (!szURLorPath || !ppvRet)
2512  return E_INVALIDARG;
2513 
2514  *ppvRet = NULL;
2515 
2516  /* Convert file URLs to DOS paths. */
2517  if (wcsncmp(szURLorPath, file, 5) == 0) {
2518  DWORD size;
2519  hRes = CoInternetParseUrl(szURLorPath, PARSE_PATH_FROM_URL, 0, path_buf,
2520  ARRAY_SIZE(path_buf), &size, 0);
2521  if (FAILED(hRes))
2522  return hRes;
2523 
2524  file_candidate = path_buf;
2525  }
2526  else
2527  file_candidate = szURLorPath;
2528 
2529  /* Handle candidate DOS paths separately. */
2530  if (file_candidate[1] == ':') {
2531  hRes = create_stream(file_candidate, &stream);
2532  if (FAILED(hRes))
2533  return INET_E_RESOURCE_NOT_FOUND;
2534  } else {
2535  IMoniker *pmnk;
2536  IBindCtx *pbc;
2537 
2538  hRes = CreateBindCtx(0, &pbc);
2539  if (SUCCEEDED(hRes))
2540  {
2541  hRes = CreateURLMoniker(NULL, szURLorPath, &pmnk);
2542  if (SUCCEEDED(hRes))
2543  {
2544  hRes = IMoniker_BindToStorage(pmnk, pbc, NULL, &IID_IStream, (LPVOID*)&stream);
2545  IMoniker_Release(pmnk);
2546  }
2547  IBindCtx_Release(pbc);
2548  }
2549  if (FAILED(hRes))
2550  return hRes;
2551  }
2552 
2553  hRes = OleLoadPicture(stream, 0, FALSE, riid, ppvRet);
2554 
2555  IStream_Release(stream);
2556 
2557  return hRes;
2558 }
REFIID riid
Definition: precomp.h:44
HRESULT WINAPI CoInternetParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD dwFlags, LPWSTR pszResult, DWORD cchResult, DWORD *pcchResult, DWORD dwReserved)
Definition: internet.c:392
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
#define debugstr_w
Definition: kernel32.h:32
#define E_INVALIDARG
Definition: ddrawi.h:101
HRESULT WINAPI OleLoadPicture(LPSTREAM lpstream, LONG lSize, BOOL fRunmode, REFIID riid, LPVOID *ppvObj)
Definition: olepicture.c:2344
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
Definition: bindctx.c:556
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
Definition: parse.h:22
GLuint GLuint stream
Definition: glext.h:7522
#define ARRAY_SIZE(a)
Definition: main.h:24
HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk)
Definition: umon.c:732
#define SUCCEEDED(hr)
Definition: intsafe.h:57
static HRESULT create_stream(const WCHAR *filename, IStream **stream)
Definition: olepicture.c:2419
Definition: fci.c:126

Referenced by test_OleLoadPicturePath().

◆ OleSavePictureFile()

HRESULT WINAPI OleSavePictureFile ( IDispatch pdispPicture,
BSTR  bstrFilename 
)

Definition at line 2488 of file olepicture.c.

2489 {
2490  FIXME("(%p %s): stub\n", picture, debugstr_w(filename));
2491  return CTL_E_FILENOTFOUND;
2492 }
#define CTL_E_FILENOTFOUND
Definition: olectl.h:274
Definition: id3.c:18
const char * filename
Definition: ioapi.h:135
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110

◆ OleTranslateColor()

HRESULT WINAPI OleTranslateColor ( OLE_COLOR  clr,
HPALETTE  hpal,
COLORREF lpcolorref 
)

Definition at line 689 of file oleaut.c.

693 {
694  COLORREF colorref;
695  BYTE b = HIBYTE(HIWORD(clr));
696 
697  TRACE("(%08x, %p, %p)\n", clr, hpal, pColorRef);
698 
699  /*
700  * In case pColorRef is NULL, provide our own to simplify the code.
701  */
702  if (pColorRef == NULL)
703  pColorRef = &colorref;
704 
705  switch (b)
706  {
707  case 0x00:
708  {
709  if (hpal != 0)
710  *pColorRef = PALETTERGB(GetRValue(clr),
711  GetGValue(clr),
712  GetBValue(clr));
713  else
714  *pColorRef = clr;
715 
716  break;
717  }
718 
719  case 0x01:
720  {
721  if (hpal != 0)
722  {
723  PALETTEENTRY pe;
724  /*
725  * Validate the palette index.
726  */
727  if (GetPaletteEntries(hpal, LOWORD(clr), 1, &pe) == 0)
728  return E_INVALIDARG;
729  }
730 
731  *pColorRef = clr;
732 
733  break;
734  }
735 
736  case 0x02:
737  *pColorRef = clr;
738  break;
739 
740  case 0x80:
741  {
742  int index = LOBYTE(LOWORD(clr));
743 
744  /*
745  * Validate GetSysColor index.
746  */
747  if ((index < COLOR_SCROLLBAR) || (index > COLOR_MENUBAR))
748  return E_INVALIDARG;
749 
750  *pColorRef = GetSysColor(index);
751 
752  break;
753  }
754 
755  default:
756  return E_INVALIDARG;
757  }
758 
759  return S_OK;
760 }
UINT WINAPI GetPaletteEntries(HPALETTE hpal, UINT iStartIndex, UINT cEntries, LPPALETTEENTRY ppe)
Definition: palette.c:64
#define LOBYTE(W)
Definition: jmemdos.c:487
#define GetRValue(rgb)
Definition: wingdi.h:2934
#define HIBYTE(W)
Definition: jmemdos.c:486
DWORD WINAPI GetSysColor(_In_ int)
#define GetGValue(rgb)
Definition: wingdi.h:2935
#define COLOR_SCROLLBAR
Definition: winuser.h:902
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
GLuint index
Definition: glext.h:6031
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define TRACE(s)
Definition: solgame.cpp:4
DWORD COLORREF
Definition: windef.h:300
unsigned char BYTE
Definition: mem.h:68
#define S_OK
Definition: intsafe.h:59
#define PALETTERGB(r, g, b)
Definition: wingdi.h:2941
#define HIWORD(l)
Definition: typedefs.h:246
#define GetBValue(rgb)
Definition: wingdi.h:2936
#define LOWORD(l)
Definition: pedump.c:82