ReactOS 0.4.17-dev-573-g8315b8c
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
OLE_TRISTATE
Definition: olectl.h:170
@ triChecked
Definition: olectl.h:172
@ triGray
Definition: olectl.h:173
@ triUnchecked
Definition: olectl.h:171

Function Documentation

◆ DEFINE_GUID() [1/28]

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

◆ DEFINE_GUID() [2/28]

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

◆ DEFINE_GUID() [3/28]

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

◆ DEFINE_GUID() [4/28]

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

◆ DEFINE_GUID() [5/28]

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

◆ DEFINE_GUID() [6/28]

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

◆ DEFINE_GUID() [7/28]

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

◆ DEFINE_GUID() [8/28]

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

◆ DEFINE_GUID() [9/28]

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

◆ DEFINE_GUID() [10/28]

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

◆ DEFINE_GUID() [11/28]

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

◆ DEFINE_GUID() [12/28]

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

◆ DEFINE_GUID() [13/28]

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

◆ DEFINE_GUID() [14/28]

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

◆ DEFINE_GUID() [15/28]

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

◆ DEFINE_GUID() [16/28]

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

◆ DEFINE_GUID() [17/28]

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

◆ DEFINE_GUID() [18/28]

DEFINE_GUID ( GUID_OPTIONVALUEEXCLUSIVE  ,
0x6650430b  ,
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_XPOS  ,
0x66504306  ,
0xBE0F  ,
0x101A  ,
0x8B  ,
0xBB  ,
0x00  ,
0xAA  ,
0x00  ,
0x30  ,
0x0C  ,
0xAB   
)

◆ DEFINE_GUID() [21/28]

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

◆ DEFINE_GUID() [22/28]

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

◆ DEFINE_GUID() [23/28]

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

◆ DEFINE_GUID() [24/28]

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

◆ DEFINE_GUID() [25/28]

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

◆ DEFINE_GUID() [26/28]

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

◆ DEFINE_GUID() [27/28]

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

◆ DEFINE_GUID() [28/28]

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

◆ OleCreateFontIndirect()

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

Definition at line 311 of file olefont.c.

315{
316 OLEFontImpl* newFont;
317 HRESULT hr;
318 FONTDESC fd;
319
320 TRACE("(%p, %s, %p)\n", lpFontDesc, debugstr_guid(riid), ppvObj);
321
322 if (!ppvObj) return E_POINTER;
323
324 *ppvObj = 0;
325
326 if (!lpFontDesc) {
327 static WCHAR fname[] = L"System";
328
329 fd.cbSizeofstruct = sizeof(fd);
330 fd.lpstrName = fname;
331 fd.cySize.Lo = 80000;
332 fd.cySize.Hi = 0;
333 fd.sWeight = 0;
334 fd.sCharset = 0;
335 fd.fItalic = FALSE;
336 fd.fUnderline = FALSE;
337 fd.fStrikethrough = FALSE;
338 lpFontDesc = &fd;
339 }
340 else if (!lpFontDesc->lpstrName)
342
343 newFont = OLEFontImpl_Construct(lpFontDesc);
344 if (!newFont) return E_OUTOFMEMORY;
345
346 hr = IFont_QueryInterface(&newFont->IFont_iface, riid, ppvObj);
347 IFont_Release(&newFont->IFont_iface);
348
349 return hr;
350}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HRESULT hr
Definition: delayimp.cpp:582
#define FALSE
Definition: types.h:117
static OLEFontImpl * OLEFontImpl_Construct(const FONTDESC *fontDesc)
Definition: olefont.c:2002
#define L(x)
Definition: resources.c:13
REFIID riid
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
#define CTL_E_INVALIDPROPERTYVALUE
Definition: olectl.h:292
short WCHAR
Definition: pedump.c:58
static int fd
Definition: io.c:51
#define TRACE(s)
Definition: solgame.cpp:4
IFont IFont_iface
Definition: olefont.c:239
LPOLESTR lpstrName
Definition: olectl.h:120
#define E_POINTER
Definition: winerror.h:3480

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 320 of file olepropframe.c.

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

◆ OleCreatePropertyFrameIndirect()

HRESULT WINAPI OleCreatePropertyFrameIndirect ( LPOCPFIPARAMS  lpParams)

Definition at line 153 of file olepropframe.c.

154{
155 PROPSHEETHEADERW property_sheet;
156 PROPSHEETPAGEW property_sheet_page;
157 struct {
158 DLGTEMPLATE template;
159 WORD menu;
160 WORD class;
161 WORD title;
162 } *dialogs;
163 IPropertyPage **property_page;
164 PropertyPageSite *property_page_site;
165 HRESULT res;
166 ULONG i;
167 HMODULE hcomctl;
168 HRSRC property_sheet_dialog_find = NULL;
169 HGLOBAL property_sheet_dialog_load = NULL;
170 WCHAR *property_sheet_dialog_data = NULL;
171 HDC hdc;
172 LOGFONTW font_desc;
173 HFONT hfont;
174 LONG font_width = 4, font_height = 8;
175
176 if(!lpParams)
177 return E_POINTER;
178
179 TRACE("%ld, %p, %d, %d, %s, %ld, %p, %ld, %p, %ld, %ld.\n", lpParams->cbStructSize,
180 lpParams->hWndOwner, lpParams->x, lpParams->y,
181 debugstr_w(lpParams->lpszCaption), lpParams->cObjects,
182 lpParams->lplpUnk, lpParams->cPages, lpParams->lpPages,
183 lpParams->lcid, lpParams->dispidInitialProperty);
184
185 if(!lpParams->lpPages)
186 return E_POINTER;
187
188 if(lpParams->cbStructSize != sizeof(OCPFIPARAMS)) {
189 WARN("incorrect structure size\n");
190 return E_INVALIDARG;
191 }
192
193 if(lpParams->dispidInitialProperty)
194 FIXME("dispidInitialProperty not yet implemented\n");
195
196 hdc = GetDC(NULL);
197 hcomctl = LoadLibraryW(L"comctl32.dll");
198 if(hcomctl)
199 property_sheet_dialog_find = FindResourceW(hcomctl,
200 MAKEINTRESOURCEW(1006 /*IDD_PROPSHEET*/), (LPWSTR)RT_DIALOG);
201 if(property_sheet_dialog_find)
202 property_sheet_dialog_load = LoadResource(hcomctl, property_sheet_dialog_find);
203 if(property_sheet_dialog_load)
204 property_sheet_dialog_data = LockResource(property_sheet_dialog_load);
205
206 if(property_sheet_dialog_data) {
207 if(property_sheet_dialog_data[1] == 0xffff) {
208 ERR("Expected DLGTEMPLATE structure\n");
209 FreeLibrary(hcomctl);
210 return E_OUTOFMEMORY;
211 }
212
213 property_sheet_dialog_data += sizeof(DLGTEMPLATE)/sizeof(WCHAR);
214 /* Skip menu, class and title */
215 property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1;
216 property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1;
217 property_sheet_dialog_data += lstrlenW(property_sheet_dialog_data)+1;
218
219 memset(&font_desc, 0, sizeof(LOGFONTW));
220 /* Calculate logical height */
221 font_desc.lfHeight = -MulDiv(property_sheet_dialog_data[0],
223 font_desc.lfCharSet = DEFAULT_CHARSET;
224 memcpy(font_desc.lfFaceName, property_sheet_dialog_data+1,
225 sizeof(WCHAR)*(lstrlenW(property_sheet_dialog_data+1)+1));
226 hfont = CreateFontIndirectW(&font_desc);
227
228 if(hfont) {
230 font_width = GdiGetCharDimensions(hdc, NULL, &font_height);
232 }
233 }
234 if(hcomctl)
235 FreeLibrary(hcomctl);
237
238 memset(&property_sheet, 0, sizeof(property_sheet));
239 property_sheet.dwSize = sizeof(property_sheet);
240 if(lpParams->lpszCaption) {
241 property_sheet.dwFlags = PSH_PROPTITLE;
242 property_sheet.pszCaption = lpParams->lpszCaption;
243 }
244
246 lpParams->cPages*sizeof(HPROPSHEETPAGE));
247 property_page = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
248 lpParams->cPages*sizeof(IPropertyPage*));
250 lpParams->cPages*sizeof(*dialogs));
251 if(!property_sheet.phpage || !property_page || !dialogs) {
252 HeapFree(GetProcessHeap(), 0, property_sheet.phpage);
253 HeapFree(GetProcessHeap(), 0, property_page);
254 HeapFree(GetProcessHeap(), 0, dialogs);
255 return E_OUTOFMEMORY;
256 }
257
258 memset(&property_sheet_page, 0, sizeof(PROPSHEETPAGEW));
259 property_sheet_page.dwSize = sizeof(PROPSHEETPAGEW);
260 property_sheet_page.dwFlags = PSP_DLGINDIRECT|PSP_USETITLE;
261 property_sheet_page.pfnDlgProc = property_sheet_proc;
262
263 for(i=0; i<lpParams->cPages; i++) {
264 PROPPAGEINFO page_info;
265
266 res = CoCreateInstance(&lpParams->lpPages[i], NULL, CLSCTX_INPROC_SERVER,
267 &IID_IPropertyPage, (void**)&property_page[i]);
268 if(FAILED(res))
269 continue;
270
271 property_page_site = HeapAlloc(GetProcessHeap(), 0, sizeof(PropertyPageSite));
272 if(!property_page_site)
273 continue;
274 property_page_site->IPropertyPageSite_iface.lpVtbl = &PropertyPageSiteVtbl;
275 property_page_site->ref = 1;
276 property_page_site->lcid = lpParams->lcid;
277
278 res = IPropertyPage_SetPageSite(property_page[i],
279 &property_page_site->IPropertyPageSite_iface);
280 IPropertyPageSite_Release(&property_page_site->IPropertyPageSite_iface);
281 if(FAILED(res))
282 continue;
283
284 res = IPropertyPage_SetObjects(property_page[i],
285 lpParams->cObjects, lpParams->lplpUnk);
286 if(FAILED(res))
287 WARN("SetObjects() failed, hr %#lx.\n", res);
288
289 res = IPropertyPage_GetPageInfo(property_page[i], &page_info);
290 if(FAILED(res))
291 continue;
292
293 dialogs[i].template.cx = MulDiv(page_info.size.cx, 4, font_width);
294 dialogs[i].template.cy = MulDiv(page_info.size.cy, 8, font_height);
295
296 property_sheet_page.pResource = &dialogs[i].template;
297 property_sheet_page.lParam = (LPARAM)property_page[i];
298 property_sheet_page.pszTitle = page_info.pszTitle;
299
300 property_sheet.phpage[property_sheet.nPages++] =
301 CreatePropertySheetPageW(&property_sheet_page);
302 }
303
304 PropertySheetW(&property_sheet);
305
306 for(i=0; i<lpParams->cPages; i++) {
307 if(property_page[i])
308 IPropertyPage_Release(property_page[i]);
309 }
310
311 HeapFree(GetProcessHeap(), 0, dialogs);
312 HeapFree(GetProcessHeap(), 0, property_page);
313 HeapFree(GetProcessHeap(), 0, property_sheet.phpage);
314 return S_OK;
315}
static HFONT hfont
#define FIXME(fmt,...)
Definition: precomp.h:53
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
Definition: combase.c:1685
HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage)
Definition: propsheet.c:3120
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
Definition: propsheet.c:2950
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define FreeLibrary(x)
Definition: compat.h:748
#define HeapFree(x, y, z)
Definition: compat.h:735
#define LoadLibraryW(x)
Definition: compat.h:747
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
#define lstrlenW
Definition: compat.h:750
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
unsigned short WORD
Definition: ntddk_ex.h:93
GLuint res
Definition: glext.h:9613
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
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_w
Definition: kernel32.h:32
LONG_PTR LPARAM
Definition: minwindef.h:175
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:88
#define menu
Definition: input.c:3282
struct _PSP * HPROPSHEETPAGE
Definition: mstask.idl:90
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
Definition: muldiv.c:25
const GUID IID_IPropertyPage
static INT_PTR CALLBACK property_sheet_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Definition: olepropframe.c:46
static IPropertyPageSiteVtbl PropertyPageSiteVtbl
Definition: olepropframe.c:140
#define RT_DIALOG
Definition: pedump.c:367
long LONG
Definition: pedump.c:60
#define PSH_PROPTITLE
Definition: prsht.h:40
#define PSP_USETITLE
Definition: prsht.h:26
struct _PROPSHEETPAGEW PROPSHEETPAGEW
#define PSP_DLGINDIRECT
Definition: prsht.h:23
static char title[]
Definition: ps.c:92
#define memset(x, y, z)
Definition: compat.h:39
LONG lfHeight
Definition: dimm.idl:59
WCHAR lfFaceName[LF_FACESIZE]
Definition: dimm.idl:72
BYTE lfCharSet
Definition: dimm.idl:67
IPropertyPageSite IPropertyPageSite_iface
Definition: olepropframe.c:36
DWORD dwSize
Definition: prsht.h:293
DWORD dwFlags
Definition: prsht.h:294
HPROPSHEETPAGE * phpage
Definition: prsht.h:309
LPCWSTR pszCaption
Definition: prsht.h:301
DLGPROC pfnDlgProc
Definition: prsht.h:226
DWORD dwSize
Definition: prsht.h:214
DWORD dwFlags
Definition: prsht.h:215
LPARAM lParam
Definition: prsht.h:227
LPCDLGTEMPLATE pResource
Definition: prsht.h:219
LPCWSTR pszTitle
Definition: prsht.h:225
uint16_t * LPWSTR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
LONG WINAPI GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *)
Definition: font.c:2341
#define LOGPIXELSY
Definition: wingdi.h:719
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1546
#define DEFAULT_CHARSET
Definition: wingdi.h:384
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by OleCreatePropertyFrame().

◆ OleIconToCursor()

HCURSOR WINAPI OleIconToCursor ( HINSTANCE  hinstExe,
HICON  hicon 
)

Definition at line 1229 of file oleaut.c.

1230{
1231 FIXME("(%p,%p), partially implemented.\n",hinstExe,hIcon);
1232 /* FIXME: make an extended conversation from HICON to HCURSOR */
1233 return CopyCursor(hIcon);
1234}
HICON hIcon
Definition: msconfig.c:44
#define CopyCursor(c)
Definition: winuser.h:4389

◆ OleLoadPicture()

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

Definition at line 2322 of file olepicture.c.

2324{
2325 LPPERSISTSTREAM ps;
2326 IPicture *newpic;
2327 HRESULT hr;
2328
2329 TRACE("%p, %ld, %d, %s, %p), partially implemented.\n",
2330 lpstream, lSize, fRunmode, debugstr_guid(riid), ppvObj);
2331
2332 hr = OleCreatePictureIndirect(NULL,riid,!fRunmode,(LPVOID*)&newpic);
2333 if (hr != S_OK)
2334 return hr;
2335 hr = IPicture_QueryInterface(newpic,&IID_IPersistStream, (LPVOID*)&ps);
2336 if (hr != S_OK) {
2337 ERR("Could not get IPersistStream iface from Ole Picture?\n");
2338 IPicture_Release(newpic);
2339 *ppvObj = NULL;
2340 return hr;
2341 }
2342 hr = IPersistStream_Load(ps,lpstream);
2343 IPersistStream_Release(ps);
2344 if (FAILED(hr))
2345 {
2346 ERR("IPersistStream_Load failed\n");
2347 IPicture_Release(newpic);
2348 *ppvObj = NULL;
2349 return hr;
2350 }
2351 hr = IPicture_QueryInterface(newpic,riid,ppvObj);
2352 if (hr != S_OK)
2353 ERR("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
2354 IPicture_Release(newpic);
2355 return hr;
2356}
HRESULT WINAPI OleCreatePictureIndirect(LPPICTDESC lpPictDesc, REFIID riid, BOOL Own, void **ppvObj)
Definition: olepicture.c:2291
interface IPersistStream * LPPERSISTSTREAM
Definition: objfwd.h:16
const GUID IID_IPersistStream
Definition: proxy.cpp:13

Referenced by DoLoadPicture(), 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 2361 of file olepicture.c.

2363{
2364 LPPERSISTSTREAM ps;
2365 IPicture *newpic;
2366 HRESULT hr;
2367
2368 FIXME("%p, %ld, %d, %s, %lu, %lu, %#lx, %p, partially implemented.\n",
2369 lpstream, lSize, fRunmode, debugstr_guid(riid), xsiz, ysiz, flags, ppvObj);
2370
2371 hr = OleCreatePictureIndirect(NULL,riid,!fRunmode,(LPVOID*)&newpic);
2372 if (hr != S_OK)
2373 return hr;
2374 hr = IPicture_QueryInterface(newpic,&IID_IPersistStream, (LPVOID*)&ps);
2375 if (hr != S_OK) {
2376 ERR("Could not get IPersistStream iface from Ole Picture?\n");
2377 IPicture_Release(newpic);
2378 *ppvObj = NULL;
2379 return hr;
2380 }
2381 hr = IPersistStream_Load(ps,lpstream);
2382 IPersistStream_Release(ps);
2383 if (FAILED(hr))
2384 {
2385 ERR("IPersistStream_Load failed\n");
2386 IPicture_Release(newpic);
2387 *ppvObj = NULL;
2388 return hr;
2389 }
2390 hr = IPicture_QueryInterface(newpic,riid,ppvObj);
2391 if (hr != S_OK)
2392 ERR("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
2393 IPicture_Release(newpic);
2394 return hr;
2395}
GLbitfield flags
Definition: glext.h:7161

◆ OleLoadPictureFile()

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

Definition at line 2439 of file olepicture.c.

2440{
2441 IStream *stream;
2442 HRESULT hr;
2443
2444 TRACE("(%s,%p)\n", wine_dbgstr_variant(&filename), picture);
2445
2446 if (V_VT(&filename) != VT_BSTR)
2447 return CTL_E_FILENOTFOUND;
2448
2450 if (hr != S_OK)
2451 {
2453 return CTL_E_FILENOTFOUND;
2454
2456 }
2457
2459 IStream_Release(stream);
2460 return hr;
2461}
@ VT_BSTR
Definition: compat.h:2303
HRESULT WINAPI OleLoadPicture(LPSTREAM lpstream, LONG lSize, BOOL fRunmode, REFIID riid, LPVOID *ppvObj)
Definition: olepicture.c:2322
static HRESULT create_stream(const WCHAR *filename, IStream **stream)
Definition: olepicture.c:2397
@ picture
Definition: id3.c:95
const char * filename
Definition: ioapi.h:137
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define CTL_E_PATHFILEACCESSERROR
Definition: olectl.h:287
#define CTL_E_FILENOTFOUND
Definition: olectl.h:274
const GUID IID_IDispatch
Definition: parse.h:23
static HRESULT HRESULT_FROM_WIN32(unsigned int x)
Definition: winerror.h:210

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 2475 of file olepicture.c.

2478{
2479 IStream *stream;
2480 HRESULT hRes;
2481 WCHAR *file_candidate;
2482 WCHAR path_buf[MAX_PATH];
2483
2484 TRACE("%s, %p, %ld, %#lx, %s, %p.\n", debugstr_w(szURLorPath), punkCaller, dwReserved,
2485 clrReserved, debugstr_guid(riid), ppvRet);
2486
2487 if (!szURLorPath || !ppvRet)
2488 return E_INVALIDARG;
2489
2490 *ppvRet = NULL;
2491
2492 /* Convert file URLs to DOS paths. */
2493 if (wcsncmp(szURLorPath, L"file:", 5) == 0) {
2494 DWORD size;
2495 hRes = CoInternetParseUrl(szURLorPath, PARSE_PATH_FROM_URL, 0, path_buf,
2496 ARRAY_SIZE(path_buf), &size, 0);
2497 if (FAILED(hRes))
2498 return hRes;
2499
2500 file_candidate = path_buf;
2501 }
2502 else
2503 file_candidate = szURLorPath;
2504
2505 /* Handle candidate DOS paths separately. */
2506 if (file_candidate[1] == ':') {
2507 hRes = create_stream(file_candidate, &stream);
2508 if (FAILED(hRes))
2510 } else {
2511 IMoniker *pmnk;
2512 IBindCtx *pbc;
2513
2514 hRes = CreateBindCtx(0, &pbc);
2515 if (SUCCEEDED(hRes))
2516 {
2517 hRes = CreateURLMoniker(NULL, szURLorPath, &pmnk);
2518 if (SUCCEEDED(hRes))
2519 {
2520 hRes = IMoniker_BindToStorage(pmnk, pbc, NULL, &IID_IStream, (LPVOID*)&stream);
2521 IMoniker_Release(pmnk);
2522 }
2523 IBindCtx_Release(pbc);
2524 }
2525 if (FAILED(hRes))
2526 return hRes;
2527 }
2528
2529 hRes = OleLoadPicture(stream, 0, FALSE, riid, ppvRet);
2530
2531 IStream_Release(stream);
2532
2533 return hRes;
2534}
#define ARRAY_SIZE(A)
Definition: main.h:20
#define MAX_PATH
Definition: compat.h:34
_ACRTIMP int __cdecl wcsncmp(const wchar_t *, const wchar_t *, size_t)
Definition: wcs.c:523
HRESULT WINAPI CoInternetParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD dwFlags, LPWSTR pszResult, DWORD cchResult, DWORD *pcchResult, DWORD dwReserved)
Definition: internet.c:325
unsigned long DWORD
Definition: ntddk_ex.h:95
GLsizeiptr size
Definition: glext.h:5919
#define SUCCEEDED(hr)
Definition: intsafe.h:50
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
HRESULT WINAPI CreateBindCtx(DWORD reserved, IBindCtx **bind_context)
Definition: bindctx.c:491
HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk)
Definition: umon.c:747
#define INET_E_RESOURCE_NOT_FOUND
Definition: winerror.h:4655

Referenced by test_OleLoadPicturePath().

◆ OleSavePictureFile()

HRESULT WINAPI OleSavePictureFile ( IDispatch pdispPicture,
BSTR  bstrFilename 
)

Definition at line 2466 of file olepicture.c.

2467{
2468 FIXME("(%p %s): stub\n", picture, debugstr_w(filename));
2469 return CTL_E_FILENOTFOUND;
2470}

◆ OleTranslateColor()

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

Definition at line 690 of file oleaut.c.

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