Changeset 6649 for trunk/src/quartz


Ignore:
Timestamp:
Sep 5, 2001, 3:39:12 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

Location:
trunk/src/quartz
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/quartz/amerror.c

    r6578 r6649  
     1/* $Id: amerror.c,v 1.2 2001-09-05 13:36:34 bird Exp $ */
    12
    23#include "config.h"
     
    1920LPWSTR QUARTZ_strncpyAtoW( LPWSTR lpwstr, LPCSTR lpstr, INT wbuflen )
    2021{
    21         INT     len;
    22 
    23         len = MultiByteToWideChar( CP_ACP, 0, lpstr, -1, lpwstr, wbuflen );
    24         if ( len == 0 )
    25                 *lpwstr = 0;
    26         return lpwstr;
     22    INT len;
     23
     24    len = MultiByteToWideChar( CP_ACP, 0, lpstr, -1, lpwstr, wbuflen );
     25    if ( len == 0 )
     26        *lpwstr = 0;
     27    return lpwstr;
    2728}
    2829
     
    3031static LPCSTR hresult_to_string( HRESULT hr )
    3132{
    32         switch ( hr )
    33         {
    34         #define ENTRY(x)        case x: return (const char*)#x;
    35         /* some known codes */
    36         ENTRY(S_OK)
    37         ENTRY(S_FALSE)
    38         ENTRY(E_FAIL)
    39         ENTRY(E_POINTER)
    40         ENTRY(E_NOTIMPL)
    41         ENTRY(E_NOINTERFACE)
    42         ENTRY(E_OUTOFMEMORY)
    43         ENTRY(CLASS_E_CLASSNOTAVAILABLE)
    44         ENTRY(CLASS_E_NOAGGREGATION)
    45 
    46         /* vfwmsgs.h */
    47         ENTRY(VFW_S_NO_MORE_ITEMS)
    48         ENTRY(VFW_E_BAD_KEY)
    49         ENTRY(VFW_E_INVALIDMEDIATYPE)
    50         ENTRY(VFW_E_INVALIDSUBTYPE)
    51         ENTRY(VFW_E_NEED_OWNER)
    52         ENTRY(VFW_E_ENUM_OUT_OF_SYNC)
    53         ENTRY(VFW_E_ALREADY_CONNECTED)
    54         ENTRY(VFW_E_FILTER_ACTIVE)
    55         ENTRY(VFW_E_NO_TYPES)
    56         ENTRY(VFW_E_NO_ACCEPTABLE_TYPES)
    57         ENTRY(VFW_E_INVALID_DIRECTION)
    58         ENTRY(VFW_E_NOT_CONNECTED)
    59         ENTRY(VFW_E_NO_ALLOCATOR)
    60         ENTRY(VFW_E_RUNTIME_ERROR)
    61         ENTRY(VFW_E_BUFFER_NOTSET)
    62         ENTRY(VFW_E_BUFFER_OVERFLOW)
    63         ENTRY(VFW_E_BADALIGN)
    64         ENTRY(VFW_E_ALREADY_COMMITTED)
    65         ENTRY(VFW_E_BUFFERS_OUTSTANDING)
    66         ENTRY(VFW_E_NOT_COMMITTED)
    67         ENTRY(VFW_E_SIZENOTSET)
    68         ENTRY(VFW_E_NO_CLOCK)
    69         ENTRY(VFW_E_NO_SINK)
    70         ENTRY(VFW_E_NO_INTERFACE)
    71         ENTRY(VFW_E_NOT_FOUND)
    72         ENTRY(VFW_E_CANNOT_CONNECT)
    73         ENTRY(VFW_E_CANNOT_RENDER)
    74         ENTRY(VFW_E_CHANGING_FORMAT)
    75         ENTRY(VFW_E_NO_COLOR_KEY_SET)
    76         ENTRY(VFW_E_NOT_OVERLAY_CONNECTION)
    77         ENTRY(VFW_E_NOT_SAMPLE_CONNECTION)
    78         ENTRY(VFW_E_PALETTE_SET)
    79         ENTRY(VFW_E_COLOR_KEY_SET)
    80         ENTRY(VFW_E_NO_COLOR_KEY_FOUND)
    81         ENTRY(VFW_E_NO_PALETTE_AVAILABLE)
    82         ENTRY(VFW_E_NO_DISPLAY_PALETTE)
    83         ENTRY(VFW_E_TOO_MANY_COLORS)
    84         ENTRY(VFW_E_STATE_CHANGED)
    85         ENTRY(VFW_E_NOT_STOPPED)
    86         ENTRY(VFW_E_NOT_PAUSED)
    87         ENTRY(VFW_E_NOT_RUNNING)
    88         ENTRY(VFW_E_WRONG_STATE)
    89         ENTRY(VFW_E_START_TIME_AFTER_END)
    90         ENTRY(VFW_E_INVALID_RECT)
    91         ENTRY(VFW_E_TYPE_NOT_ACCEPTED)
    92         ENTRY(VFW_E_SAMPLE_REJECTED)
    93         ENTRY(VFW_E_SAMPLE_REJECTED_EOS)
    94         ENTRY(VFW_S_DUPLICATE_NAME)
    95         ENTRY(VFW_E_DUPLICATE_NAME)
    96         ENTRY(VFW_E_TIMEOUT)
    97         ENTRY(VFW_E_INVALID_FILE_FORMAT)
    98         ENTRY(VFW_E_ENUM_OUT_OF_RANGE)
    99         ENTRY(VFW_E_CIRCULAR_GRAPH)
    100         ENTRY(VFW_E_NOT_ALLOWED_TO_SAVE)
    101         ENTRY(VFW_E_TIME_ALREADY_PASSED)
    102         ENTRY(VFW_E_ALREADY_CANCELLED)
    103         ENTRY(VFW_E_CORRUPT_GRAPH_FILE)
    104         ENTRY(VFW_E_ADVISE_ALREADY_SET)
    105         ENTRY(VFW_S_STATE_INTERMEDIATE)
    106         ENTRY(VFW_E_NO_MODEX_AVAILABLE)
    107         ENTRY(VFW_E_NO_ADVISE_SET)
    108         ENTRY(VFW_E_NO_FULLSCREEN)
    109         ENTRY(VFW_E_IN_FULLSCREEN_MODE)
    110         ENTRY(VFW_E_UNKNOWN_FILE_TYPE)
    111         ENTRY(VFW_E_CANNOT_LOAD_SOURCE_FILTER)
    112         ENTRY(VFW_S_PARTIAL_RENDER)
    113         ENTRY(VFW_E_FILE_TOO_SHORT)
    114         ENTRY(VFW_E_INVALID_FILE_VERSION)
    115         ENTRY(VFW_S_SOME_DATA_IGNORED)
    116         ENTRY(VFW_S_CONNECTIONS_DEFERRED)
    117         ENTRY(VFW_E_INVALID_CLSID)
    118         ENTRY(VFW_E_INVALID_MEDIA_TYPE)
    119         ENTRY(VFW_E_SAMPLE_TIME_NOT_SET)
    120         ENTRY(VFW_S_RESOURCE_NOT_NEEDED)
    121         ENTRY(VFW_E_MEDIA_TIME_NOT_SET)
    122         ENTRY(VFW_E_NO_TIME_FORMAT_SET)
    123         ENTRY(VFW_E_MONO_AUDIO_HW)
    124         ENTRY(VFW_S_MEDIA_TYPE_IGNORED)
    125         ENTRY(VFW_E_NO_DECOMPRESSOR)
    126         ENTRY(VFW_E_NO_AUDIO_HARDWARE)
    127         ENTRY(VFW_S_VIDEO_NOT_RENDERED)
    128         ENTRY(VFW_S_AUDIO_NOT_RENDERED)
    129         ENTRY(VFW_E_RPZA)
    130         ENTRY(VFW_S_RPZA)
    131         ENTRY(VFW_E_PROCESSOR_NOT_SUITABLE)
    132         ENTRY(VFW_E_UNSUPPORTED_AUDIO)
    133         ENTRY(VFW_E_UNSUPPORTED_VIDEO)
    134         ENTRY(VFW_E_MPEG_NOT_CONSTRAINED)
    135         ENTRY(VFW_E_NOT_IN_GRAPH)
    136         ENTRY(VFW_S_ESTIMATED)
    137         ENTRY(VFW_E_NO_TIME_FORMAT)
    138         ENTRY(VFW_E_READ_ONLY)
    139         ENTRY(VFW_S_RESERVED)
    140         ENTRY(VFW_E_BUFFER_UNDERFLOW)
    141         ENTRY(VFW_E_UNSUPPORTED_STREAM)
    142         ENTRY(VFW_E_NO_TRANSPORT)
    143         ENTRY(VFW_S_STREAM_OFF)
    144         ENTRY(VFW_S_CANT_CUE)
    145         ENTRY(VFW_E_BAD_VIDEOCD)
    146         ENTRY(VFW_S_NO_STOP_TIME)
    147         ENTRY(VFW_E_OUT_OF_VIDEO_MEMORY)
    148         ENTRY(VFW_E_VP_NEGOTIATION_FAILED)
    149         ENTRY(VFW_E_DDRAW_CAPS_NOT_SUITABLE)
    150         ENTRY(VFW_E_NO_VP_HARDWARE)
    151         ENTRY(VFW_E_NO_CAPTURE_HARDWARE)
    152         ENTRY(VFW_E_DVD_OPERATION_INHIBITED)
    153         ENTRY(VFW_E_DVD_INVALIDDOMAIN)
    154         ENTRY(VFW_E_DVD_NO_BUTTON)
    155         ENTRY(VFW_E_DVD_GRAPHNOTREADY)
    156         ENTRY(VFW_E_DVD_RENDERFAIL)
    157         ENTRY(VFW_E_DVD_DECNOTENOUGH)
    158         ENTRY(VFW_E_DDRAW_VERSION_NOT_SUITABLE)
    159         ENTRY(VFW_E_COPYPROT_FAILED)
    160         ENTRY(VFW_S_NOPREVIEWPIN)
    161         ENTRY(VFW_E_TIME_EXPIRED)
    162         ENTRY(VFW_S_DVD_NON_ONE_SEQUENTIAL)
    163         ENTRY(VFW_E_DVD_WRONG_SPEED)
    164         ENTRY(VFW_E_DVD_MENU_DOES_NOT_EXIST)
    165         ENTRY(VFW_E_DVD_CMD_CANCELLED)
    166         ENTRY(VFW_E_DVD_STATE_WRONG_VERSION)
    167         ENTRY(VFW_E_DVD_STATE_CORRUPT)
    168         ENTRY(VFW_E_DVD_STATE_WRONG_DISC)
    169         ENTRY(VFW_E_DVD_INCOMPATIBLE_REGION)
    170         ENTRY(VFW_E_DVD_NO_ATTRIBUTES)
    171         ENTRY(VFW_E_DVD_NO_GOUP_PGC)
    172         ENTRY(VFW_E_DVD_LOW_PARENTAL_LEVEL)
    173         ENTRY(VFW_E_DVD_NOT_IN_KARAOKE_MODE)
    174         ENTRY(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE)
    175         ENTRY(VFW_S_DVD_NOT_ACCURATE)
    176         ENTRY(VFW_E_FRAME_STEP_UNSUPPORTED)
    177         ENTRY(VFW_E_DVD_STREAM_DISABLED)
    178         ENTRY(VFW_E_DVD_TITLE_UNKNOWN)
    179         ENTRY(VFW_E_DVD_INVALID_DISC)
    180         ENTRY(VFW_E_DVD_NO_RESUME_INFORMATION)
    181         ENTRY(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD)
    182         ENTRY(VFW_E_PIN_ALREADY_BLOCKED)
    183         ENTRY(VFW_E_CERTIFICATION_FAILURE)
    184         #undef  ENTRY
    185         }
    186 
    187         return NULL;
     33    switch ( hr )
     34    {
     35    #define ENTRY(x)    case x: return (const char*)#x;
     36    /* some known codes */
     37    ENTRY(S_OK)
     38    ENTRY(S_FALSE)
     39    ENTRY(E_FAIL)
     40    ENTRY(E_POINTER)
     41    ENTRY(E_NOTIMPL)
     42    ENTRY(E_NOINTERFACE)
     43    ENTRY(E_OUTOFMEMORY)
     44    ENTRY(CLASS_E_CLASSNOTAVAILABLE)
     45    ENTRY(CLASS_E_NOAGGREGATION)
     46
     47    /* vfwmsgs.h */
     48    ENTRY(VFW_S_NO_MORE_ITEMS)
     49    ENTRY(VFW_E_BAD_KEY)
     50    ENTRY(VFW_E_INVALIDMEDIATYPE)
     51    ENTRY(VFW_E_INVALIDSUBTYPE)
     52    ENTRY(VFW_E_NEED_OWNER)
     53    ENTRY(VFW_E_ENUM_OUT_OF_SYNC)
     54    ENTRY(VFW_E_ALREADY_CONNECTED)
     55    ENTRY(VFW_E_FILTER_ACTIVE)
     56    ENTRY(VFW_E_NO_TYPES)
     57    ENTRY(VFW_E_NO_ACCEPTABLE_TYPES)
     58    ENTRY(VFW_E_INVALID_DIRECTION)
     59    ENTRY(VFW_E_NOT_CONNECTED)
     60    ENTRY(VFW_E_NO_ALLOCATOR)
     61    ENTRY(VFW_E_RUNTIME_ERROR)
     62    ENTRY(VFW_E_BUFFER_NOTSET)
     63    ENTRY(VFW_E_BUFFER_OVERFLOW)
     64    ENTRY(VFW_E_BADALIGN)
     65    ENTRY(VFW_E_ALREADY_COMMITTED)
     66    ENTRY(VFW_E_BUFFERS_OUTSTANDING)
     67    ENTRY(VFW_E_NOT_COMMITTED)
     68    ENTRY(VFW_E_SIZENOTSET)
     69    ENTRY(VFW_E_NO_CLOCK)
     70    ENTRY(VFW_E_NO_SINK)
     71    ENTRY(VFW_E_NO_INTERFACE)
     72    ENTRY(VFW_E_NOT_FOUND)
     73    ENTRY(VFW_E_CANNOT_CONNECT)
     74    ENTRY(VFW_E_CANNOT_RENDER)
     75    ENTRY(VFW_E_CHANGING_FORMAT)
     76    ENTRY(VFW_E_NO_COLOR_KEY_SET)
     77    ENTRY(VFW_E_NOT_OVERLAY_CONNECTION)
     78    ENTRY(VFW_E_NOT_SAMPLE_CONNECTION)
     79    ENTRY(VFW_E_PALETTE_SET)
     80    ENTRY(VFW_E_COLOR_KEY_SET)
     81    ENTRY(VFW_E_NO_COLOR_KEY_FOUND)
     82    ENTRY(VFW_E_NO_PALETTE_AVAILABLE)
     83    ENTRY(VFW_E_NO_DISPLAY_PALETTE)
     84    ENTRY(VFW_E_TOO_MANY_COLORS)
     85    ENTRY(VFW_E_STATE_CHANGED)
     86    ENTRY(VFW_E_NOT_STOPPED)
     87    ENTRY(VFW_E_NOT_PAUSED)
     88    ENTRY(VFW_E_NOT_RUNNING)
     89    ENTRY(VFW_E_WRONG_STATE)
     90    ENTRY(VFW_E_START_TIME_AFTER_END)
     91    ENTRY(VFW_E_INVALID_RECT)
     92    ENTRY(VFW_E_TYPE_NOT_ACCEPTED)
     93    ENTRY(VFW_E_SAMPLE_REJECTED)
     94    ENTRY(VFW_E_SAMPLE_REJECTED_EOS)
     95    ENTRY(VFW_S_DUPLICATE_NAME)
     96    ENTRY(VFW_E_DUPLICATE_NAME)
     97    ENTRY(VFW_E_TIMEOUT)
     98    ENTRY(VFW_E_INVALID_FILE_FORMAT)
     99    ENTRY(VFW_E_ENUM_OUT_OF_RANGE)
     100    ENTRY(VFW_E_CIRCULAR_GRAPH)
     101    ENTRY(VFW_E_NOT_ALLOWED_TO_SAVE)
     102    ENTRY(VFW_E_TIME_ALREADY_PASSED)
     103    ENTRY(VFW_E_ALREADY_CANCELLED)
     104    ENTRY(VFW_E_CORRUPT_GRAPH_FILE)
     105    ENTRY(VFW_E_ADVISE_ALREADY_SET)
     106    ENTRY(VFW_S_STATE_INTERMEDIATE)
     107    ENTRY(VFW_E_NO_MODEX_AVAILABLE)
     108    ENTRY(VFW_E_NO_ADVISE_SET)
     109    ENTRY(VFW_E_NO_FULLSCREEN)
     110    ENTRY(VFW_E_IN_FULLSCREEN_MODE)
     111    ENTRY(VFW_E_UNKNOWN_FILE_TYPE)
     112    ENTRY(VFW_E_CANNOT_LOAD_SOURCE_FILTER)
     113    ENTRY(VFW_S_PARTIAL_RENDER)
     114    ENTRY(VFW_E_FILE_TOO_SHORT)
     115    ENTRY(VFW_E_INVALID_FILE_VERSION)
     116    ENTRY(VFW_S_SOME_DATA_IGNORED)
     117    ENTRY(VFW_S_CONNECTIONS_DEFERRED)
     118    ENTRY(VFW_E_INVALID_CLSID)
     119    ENTRY(VFW_E_INVALID_MEDIA_TYPE)
     120    ENTRY(VFW_E_SAMPLE_TIME_NOT_SET)
     121    ENTRY(VFW_S_RESOURCE_NOT_NEEDED)
     122    ENTRY(VFW_E_MEDIA_TIME_NOT_SET)
     123    ENTRY(VFW_E_NO_TIME_FORMAT_SET)
     124    ENTRY(VFW_E_MONO_AUDIO_HW)
     125    ENTRY(VFW_S_MEDIA_TYPE_IGNORED)
     126    ENTRY(VFW_E_NO_DECOMPRESSOR)
     127    ENTRY(VFW_E_NO_AUDIO_HARDWARE)
     128    ENTRY(VFW_S_VIDEO_NOT_RENDERED)
     129    ENTRY(VFW_S_AUDIO_NOT_RENDERED)
     130    ENTRY(VFW_E_RPZA)
     131    ENTRY(VFW_S_RPZA)
     132    ENTRY(VFW_E_PROCESSOR_NOT_SUITABLE)
     133    ENTRY(VFW_E_UNSUPPORTED_AUDIO)
     134    ENTRY(VFW_E_UNSUPPORTED_VIDEO)
     135    ENTRY(VFW_E_MPEG_NOT_CONSTRAINED)
     136    ENTRY(VFW_E_NOT_IN_GRAPH)
     137    ENTRY(VFW_S_ESTIMATED)
     138    ENTRY(VFW_E_NO_TIME_FORMAT)
     139    ENTRY(VFW_E_READ_ONLY)
     140    ENTRY(VFW_S_RESERVED)
     141    ENTRY(VFW_E_BUFFER_UNDERFLOW)
     142    ENTRY(VFW_E_UNSUPPORTED_STREAM)
     143    ENTRY(VFW_E_NO_TRANSPORT)
     144    ENTRY(VFW_S_STREAM_OFF)
     145    ENTRY(VFW_S_CANT_CUE)
     146    ENTRY(VFW_E_BAD_VIDEOCD)
     147    ENTRY(VFW_S_NO_STOP_TIME)
     148    ENTRY(VFW_E_OUT_OF_VIDEO_MEMORY)
     149    ENTRY(VFW_E_VP_NEGOTIATION_FAILED)
     150    ENTRY(VFW_E_DDRAW_CAPS_NOT_SUITABLE)
     151    ENTRY(VFW_E_NO_VP_HARDWARE)
     152    ENTRY(VFW_E_NO_CAPTURE_HARDWARE)
     153    ENTRY(VFW_E_DVD_OPERATION_INHIBITED)
     154    ENTRY(VFW_E_DVD_INVALIDDOMAIN)
     155    ENTRY(VFW_E_DVD_NO_BUTTON)
     156    ENTRY(VFW_E_DVD_GRAPHNOTREADY)
     157    ENTRY(VFW_E_DVD_RENDERFAIL)
     158    ENTRY(VFW_E_DVD_DECNOTENOUGH)
     159    ENTRY(VFW_E_DDRAW_VERSION_NOT_SUITABLE)
     160    ENTRY(VFW_E_COPYPROT_FAILED)
     161    ENTRY(VFW_S_NOPREVIEWPIN)
     162    ENTRY(VFW_E_TIME_EXPIRED)
     163    ENTRY(VFW_S_DVD_NON_ONE_SEQUENTIAL)
     164    ENTRY(VFW_E_DVD_WRONG_SPEED)
     165    ENTRY(VFW_E_DVD_MENU_DOES_NOT_EXIST)
     166    ENTRY(VFW_E_DVD_CMD_CANCELLED)
     167    ENTRY(VFW_E_DVD_STATE_WRONG_VERSION)
     168    ENTRY(VFW_E_DVD_STATE_CORRUPT)
     169    ENTRY(VFW_E_DVD_STATE_WRONG_DISC)
     170    ENTRY(VFW_E_DVD_INCOMPATIBLE_REGION)
     171    ENTRY(VFW_E_DVD_NO_ATTRIBUTES)
     172    ENTRY(VFW_E_DVD_NO_GOUP_PGC)
     173    ENTRY(VFW_E_DVD_LOW_PARENTAL_LEVEL)
     174    ENTRY(VFW_E_DVD_NOT_IN_KARAOKE_MODE)
     175    ENTRY(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE)
     176    ENTRY(VFW_S_DVD_NOT_ACCURATE)
     177    ENTRY(VFW_E_FRAME_STEP_UNSUPPORTED)
     178    ENTRY(VFW_E_DVD_STREAM_DISABLED)
     179    ENTRY(VFW_E_DVD_TITLE_UNKNOWN)
     180    ENTRY(VFW_E_DVD_INVALID_DISC)
     181    ENTRY(VFW_E_DVD_NO_RESUME_INFORMATION)
     182    ENTRY(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD)
     183    ENTRY(VFW_E_PIN_ALREADY_BLOCKED)
     184    ENTRY(VFW_E_CERTIFICATION_FAILURE)
     185    #undef  ENTRY
     186    }
     187
     188    return NULL;
    188189}
    189190
    190191/***********************************************************************
    191  *      AMGetErrorTextA (quartz.@)
     192 *  AMGetErrorTextA (quartz.@)
    192193 */
    193194DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR pszbuf, DWORD dwBufLen)
    194195{
    195         LPCSTR  lpszRes;
    196         DWORD len;
    197 
    198         lpszRes = hresult_to_string( hr );
    199         if ( lpszRes == NULL )
    200                 return 0;
    201         len = (DWORD)(strlen(lpszRes)+1);
    202         if ( len > dwBufLen )
    203                 return 0;
    204 
    205         memcpy( pszbuf, lpszRes, len );
    206         return len;
     196    LPCSTR  lpszRes;
     197    DWORD len;
     198
     199    lpszRes = hresult_to_string( hr );
     200    if ( lpszRes == NULL )
     201        return 0;
     202    len = (DWORD)(strlen(lpszRes)+1);
     203    if ( len > dwBufLen )
     204        return 0;
     205
     206    memcpy( pszbuf, lpszRes, len );
     207    return len;
    207208}
    208209
    209210/***********************************************************************
    210  *      AMGetErrorTextW (quartz.@)
     211 *  AMGetErrorTextW (quartz.@)
    211212 */
    212213DWORD WINAPI AMGetErrorTextW(HRESULT hr, LPWSTR pwszbuf, DWORD dwBufLen)
    213214{
    214         CHAR    szBuf[MAX_ERROR_TEXT_LEN+1];
    215         DWORD   dwLen;
    216 
    217         dwLen = AMGetErrorTextA(hr,szBuf,MAX_ERROR_TEXT_LEN);
    218         if ( dwLen == 0 )
    219                 return 0;
    220         szBuf[dwLen] = 0;
    221 
    222         QUARTZ_strncpyAtoW( pwszbuf, szBuf, dwBufLen );
    223 
    224         return lstrlenW( pwszbuf );
    225 }
     215    CHAR    szBuf[MAX_ERROR_TEXT_LEN+1];
     216    DWORD   dwLen;
     217
     218    dwLen = AMGetErrorTextA(hr,szBuf,MAX_ERROR_TEXT_LEN);
     219    if ( dwLen == 0 )
     220        return 0;
     221    szBuf[dwLen] = 0;
     222
     223    QUARTZ_strncpyAtoW( pwszbuf, szBuf, dwBufLen );
     224
     225    return lstrlenW( pwszbuf );
     226}
  • trunk/src/quartz/complist.c

    r6578 r6649  
     1/* $Id: complist.c,v 1.2 2001-09-05 13:36:34 bird Exp $ */
    12/*
    23 * List of components. (for internal use)
     
    2425struct QUARTZ_CompList
    2526{
    26         QUARTZ_CompListItem*    pFirst;
    27         QUARTZ_CompListItem*    pLast;
     27    QUARTZ_CompListItem*    pFirst;
     28    QUARTZ_CompListItem*    pLast;
    2829};
    2930
    3031struct QUARTZ_CompListItem
    3132{
    32         IUnknown*       punk;
    33         QUARTZ_CompListItem*    pNext;
    34         QUARTZ_CompListItem*    pPrev;
     33    IUnknown*   punk;
     34    QUARTZ_CompListItem*    pNext;
     35    QUARTZ_CompListItem*    pPrev;
    3536};
    3637
     
    3839QUARTZ_CompList* QUARTZ_CompList_Alloc( void )
    3940{
    40         QUARTZ_CompList*        pList;
     41    QUARTZ_CompList*    pList;
    4142
    42         pList = (QUARTZ_CompList*)QUARTZ_AllocMem( sizeof(QUARTZ_CompList) );
    43         if ( pList != NULL )
    44         {
    45                 /* construct. */
    46                 pList->pFirst = NULL;
    47                 pList->pLast = NULL;
    48         }
     43    pList = (QUARTZ_CompList*)QUARTZ_AllocMem( sizeof(QUARTZ_CompList) );
     44    if ( pList != NULL )
     45    {
     46        /* construct. */
     47        pList->pFirst = NULL;
     48        pList->pLast = NULL;
     49    }
    4950
    50         return pList;
     51    return pList;
    5152}
    5253
    5354void QUARTZ_CompList_Free( QUARTZ_CompList* pList )
    5455{
    55         QUARTZ_CompListItem*    pCur;
    56         QUARTZ_CompListItem*    pNext;
     56    QUARTZ_CompListItem*    pCur;
     57    QUARTZ_CompListItem*    pNext;
    5758
    58         if ( pList != NULL )
    59         {
    60                 pCur = pList->pFirst;
    61                 while ( pCur != NULL )
    62                 {
    63                         pNext = pCur->pNext;
    64                         if ( pCur->punk != NULL )
    65                                 IUnknown_Release( pCur->punk );
    66                         QUARTZ_FreeMem( pCur );
    67                         pCur = pNext;
    68                 }
    69                 QUARTZ_FreeMem( pList );
    70         }
     59    if ( pList != NULL )
     60    {
     61        pCur = pList->pFirst;
     62        while ( pCur != NULL )
     63        {
     64            pNext = pCur->pNext;
     65            if ( pCur->punk != NULL )
     66                IUnknown_Release( pCur->punk );
     67            QUARTZ_FreeMem( pCur );
     68            pCur = pNext;
     69        }
     70        QUARTZ_FreeMem( pList );
     71    }
    7172}
    7273
    7374QUARTZ_CompList* QUARTZ_CompList_Dup( QUARTZ_CompList* pList )
    7475{
    75         QUARTZ_CompList*        pNewList;
    76         QUARTZ_CompListItem*    pCur;
    77         HRESULT hr;
     76    QUARTZ_CompList*    pNewList;
     77    QUARTZ_CompListItem*    pCur;
     78    HRESULT hr;
    7879
    79         pNewList = QUARTZ_CompList_Alloc();
    80         if ( pNewList == NULL )
    81                 return NULL;
     80    pNewList = QUARTZ_CompList_Alloc();
     81    if ( pNewList == NULL )
     82        return NULL;
    8283
    83         pCur = pList->pFirst;
    84         while ( pCur != NULL )
    85         {
    86                 if ( pCur->punk != NULL )
    87                 {
    88                         hr = QUARTZ_CompList_AddComp( pNewList, pCur->punk );
    89                         if ( FAILED(hr) )
    90                         {
    91                                 QUARTZ_CompList_Free( pNewList );
    92                                 return NULL;
    93                         }
    94                 }
    95                 pCur = pCur->pNext;
    96         }
     84    pCur = pList->pFirst;
     85    while ( pCur != NULL )
     86    {
     87        if ( pCur->punk != NULL )
     88        {
     89            hr = QUARTZ_CompList_AddComp( pNewList, pCur->punk );
     90            if ( FAILED(hr) )
     91            {
     92                QUARTZ_CompList_Free( pNewList );
     93                return NULL;
     94            }
     95        }
     96        pCur = pCur->pNext;
     97    }
    9798
    98         return pNewList;
     99    return pNewList;
    99100}
    100101
    101102HRESULT QUARTZ_CompList_AddComp( QUARTZ_CompList* pList, IUnknown* punk )
    102103{
    103         QUARTZ_CompListItem*    pItem;
     104    QUARTZ_CompListItem*    pItem;
    104105
    105         pItem = (QUARTZ_CompListItem*)QUARTZ_AllocMem( sizeof(QUARTZ_CompListItem) );
    106         if ( pItem == NULL )
    107                 return E_OUTOFMEMORY; /* out of memory. */
    108         pItem->punk = punk; IUnknown_AddRef(punk);
     106    pItem = (QUARTZ_CompListItem*)QUARTZ_AllocMem( sizeof(QUARTZ_CompListItem) );
     107    if ( pItem == NULL )
     108        return E_OUTOFMEMORY; /* out of memory. */
     109    pItem->punk = punk; IUnknown_AddRef(punk);
    109110
    110         if ( pList->pFirst != NULL )
    111                 pList->pFirst->pPrev = pItem;
    112         else
    113                 pList->pLast = pItem;
    114         pList->pFirst = pItem;
    115         pItem->pNext = pList->pFirst;
    116         pItem->pPrev = NULL;
     111    if ( pList->pFirst != NULL )
     112        pList->pFirst->pPrev = pItem;
     113    else
     114        pList->pLast = pItem;
     115    pList->pFirst = pItem;
     116    pItem->pNext = pList->pFirst;
     117    pItem->pPrev = NULL;
    117118
    118         return S_OK;
     119    return S_OK;
    119120}
    120121
    121122HRESULT QUARTZ_CompList_RemoveComp( QUARTZ_CompList* pList, IUnknown* punk )
    122123{
    123         QUARTZ_CompListItem*    pCur;
     124    QUARTZ_CompListItem*    pCur;
    124125
    125         pCur = QUARTZ_CompList_SearchComp( pList, punk );
    126         if ( pCur == NULL )
    127                 return S_FALSE; /* already removed. */
     126    pCur = QUARTZ_CompList_SearchComp( pList, punk );
     127    if ( pCur == NULL )
     128        return S_FALSE; /* already removed. */
    128129
    129         /* remove from list. */
    130         if ( pCur->pNext != NULL )
    131                 pCur->pNext->pPrev = pCur->pPrev;
    132         else
    133                 pList->pLast = pCur->pPrev;
    134         if ( pCur->pPrev != NULL )
    135                 pCur->pPrev->pNext = pCur->pNext;
    136         else
    137                 pList->pFirst = pCur->pNext;
     130    /* remove from list. */
     131    if ( pCur->pNext != NULL )
     132        pCur->pNext->pPrev = pCur->pPrev;
     133    else
     134        pList->pLast = pCur->pPrev;
     135    if ( pCur->pPrev != NULL )
     136        pCur->pPrev->pNext = pCur->pNext;
     137    else
     138        pList->pFirst = pCur->pNext;
    138139
    139         /* release this item. */
    140         if ( pCur->punk != NULL )
    141                 IUnknown_Release( pCur->punk );
    142         QUARTZ_FreeMem( pCur );
     140    /* release this item. */
     141    if ( pCur->punk != NULL )
     142        IUnknown_Release( pCur->punk );
     143    QUARTZ_FreeMem( pCur );
    143144
    144         return S_OK;
     145    return S_OK;
    145146}
    146147
    147148QUARTZ_CompListItem* QUARTZ_CompList_SearchComp(
    148         QUARTZ_CompList* pList, IUnknown* punk )
     149    QUARTZ_CompList* pList, IUnknown* punk )
    149150{
    150         QUARTZ_CompListItem*    pCur;
     151    QUARTZ_CompListItem*    pCur;
    151152
    152         pCur = pList->pFirst;
    153         while ( pCur != NULL )
    154         {
    155                 if ( pCur->punk == punk )
    156                         return pCur;
    157                 pCur = pCur->pNext;
    158         }
     153    pCur = pList->pFirst;
     154    while ( pCur != NULL )
     155    {
     156        if ( pCur->punk == punk )
     157            return pCur;
     158        pCur = pCur->pNext;
     159    }
    159160
    160         return NULL;
     161    return NULL;
    161162}
    162163
    163164QUARTZ_CompListItem* QUARTZ_CompList_GetFirst(
    164         QUARTZ_CompList* pList )
     165    QUARTZ_CompList* pList )
    165166{
    166         return pList->pFirst;
     167    return pList->pFirst;
    167168}
    168169
    169170QUARTZ_CompListItem* QUARTZ_CompList_GetNext(
    170         QUARTZ_CompList* pList, QUARTZ_CompListItem* pPrev )
     171    QUARTZ_CompList* pList, QUARTZ_CompListItem* pPrev )
    171172{
    172         return pPrev->pNext;
     173    return pPrev->pNext;
    173174}
    174175
    175176IUnknown* QUARTZ_CompList_GetItemPtr( QUARTZ_CompListItem* pItem )
    176177{
    177         return pItem->punk;
     178    return pItem->punk;
    178179}
  • trunk/src/quartz/fgraph.c

    r6578 r6649  
     1/* $Id: fgraph.c,v 1.3 2001-09-05 13:36:34 bird Exp $ */
    12/*
    23 * Implementation of CLSID_FilterGraph.
     
    4344HRESULT QUARTZ_CreateFilterGraph(IUnknown* punkOuter,void** ppobj)
    4445{
    45         CFilterGraph*   pfg;
     46    CFilterGraph*   pfg;
    4647
    47         TRACE("(%p,%p)\n",punkOuter,ppobj);
     48    TRACE("(%p,%p)\n",punkOuter,ppobj);
    4849
    49         pfg = (CFilterGraph*)QUARTZ_AllocObj( sizeof(CFilterGraph) );
    50         if ( pfg == NULL )
    51                 return E_OUTOFMEMORY;
     50    pfg = (CFilterGraph*)QUARTZ_AllocObj( sizeof(CFilterGraph) );
     51    if ( pfg == NULL )
     52        return E_OUTOFMEMORY;
    5253
    53         QUARTZ_IUnkInit( &pfg->unk, punkOuter );
    54         CFilterGraph_InitIFilterGraph2( pfg );
    55         CFilterGraph_InitIMediaControl( pfg );
    56         CFilterGraph_InitIMediaEventEx( pfg );
    57         CFilterGraph_InitIMediaPosition( pfg );
    58         CFilterGraph_InitIMediaSeeking( pfg );
    59         CFilterGraph_InitIBasicVideo2( pfg );
    60         CFilterGraph_InitIBasicAudio( pfg );
    61         CFilterGraph_InitIVideoWindow( pfg );
     54    QUARTZ_IUnkInit( &pfg->unk, punkOuter );
     55    CFilterGraph_InitIFilterGraph2( pfg );
     56    CFilterGraph_InitIMediaControl( pfg );
     57    CFilterGraph_InitIMediaEventEx( pfg );
     58    CFilterGraph_InitIMediaPosition( pfg );
     59    CFilterGraph_InitIMediaSeeking( pfg );
     60    CFilterGraph_InitIBasicVideo2( pfg );
     61    CFilterGraph_InitIBasicAudio( pfg );
     62    CFilterGraph_InitIVideoWindow( pfg );
    6263
    63         pfg->unk.pEntries = IFEntries;
    64         pfg->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
     64    pfg->unk.pEntries = IFEntries;
     65    pfg->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
    6566
    66         *ppobj = (void*)(&pfg->unk);
     67    *ppobj = (void*)(&pfg->unk);
    6768
    68         return S_OK;
     69    return S_OK;
    6970}
  • trunk/src/quartz/guid.c

    r6578 r6649  
     1/* $Id: guid.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */
    12// This causes all the DEFINE_GUID macros to instantiate their GUID's
    23#define INITGUID
  • trunk/src/quartz/ibasaud.c

    r6578 r6649  
     1/* $Id: ibasaud.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */
    12/*
    23 * Implementation of IBasicAudio for FilterGraph.
     
    3031IBasicAudio_fnQueryInterface(IBasicAudio* iface,REFIID riid,void** ppobj)
    3132{
    32         CFilterGraph_THIS(iface,basaud);
     33    CFilterGraph_THIS(iface,basaud);
    3334
    34         TRACE("(%p)->()\n",This);
     35    TRACE("(%p)->()\n",This);
    3536
    36         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     37    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3738}
    3839
     
    4041IBasicAudio_fnAddRef(IBasicAudio* iface)
    4142{
    42         CFilterGraph_THIS(iface,basaud);
     43    CFilterGraph_THIS(iface,basaud);
    4344
    44         TRACE("(%p)->()\n",This);
     45    TRACE("(%p)->()\n",This);
    4546
    46         return IUnknown_AddRef(This->unk.punkControl);
     47    return IUnknown_AddRef(This->unk.punkControl);
    4748}
    4849
     
    5051IBasicAudio_fnRelease(IBasicAudio* iface)
    5152{
    52         CFilterGraph_THIS(iface,basaud);
     53    CFilterGraph_THIS(iface,basaud);
    5354
    54         TRACE("(%p)->()\n",This);
     55    TRACE("(%p)->()\n",This);
    5556
    56         return IUnknown_Release(This->unk.punkControl);
     57    return IUnknown_Release(This->unk.punkControl);
    5758}
    5859
     
    6061IBasicAudio_fnGetTypeInfoCount(IBasicAudio* iface,UINT* pcTypeInfo)
    6162{
    62         CFilterGraph_THIS(iface,basaud);
     63    CFilterGraph_THIS(iface,basaud);
    6364
    64         FIXME("(%p)->()\n",This);
     65    FIXME("(%p)->()\n",This);
    6566
    66         return E_NOTIMPL;
     67    return E_NOTIMPL;
    6768}
    6869
     
    7071IBasicAudio_fnGetTypeInfo(IBasicAudio* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7172{
    72         CFilterGraph_THIS(iface,basaud);
     73    CFilterGraph_THIS(iface,basaud);
    7374
    74         FIXME("(%p)->()\n",This);
     75    FIXME("(%p)->()\n",This);
    7576
    76         return E_NOTIMPL;
     77    return E_NOTIMPL;
    7778}
    7879
     
    8081IBasicAudio_fnGetIDsOfNames(IBasicAudio* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8182{
    82         CFilterGraph_THIS(iface,basaud);
     83    CFilterGraph_THIS(iface,basaud);
    8384
    84         FIXME("(%p)->()\n",This);
     85    FIXME("(%p)->()\n",This);
    8586
    86         return E_NOTIMPL;
     87    return E_NOTIMPL;
    8788}
    8889
     
    9091IBasicAudio_fnInvoke(IBasicAudio* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9192{
    92         CFilterGraph_THIS(iface,basaud);
     93    CFilterGraph_THIS(iface,basaud);
    9394
    94         FIXME("(%p)->()\n",This);
     95    FIXME("(%p)->()\n",This);
    9596
    96         return E_NOTIMPL;
     97    return E_NOTIMPL;
    9798}
    9899
     
    101102IBasicAudio_fnput_Volume(IBasicAudio* iface,long lVol)
    102103{
    103         CFilterGraph_THIS(iface,basaud);
     104    CFilterGraph_THIS(iface,basaud);
    104105
    105         FIXME("(%p)->()\n",This);
     106    FIXME("(%p)->()\n",This);
    106107
    107         return E_NOTIMPL;
     108    return E_NOTIMPL;
    108109}
    109110
     
    111112IBasicAudio_fnget_Volume(IBasicAudio* iface,long* plVol)
    112113{
    113         CFilterGraph_THIS(iface,basaud);
     114    CFilterGraph_THIS(iface,basaud);
    114115
    115         FIXME("(%p)->()\n",This);
     116    FIXME("(%p)->()\n",This);
    116117
    117         return E_NOTIMPL;
     118    return E_NOTIMPL;
    118119}
    119120
     
    121122IBasicAudio_fnput_Balance(IBasicAudio* iface,long lBalance)
    122123{
    123         CFilterGraph_THIS(iface,basaud);
     124    CFilterGraph_THIS(iface,basaud);
    124125
    125         FIXME("(%p)->()\n",This);
     126    FIXME("(%p)->()\n",This);
    126127
    127         return E_NOTIMPL;
     128    return E_NOTIMPL;
    128129}
    129130
     
    131132IBasicAudio_fnget_Balance(IBasicAudio* iface,long* plBalance)
    132133{
    133         CFilterGraph_THIS(iface,basaud);
     134    CFilterGraph_THIS(iface,basaud);
    134135
    135         FIXME("(%p)->()\n",This);
     136    FIXME("(%p)->()\n",This);
    136137
    137         return E_NOTIMPL;
     138    return E_NOTIMPL;
    138139}
    139140
     
    141142static ICOM_VTABLE(IBasicAudio) ibasicaudio =
    142143{
    143         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    144         /* IUnknown fields */
    145         IBasicAudio_fnQueryInterface,
    146         IBasicAudio_fnAddRef,
    147         IBasicAudio_fnRelease,
    148         /* IDispatch fields */
    149         IBasicAudio_fnGetTypeInfoCount,
    150         IBasicAudio_fnGetTypeInfo,
    151         IBasicAudio_fnGetIDsOfNames,
    152         IBasicAudio_fnInvoke,
    153         /* IBasicAudio fields */
    154         IBasicAudio_fnput_Volume,
    155         IBasicAudio_fnget_Volume,
    156         IBasicAudio_fnput_Balance,
    157         IBasicAudio_fnget_Balance,
     144    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     145    /* IUnknown fields */
     146    IBasicAudio_fnQueryInterface,
     147    IBasicAudio_fnAddRef,
     148    IBasicAudio_fnRelease,
     149    /* IDispatch fields */
     150    IBasicAudio_fnGetTypeInfoCount,
     151    IBasicAudio_fnGetTypeInfo,
     152    IBasicAudio_fnGetIDsOfNames,
     153    IBasicAudio_fnInvoke,
     154    /* IBasicAudio fields */
     155    IBasicAudio_fnput_Volume,
     156    IBasicAudio_fnget_Volume,
     157    IBasicAudio_fnput_Balance,
     158    IBasicAudio_fnget_Balance,
    158159};
    159160
     
    161162void CFilterGraph_InitIBasicAudio( CFilterGraph* pfg )
    162163{
    163         TRACE("(%p)\n",pfg);
    164         ICOM_VTBL(&pfg->basaud) = &ibasicaudio;
     164    TRACE("(%p)\n",pfg);
     165    ICOM_VTBL(&pfg->basaud) = &ibasicaudio;
    165166}
    166167
  • trunk/src/quartz/ibasvid.c

    r6578 r6649  
     1/* $Id: ibasvid.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */
    12/*
    23 * Implementation of IBasicVideo2 for FilterGraph.
     
    2930IBasicVideo2_fnQueryInterface(IBasicVideo2* iface,REFIID riid,void** ppobj)
    3031{
    31         CFilterGraph_THIS(iface,basvid);
    32 
    33         TRACE("(%p)->()\n",This);
    34 
    35         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     32    CFilterGraph_THIS(iface,basvid);
     33
     34    TRACE("(%p)->()\n",This);
     35
     36    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3637}
    3738
     
    3940IBasicVideo2_fnAddRef(IBasicVideo2* iface)
    4041{
    41         CFilterGraph_THIS(iface,basvid);
    42 
    43         TRACE("(%p)->()\n",This);
    44 
    45         return IUnknown_AddRef(This->unk.punkControl);
     42    CFilterGraph_THIS(iface,basvid);
     43
     44    TRACE("(%p)->()\n",This);
     45
     46    return IUnknown_AddRef(This->unk.punkControl);
    4647}
    4748
     
    4950IBasicVideo2_fnRelease(IBasicVideo2* iface)
    5051{
    51         CFilterGraph_THIS(iface,basvid);
    52 
    53         TRACE("(%p)->()\n",This);
    54 
    55         return IUnknown_Release(This->unk.punkControl);
     52    CFilterGraph_THIS(iface,basvid);
     53
     54    TRACE("(%p)->()\n",This);
     55
     56    return IUnknown_Release(This->unk.punkControl);
    5657}
    5758
     
    5960IBasicVideo2_fnGetTypeInfoCount(IBasicVideo2* iface,UINT* pcTypeInfo)
    6061{
    61         CFilterGraph_THIS(iface,basvid);
    62 
    63         FIXME("(%p)->()\n",This);
    64 
    65         return E_NOTIMPL;
     62    CFilterGraph_THIS(iface,basvid);
     63
     64    FIXME("(%p)->()\n",This);
     65
     66    return E_NOTIMPL;
    6667}
    6768
     
    6970IBasicVideo2_fnGetTypeInfo(IBasicVideo2* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7071{
    71         CFilterGraph_THIS(iface,basvid);
    72 
    73         FIXME("(%p)->()\n",This);
    74 
    75         return E_NOTIMPL;
     72    CFilterGraph_THIS(iface,basvid);
     73
     74    FIXME("(%p)->()\n",This);
     75
     76    return E_NOTIMPL;
    7677}
    7778
     
    7980IBasicVideo2_fnGetIDsOfNames(IBasicVideo2* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8081{
    81         CFilterGraph_THIS(iface,basvid);
    82 
    83         FIXME("(%p)->()\n",This);
    84 
    85         return E_NOTIMPL;
     82    CFilterGraph_THIS(iface,basvid);
     83
     84    FIXME("(%p)->()\n",This);
     85
     86    return E_NOTIMPL;
    8687}
    8788
     
    8990IBasicVideo2_fnInvoke(IBasicVideo2* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9091{
    91         CFilterGraph_THIS(iface,basvid);
    92 
    93         FIXME("(%p)->()\n",This);
    94 
    95         return E_NOTIMPL;
     92    CFilterGraph_THIS(iface,basvid);
     93
     94    FIXME("(%p)->()\n",This);
     95
     96    return E_NOTIMPL;
    9697}
    9798
     
    100101IBasicVideo2_fnget_AvgTimePerFrame(IBasicVideo2* iface,REFTIME* prefTime)
    101102{
    102         CFilterGraph_THIS(iface,basvid);
    103 
    104         FIXME("(%p)->()\n",This);
    105 
    106         return E_NOTIMPL;
     103    CFilterGraph_THIS(iface,basvid);
     104
     105    FIXME("(%p)->()\n",This);
     106
     107    return E_NOTIMPL;
    107108}
    108109
     
    110111IBasicVideo2_fnget_BitRate(IBasicVideo2* iface,long* plRate)
    111112{
    112         CFilterGraph_THIS(iface,basvid);
    113 
    114         FIXME("(%p)->()\n",This);
    115 
    116         return E_NOTIMPL;
     113    CFilterGraph_THIS(iface,basvid);
     114
     115    FIXME("(%p)->()\n",This);
     116
     117    return E_NOTIMPL;
    117118}
    118119
     
    120121IBasicVideo2_fnget_BitErrorRate(IBasicVideo2* iface,long* plRate)
    121122{
    122         CFilterGraph_THIS(iface,basvid);
    123 
    124         FIXME("(%p)->()\n",This);
    125 
    126         return E_NOTIMPL;
     123    CFilterGraph_THIS(iface,basvid);
     124
     125    FIXME("(%p)->()\n",This);
     126
     127    return E_NOTIMPL;
    127128}
    128129
     
    130131IBasicVideo2_fnget_VideoWidth(IBasicVideo2* iface,long* plWidth)
    131132{
    132         CFilterGraph_THIS(iface,basvid);
    133 
    134         FIXME("(%p)->()\n",This);
    135 
    136         return E_NOTIMPL;
     133    CFilterGraph_THIS(iface,basvid);
     134
     135    FIXME("(%p)->()\n",This);
     136
     137    return E_NOTIMPL;
    137138}
    138139
     
    140141IBasicVideo2_fnget_VideoHeight(IBasicVideo2* iface,long* plHeight)
    141142{
    142         CFilterGraph_THIS(iface,basvid);
    143 
    144         FIXME("(%p)->()\n",This);
    145 
    146         return E_NOTIMPL;
     143    CFilterGraph_THIS(iface,basvid);
     144
     145    FIXME("(%p)->()\n",This);
     146
     147    return E_NOTIMPL;
    147148}
    148149
     
    150151IBasicVideo2_fnput_SourceLeft(IBasicVideo2* iface,long lLeft)
    151152{
    152         CFilterGraph_THIS(iface,basvid);
    153 
    154         FIXME("(%p)->()\n",This);
    155 
    156         return E_NOTIMPL;
     153    CFilterGraph_THIS(iface,basvid);
     154
     155    FIXME("(%p)->()\n",This);
     156
     157    return E_NOTIMPL;
    157158}
    158159
     
    160161IBasicVideo2_fnget_SourceLeft(IBasicVideo2* iface,long* plLeft)
    161162{
    162         CFilterGraph_THIS(iface,basvid);
    163 
    164         FIXME("(%p)->()\n",This);
    165 
    166         return E_NOTIMPL;
     163    CFilterGraph_THIS(iface,basvid);
     164
     165    FIXME("(%p)->()\n",This);
     166
     167    return E_NOTIMPL;
    167168}
    168169
     
    170171IBasicVideo2_fnput_SourceWidth(IBasicVideo2* iface,long lWidth)
    171172{
    172         CFilterGraph_THIS(iface,basvid);
    173 
    174         FIXME("(%p)->()\n",This);
    175 
    176         return E_NOTIMPL;
     173    CFilterGraph_THIS(iface,basvid);
     174
     175    FIXME("(%p)->()\n",This);
     176
     177    return E_NOTIMPL;
    177178}
    178179
     
    180181IBasicVideo2_fnget_SourceWidth(IBasicVideo2* iface,long* plWidth)
    181182{
    182         CFilterGraph_THIS(iface,basvid);
    183 
    184         FIXME("(%p)->()\n",This);
    185 
    186         return E_NOTIMPL;
     183    CFilterGraph_THIS(iface,basvid);
     184
     185    FIXME("(%p)->()\n",This);
     186
     187    return E_NOTIMPL;
    187188}
    188189
     
    190191IBasicVideo2_fnput_SourceTop(IBasicVideo2* iface,long lTop)
    191192{
    192         CFilterGraph_THIS(iface,basvid);
    193 
    194         FIXME("(%p)->()\n",This);
    195 
    196         return E_NOTIMPL;
     193    CFilterGraph_THIS(iface,basvid);
     194
     195    FIXME("(%p)->()\n",This);
     196
     197    return E_NOTIMPL;
    197198}
    198199
     
    200201IBasicVideo2_fnget_SourceTop(IBasicVideo2* iface,long* plTop)
    201202{
    202         CFilterGraph_THIS(iface,basvid);
    203 
    204         FIXME("(%p)->()\n",This);
    205 
    206         return E_NOTIMPL;
     203    CFilterGraph_THIS(iface,basvid);
     204
     205    FIXME("(%p)->()\n",This);
     206
     207    return E_NOTIMPL;
    207208}
    208209
     
    210211IBasicVideo2_fnput_SourceHeight(IBasicVideo2* iface,long lHeight)
    211212{
    212         CFilterGraph_THIS(iface,basvid);
    213 
    214         FIXME("(%p)->()\n",This);
    215 
    216         return E_NOTIMPL;
     213    CFilterGraph_THIS(iface,basvid);
     214
     215    FIXME("(%p)->()\n",This);
     216
     217    return E_NOTIMPL;
    217218}
    218219
     
    220221IBasicVideo2_fnget_SourceHeight(IBasicVideo2* iface,long* plHeight)
    221222{
    222         CFilterGraph_THIS(iface,basvid);
    223 
    224         FIXME("(%p)->()\n",This);
    225 
    226         return E_NOTIMPL;
     223    CFilterGraph_THIS(iface,basvid);
     224
     225    FIXME("(%p)->()\n",This);
     226
     227    return E_NOTIMPL;
    227228}
    228229
     
    230231IBasicVideo2_fnput_DestinationLeft(IBasicVideo2* iface,long lLeft)
    231232{
    232         CFilterGraph_THIS(iface,basvid);
    233 
    234         FIXME("(%p)->()\n",This);
    235 
    236         return E_NOTIMPL;
     233    CFilterGraph_THIS(iface,basvid);
     234
     235    FIXME("(%p)->()\n",This);
     236
     237    return E_NOTIMPL;
    237238}
    238239
     
    240241IBasicVideo2_fnget_DestinationLeft(IBasicVideo2* iface,long* plLeft)
    241242{
    242         CFilterGraph_THIS(iface,basvid);
    243 
    244         FIXME("(%p)->()\n",This);
    245 
    246         return E_NOTIMPL;
     243    CFilterGraph_THIS(iface,basvid);
     244
     245    FIXME("(%p)->()\n",This);
     246
     247    return E_NOTIMPL;
    247248}
    248249
     
    250251IBasicVideo2_fnput_DestinationWidth(IBasicVideo2* iface,long lWidth)
    251252{
    252         CFilterGraph_THIS(iface,basvid);
    253 
    254         FIXME("(%p)->()\n",This);
    255 
    256         return E_NOTIMPL;
     253    CFilterGraph_THIS(iface,basvid);
     254
     255    FIXME("(%p)->()\n",This);
     256
     257    return E_NOTIMPL;
    257258}
    258259
     
    260261IBasicVideo2_fnget_DestinationWidth(IBasicVideo2* iface,long* plWidth)
    261262{
    262         CFilterGraph_THIS(iface,basvid);
    263 
    264         FIXME("(%p)->()\n",This);
    265 
    266         return E_NOTIMPL;
     263    CFilterGraph_THIS(iface,basvid);
     264
     265    FIXME("(%p)->()\n",This);
     266
     267    return E_NOTIMPL;
    267268}
    268269
     
    270271IBasicVideo2_fnput_DestinationTop(IBasicVideo2* iface,long lTop)
    271272{
    272         CFilterGraph_THIS(iface,basvid);
    273 
    274         FIXME("(%p)->()\n",This);
    275 
    276         return E_NOTIMPL;
     273    CFilterGraph_THIS(iface,basvid);
     274
     275    FIXME("(%p)->()\n",This);
     276
     277    return E_NOTIMPL;
    277278}
    278279
     
    280281IBasicVideo2_fnget_DestinationTop(IBasicVideo2* iface,long* plTop)
    281282{
    282         CFilterGraph_THIS(iface,basvid);
    283 
    284         FIXME("(%p)->()\n",This);
    285 
    286         return E_NOTIMPL;
     283    CFilterGraph_THIS(iface,basvid);
     284
     285    FIXME("(%p)->()\n",This);
     286
     287    return E_NOTIMPL;
    287288}
    288289
     
    290291IBasicVideo2_fnput_DestinationHeight(IBasicVideo2* iface,long lHeight)
    291292{
    292         CFilterGraph_THIS(iface,basvid);
    293 
    294         FIXME("(%p)->()\n",This);
    295 
    296         return E_NOTIMPL;
     293    CFilterGraph_THIS(iface,basvid);
     294
     295    FIXME("(%p)->()\n",This);
     296
     297    return E_NOTIMPL;
    297298}
    298299
     
    300301IBasicVideo2_fnget_DestinationHeight(IBasicVideo2* iface,long* plHeight)
    301302{
    302         CFilterGraph_THIS(iface,basvid);
    303 
    304         FIXME("(%p)->()\n",This);
    305 
    306         return E_NOTIMPL;
     303    CFilterGraph_THIS(iface,basvid);
     304
     305    FIXME("(%p)->()\n",This);
     306
     307    return E_NOTIMPL;
    307308}
    308309
     
    310311IBasicVideo2_fnSetSourcePosition(IBasicVideo2* iface,long lLeft,long lTop,long lWidth,long lHeight)
    311312{
    312         CFilterGraph_THIS(iface,basvid);
    313 
    314         FIXME("(%p)->()\n",This);
    315 
    316         return E_NOTIMPL;
     313    CFilterGraph_THIS(iface,basvid);
     314
     315    FIXME("(%p)->()\n",This);
     316
     317    return E_NOTIMPL;
    317318}
    318319
     
    320321IBasicVideo2_fnGetSourcePosition(IBasicVideo2* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
    321322{
    322         CFilterGraph_THIS(iface,basvid);
    323 
    324         FIXME("(%p)->()\n",This);
    325 
    326         return E_NOTIMPL;
     323    CFilterGraph_THIS(iface,basvid);
     324
     325    FIXME("(%p)->()\n",This);
     326
     327    return E_NOTIMPL;
    327328}
    328329
     
    330331IBasicVideo2_fnSetDefaultSourcePosition(IBasicVideo2* iface)
    331332{
    332         CFilterGraph_THIS(iface,basvid);
    333 
    334         FIXME("(%p)->()\n",This);
    335 
    336         return E_NOTIMPL;
     333    CFilterGraph_THIS(iface,basvid);
     334
     335    FIXME("(%p)->()\n",This);
     336
     337    return E_NOTIMPL;
    337338}
    338339
     
    340341IBasicVideo2_fnSetDestinationPosition(IBasicVideo2* iface,long lLeft,long lTop,long lWidth,long lHeight)
    341342{
    342         CFilterGraph_THIS(iface,basvid);
    343 
    344         FIXME("(%p)->()\n",This);
    345 
    346         return E_NOTIMPL;
     343    CFilterGraph_THIS(iface,basvid);
     344
     345    FIXME("(%p)->()\n",This);
     346
     347    return E_NOTIMPL;
    347348}
    348349
     
    350351IBasicVideo2_fnGetDestinationPosition(IBasicVideo2* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
    351352{
    352         CFilterGraph_THIS(iface,basvid);
    353 
    354         FIXME("(%p)->()\n",This);
    355 
    356         return E_NOTIMPL;
     353    CFilterGraph_THIS(iface,basvid);
     354
     355    FIXME("(%p)->()\n",This);
     356
     357    return E_NOTIMPL;
    357358}
    358359
     
    360361IBasicVideo2_fnSetDefaultDestinationPosition(IBasicVideo2* iface)
    361362{
    362         CFilterGraph_THIS(iface,basvid);
    363 
    364         FIXME("(%p)->()\n",This);
    365 
    366         return E_NOTIMPL;
     363    CFilterGraph_THIS(iface,basvid);
     364
     365    FIXME("(%p)->()\n",This);
     366
     367    return E_NOTIMPL;
    367368}
    368369
     
    370371IBasicVideo2_fnGetVideoSize(IBasicVideo2* iface,long* plWidth,long* plHeight)
    371372{
    372         CFilterGraph_THIS(iface,basvid);
    373 
    374         FIXME("(%p)->()\n",This);
    375 
    376         return E_NOTIMPL;
     373    CFilterGraph_THIS(iface,basvid);
     374
     375    FIXME("(%p)->()\n",This);
     376
     377    return E_NOTIMPL;
    377378}
    378379
     
    380381IBasicVideo2_fnGetVideoPaletteEntries(IBasicVideo2* iface,long lStart,long lCount,long* plRet,long* plPaletteEntry)
    381382{
    382         CFilterGraph_THIS(iface,basvid);
    383 
    384         FIXME("(%p)->()\n",This);
    385 
    386         return E_NOTIMPL;
     383    CFilterGraph_THIS(iface,basvid);
     384
     385    FIXME("(%p)->()\n",This);
     386
     387    return E_NOTIMPL;
    387388}
    388389
     
    390391IBasicVideo2_fnGetCurrentImage(IBasicVideo2* iface,long* plBufferSize,long* plDIBBuffer)
    391392{
    392         CFilterGraph_THIS(iface,basvid);
    393 
    394         FIXME("(%p)->()\n",This);
    395 
    396         return E_NOTIMPL;
     393    CFilterGraph_THIS(iface,basvid);
     394
     395    FIXME("(%p)->()\n",This);
     396
     397    return E_NOTIMPL;
    397398}
    398399
     
    400401IBasicVideo2_fnIsUsingDefaultSource(IBasicVideo2* iface)
    401402{
    402         CFilterGraph_THIS(iface,basvid);
    403 
    404         FIXME("(%p)->()\n",This);
    405 
    406         return E_NOTIMPL;
     403    CFilterGraph_THIS(iface,basvid);
     404
     405    FIXME("(%p)->()\n",This);
     406
     407    return E_NOTIMPL;
    407408}
    408409
     
    410411IBasicVideo2_fnIsUsingDefaultDestination(IBasicVideo2* iface)
    411412{
    412         CFilterGraph_THIS(iface,basvid);
    413 
    414         FIXME("(%p)->()\n",This);
    415 
    416         return E_NOTIMPL;
     413    CFilterGraph_THIS(iface,basvid);
     414
     415    FIXME("(%p)->()\n",This);
     416
     417    return E_NOTIMPL;
    417418}
    418419
     
    420421IBasicVideo2_fnGetPreferredAspectRatio(IBasicVideo2* iface,long* plRateX,long* plRateY)
    421422{
    422         CFilterGraph_THIS(iface,basvid);
    423 
    424         FIXME("(%p)->()\n",This);
    425 
    426         return E_NOTIMPL;
     423    CFilterGraph_THIS(iface,basvid);
     424
     425    FIXME("(%p)->()\n",This);
     426
     427    return E_NOTIMPL;
    427428}
    428429
     
    432433static ICOM_VTABLE(IBasicVideo2) ibasicvideo =
    433434{
    434         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    435         /* IUnknown fields */
    436         IBasicVideo2_fnQueryInterface,
    437         IBasicVideo2_fnAddRef,
    438         IBasicVideo2_fnRelease,
    439         /* IDispatch fields */
    440         IBasicVideo2_fnGetTypeInfoCount,
    441         IBasicVideo2_fnGetTypeInfo,
    442         IBasicVideo2_fnGetIDsOfNames,
    443         IBasicVideo2_fnInvoke,
    444         /* IBasicVideo fields */
    445         IBasicVideo2_fnget_AvgTimePerFrame,
    446         IBasicVideo2_fnget_BitRate,
    447         IBasicVideo2_fnget_BitErrorRate,
    448         IBasicVideo2_fnget_VideoWidth,
    449         IBasicVideo2_fnget_VideoHeight,
    450         IBasicVideo2_fnput_SourceLeft,
    451         IBasicVideo2_fnget_SourceLeft,
    452         IBasicVideo2_fnput_SourceWidth,
    453         IBasicVideo2_fnget_SourceWidth,
    454         IBasicVideo2_fnput_SourceTop,
    455         IBasicVideo2_fnget_SourceTop,
    456         IBasicVideo2_fnput_SourceHeight,
    457         IBasicVideo2_fnget_SourceHeight,
    458         IBasicVideo2_fnput_DestinationLeft,
    459         IBasicVideo2_fnget_DestinationLeft,
    460         IBasicVideo2_fnput_DestinationWidth,
    461         IBasicVideo2_fnget_DestinationWidth,
    462         IBasicVideo2_fnput_DestinationTop,
    463         IBasicVideo2_fnget_DestinationTop,
    464         IBasicVideo2_fnput_DestinationHeight,
    465         IBasicVideo2_fnget_DestinationHeight,
    466         IBasicVideo2_fnSetSourcePosition,
    467         IBasicVideo2_fnGetSourcePosition,
    468         IBasicVideo2_fnSetDefaultSourcePosition,
    469         IBasicVideo2_fnSetDestinationPosition,
    470         IBasicVideo2_fnGetDestinationPosition,
    471         IBasicVideo2_fnSetDefaultDestinationPosition,
    472         IBasicVideo2_fnGetVideoSize,
    473         IBasicVideo2_fnGetVideoPaletteEntries,
    474         IBasicVideo2_fnGetCurrentImage,
    475         IBasicVideo2_fnIsUsingDefaultSource,
    476         IBasicVideo2_fnIsUsingDefaultDestination,
    477         /* IBasicVideo2 fields */
    478         IBasicVideo2_fnGetPreferredAspectRatio,
     435    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     436    /* IUnknown fields */
     437    IBasicVideo2_fnQueryInterface,
     438    IBasicVideo2_fnAddRef,
     439    IBasicVideo2_fnRelease,
     440    /* IDispatch fields */
     441    IBasicVideo2_fnGetTypeInfoCount,
     442    IBasicVideo2_fnGetTypeInfo,
     443    IBasicVideo2_fnGetIDsOfNames,
     444    IBasicVideo2_fnInvoke,
     445    /* IBasicVideo fields */
     446    IBasicVideo2_fnget_AvgTimePerFrame,
     447    IBasicVideo2_fnget_BitRate,
     448    IBasicVideo2_fnget_BitErrorRate,
     449    IBasicVideo2_fnget_VideoWidth,
     450    IBasicVideo2_fnget_VideoHeight,
     451    IBasicVideo2_fnput_SourceLeft,
     452    IBasicVideo2_fnget_SourceLeft,
     453    IBasicVideo2_fnput_SourceWidth,
     454    IBasicVideo2_fnget_SourceWidth,
     455    IBasicVideo2_fnput_SourceTop,
     456    IBasicVideo2_fnget_SourceTop,
     457    IBasicVideo2_fnput_SourceHeight,
     458    IBasicVideo2_fnget_SourceHeight,
     459    IBasicVideo2_fnput_DestinationLeft,
     460    IBasicVideo2_fnget_DestinationLeft,
     461    IBasicVideo2_fnput_DestinationWidth,
     462    IBasicVideo2_fnget_DestinationWidth,
     463    IBasicVideo2_fnput_DestinationTop,
     464    IBasicVideo2_fnget_DestinationTop,
     465    IBasicVideo2_fnput_DestinationHeight,
     466    IBasicVideo2_fnget_DestinationHeight,
     467    IBasicVideo2_fnSetSourcePosition,
     468    IBasicVideo2_fnGetSourcePosition,
     469    IBasicVideo2_fnSetDefaultSourcePosition,
     470    IBasicVideo2_fnSetDestinationPosition,
     471    IBasicVideo2_fnGetDestinationPosition,
     472    IBasicVideo2_fnSetDefaultDestinationPosition,
     473    IBasicVideo2_fnGetVideoSize,
     474    IBasicVideo2_fnGetVideoPaletteEntries,
     475    IBasicVideo2_fnGetCurrentImage,
     476    IBasicVideo2_fnIsUsingDefaultSource,
     477    IBasicVideo2_fnIsUsingDefaultDestination,
     478    /* IBasicVideo2 fields */
     479    IBasicVideo2_fnGetPreferredAspectRatio,
    479480};
    480481
     
    482483void CFilterGraph_InitIBasicVideo2( CFilterGraph* pfg )
    483484{
    484         TRACE("(%p)\n",pfg);
    485         ICOM_VTBL(&pfg->basvid) = &ibasicvideo;
    486 }
    487 
     485    TRACE("(%p)\n",pfg);
     486    ICOM_VTBL(&pfg->basvid) = &ibasicvideo;
     487}
     488
  • trunk/src/quartz/ifgraph.c

    r6578 r6649  
     1/* $Id: ifgraph.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */
    12/*
    23 * Implementation of IFilterGraph.
     
    2930IFilterGraph2_fnQueryInterface(IFilterGraph2* iface,REFIID riid,void** ppobj)
    3031{
    31         CFilterGraph_THIS(iface,fgraph);
    32 
    33         TRACE("(%p)->()\n",This);
    34 
    35         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     32    CFilterGraph_THIS(iface,fgraph);
     33
     34    TRACE("(%p)->()\n",This);
     35
     36    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3637}
    3738
     
    3940IFilterGraph2_fnAddRef(IFilterGraph2* iface)
    4041{
    41         CFilterGraph_THIS(iface,fgraph);
    42 
    43         TRACE("(%p)->()\n",This);
    44 
    45         return IUnknown_AddRef(This->unk.punkControl);
     42    CFilterGraph_THIS(iface,fgraph);
     43
     44    TRACE("(%p)->()\n",This);
     45
     46    return IUnknown_AddRef(This->unk.punkControl);
    4647}
    4748
     
    4950IFilterGraph2_fnRelease(IFilterGraph2* iface)
    5051{
    51         CFilterGraph_THIS(iface,fgraph);
    52 
    53         TRACE("(%p)->()\n",This);
    54 
    55         return IUnknown_Release(This->unk.punkControl);
     52    CFilterGraph_THIS(iface,fgraph);
     53
     54    TRACE("(%p)->()\n",This);
     55
     56    return IUnknown_Release(This->unk.punkControl);
    5657}
    5758
     
    5960IFilterGraph2_fnAddFilter(IFilterGraph2* iface,IBaseFilter* pFilter, LPCWSTR pName)
    6061{
    61         CFilterGraph_THIS(iface,fgraph);
    62 
    63         FIXME( "(%p)->() stub!\n", This );
    64         return E_NOTIMPL;
     62    CFilterGraph_THIS(iface,fgraph);
     63
     64    FIXME( "(%p)->() stub!\n", This );
     65    return E_NOTIMPL;
    6566}
    6667
     
    6869IFilterGraph2_fnRemoveFilter(IFilterGraph2* iface,IBaseFilter* pFilter)
    6970{
    70         CFilterGraph_THIS(iface,fgraph);
    71 
    72         FIXME( "(%p)->() stub!\n", This );
    73         return E_NOTIMPL;
     71    CFilterGraph_THIS(iface,fgraph);
     72
     73    FIXME( "(%p)->() stub!\n", This );
     74    return E_NOTIMPL;
    7475}
    7576
     
    7778IFilterGraph2_fnEnumFilters(IFilterGraph2* iface,IEnumFilters** ppEnum)
    7879{
    79         CFilterGraph_THIS(iface,fgraph);
    80 
    81         FIXME( "(%p)->() stub!\n", This );
    82         return E_NOTIMPL;
     80    CFilterGraph_THIS(iface,fgraph);
     81
     82    FIXME( "(%p)->() stub!\n", This );
     83    return E_NOTIMPL;
    8384}
    8485
     
    8687IFilterGraph2_fnFindFilterByName(IFilterGraph2* iface,LPCWSTR pName,IBaseFilter** ppFilter)
    8788{
    88         CFilterGraph_THIS(iface,fgraph);
    89 
    90         FIXME( "(%p)->() stub!\n", This );
    91         return E_NOTIMPL;
     89    CFilterGraph_THIS(iface,fgraph);
     90
     91    FIXME( "(%p)->() stub!\n", This );
     92    return E_NOTIMPL;
    9293}
    9394
     
    9596IFilterGraph2_fnConnectDirect(IFilterGraph2* iface,IPin* pOut,IPin* pIn,const AM_MEDIA_TYPE* pmt)
    9697{
    97         CFilterGraph_THIS(iface,fgraph);
    98 
    99         FIXME( "(%p)->() stub!\n", This );
    100         return E_NOTIMPL;
     98    CFilterGraph_THIS(iface,fgraph);
     99
     100    FIXME( "(%p)->() stub!\n", This );
     101    return E_NOTIMPL;
    101102}
    102103
     
    104105IFilterGraph2_fnReconnect(IFilterGraph2* iface,IPin* pPin)
    105106{
    106         CFilterGraph_THIS(iface,fgraph);
    107 
    108         FIXME( "(%p)->() stub!\n", This );
    109         return E_NOTIMPL;
     107    CFilterGraph_THIS(iface,fgraph);
     108
     109    FIXME( "(%p)->() stub!\n", This );
     110    return E_NOTIMPL;
    110111}
    111112
     
    113114IFilterGraph2_fnDisconnect(IFilterGraph2* iface,IPin* pPin)
    114115{
    115         CFilterGraph_THIS(iface,fgraph);
    116 
    117         FIXME( "(%p)->() stub!\n", This );
    118         return E_NOTIMPL;
     116    CFilterGraph_THIS(iface,fgraph);
     117
     118    FIXME( "(%p)->() stub!\n", This );
     119    return E_NOTIMPL;
    119120}
    120121
     
    122123IFilterGraph2_fnSetDefaultSyncSource(IFilterGraph2* iface)
    123124{
    124         CFilterGraph_THIS(iface,fgraph);
    125 
    126         FIXME( "(%p)->() stub!\n", This );
    127         return E_NOTIMPL;
     125    CFilterGraph_THIS(iface,fgraph);
     126
     127    FIXME( "(%p)->() stub!\n", This );
     128    return E_NOTIMPL;
    128129}
    129130
     
    131132IFilterGraph2_fnConnect(IFilterGraph2* iface,IPin* pOut,IPin* pIn)
    132133{
    133         CFilterGraph_THIS(iface,fgraph);
    134 
    135         FIXME( "(%p)->() stub!\n", This );
    136         return E_NOTIMPL;
     134    CFilterGraph_THIS(iface,fgraph);
     135
     136    FIXME( "(%p)->() stub!\n", This );
     137    return E_NOTIMPL;
    137138}
    138139
     
    140141IFilterGraph2_fnRender(IFilterGraph2* iface,IPin* pOut)
    141142{
    142         CFilterGraph_THIS(iface,fgraph);
    143 
    144         FIXME( "(%p)->() stub!\n", This );
    145         return E_NOTIMPL;
     143    CFilterGraph_THIS(iface,fgraph);
     144
     145    FIXME( "(%p)->() stub!\n", This );
     146    return E_NOTIMPL;
    146147}
    147148
     
    149150IFilterGraph2_fnRenderFile(IFilterGraph2* iface,LPCWSTR lpFileName,LPCWSTR lpPlayList)
    150151{
    151         CFilterGraph_THIS(iface,fgraph);
    152 
    153         FIXME( "(%p)->() stub!\n", This );
    154         return E_NOTIMPL;
     152    CFilterGraph_THIS(iface,fgraph);
     153
     154    FIXME( "(%p)->() stub!\n", This );
     155    return E_NOTIMPL;
    155156}
    156157
     
    158159IFilterGraph2_fnAddSourceFilter(IFilterGraph2* iface,LPCWSTR lpFileName,LPCWSTR lpFilterName,IBaseFilter** ppBaseFilter)
    159160{
    160         CFilterGraph_THIS(iface,fgraph);
    161 
    162         FIXME( "(%p)->() stub!\n", This );
    163         return E_NOTIMPL;
     161    CFilterGraph_THIS(iface,fgraph);
     162
     163    FIXME( "(%p)->() stub!\n", This );
     164    return E_NOTIMPL;
    164165}
    165166
     
    167168IFilterGraph2_fnSetLogFile(IFilterGraph2* iface,DWORD_PTR hFile)
    168169{
    169         CFilterGraph_THIS(iface,fgraph);
    170 
    171         FIXME( "(%p)->() stub!\n", This );
    172         return E_NOTIMPL;
     170    CFilterGraph_THIS(iface,fgraph);
     171
     172    FIXME( "(%p)->() stub!\n", This );
     173    return E_NOTIMPL;
    173174}
    174175
     
    176177IFilterGraph2_fnAbort(IFilterGraph2* iface)
    177178{
    178         CFilterGraph_THIS(iface,fgraph);
    179 
    180         /* undoc. */
    181 
    182         FIXME( "(%p)->() stub!\n", This );
    183         return E_NOTIMPL;
     179    CFilterGraph_THIS(iface,fgraph);
     180
     181    /* undoc. */
     182
     183    FIXME( "(%p)->() stub!\n", This );
     184    return E_NOTIMPL;
    184185}
    185186
     
    187188IFilterGraph2_fnShouldOperationContinue(IFilterGraph2* iface)
    188189{
    189         CFilterGraph_THIS(iface,fgraph);
    190 
    191         /* undoc. */
    192 
    193         FIXME( "(%p)->() stub!\n", This );
    194         return E_NOTIMPL;
     190    CFilterGraph_THIS(iface,fgraph);
     191
     192    /* undoc. */
     193
     194    FIXME( "(%p)->() stub!\n", This );
     195    return E_NOTIMPL;
    195196}
    196197
     
    198199IFilterGraph2_fnAddSourceFilterForMoniker(IFilterGraph2* iface,IMoniker* pMon,IBindCtx* pCtx,LPCWSTR pFilterName,IBaseFilter** ppFilter)
    199200{
    200         CFilterGraph_THIS(iface,fgraph);
    201 
    202         FIXME( "(%p)->() stub!\n", This );
    203         return E_NOTIMPL;
     201    CFilterGraph_THIS(iface,fgraph);
     202
     203    FIXME( "(%p)->() stub!\n", This );
     204    return E_NOTIMPL;
    204205}
    205206
     
    207208IFilterGraph2_fnReconnectEx(IFilterGraph2* iface,IPin* pPin,const AM_MEDIA_TYPE* pmt)
    208209{
    209         CFilterGraph_THIS(iface,fgraph);
    210 
    211         FIXME( "(%p)->() stub!\n", This );
    212         return E_NOTIMPL;
     210    CFilterGraph_THIS(iface,fgraph);
     211
     212    FIXME( "(%p)->() stub!\n", This );
     213    return E_NOTIMPL;
    213214}
    214215
     
    216217IFilterGraph2_fnRenderEx(IFilterGraph2* iface,IPin* pPin,DWORD dwParam1,DWORD* pdwParam2)
    217218{
    218         CFilterGraph_THIS(iface,fgraph);
    219 
    220         /* undoc. */
    221         FIXME( "(%p)->() stub!\n", This );
    222         return E_NOTIMPL;
     219    CFilterGraph_THIS(iface,fgraph);
     220
     221    /* undoc. */
     222    FIXME( "(%p)->() stub!\n", This );
     223    return E_NOTIMPL;
    223224}
    224225
     
    228229static ICOM_VTABLE(IFilterGraph2) ifgraph =
    229230{
    230         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    231         /* IUnknown fields */
    232         IFilterGraph2_fnQueryInterface,
    233         IFilterGraph2_fnAddRef,
    234         IFilterGraph2_fnRelease,
    235         /* IFilterGraph fields */
    236         IFilterGraph2_fnAddFilter,
    237         IFilterGraph2_fnRemoveFilter,
    238         IFilterGraph2_fnEnumFilters,
    239         IFilterGraph2_fnFindFilterByName,
    240         IFilterGraph2_fnConnectDirect,
    241         IFilterGraph2_fnReconnect,
    242         IFilterGraph2_fnDisconnect,
    243         IFilterGraph2_fnSetDefaultSyncSource,
    244         /* IGraphBuilder fields */
    245         IFilterGraph2_fnConnect,
    246         IFilterGraph2_fnRender,
    247         IFilterGraph2_fnRenderFile,
    248         IFilterGraph2_fnAddSourceFilter,
    249         IFilterGraph2_fnSetLogFile,
    250         IFilterGraph2_fnAbort,
    251         IFilterGraph2_fnShouldOperationContinue,
    252         /* IFilterGraph2 fields */
    253         IFilterGraph2_fnAddSourceFilterForMoniker,
    254         IFilterGraph2_fnReconnectEx,
    255         IFilterGraph2_fnRenderEx,
     231    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     232    /* IUnknown fields */
     233    IFilterGraph2_fnQueryInterface,
     234    IFilterGraph2_fnAddRef,
     235    IFilterGraph2_fnRelease,
     236    /* IFilterGraph fields */
     237    IFilterGraph2_fnAddFilter,
     238    IFilterGraph2_fnRemoveFilter,
     239    IFilterGraph2_fnEnumFilters,
     240    IFilterGraph2_fnFindFilterByName,
     241    IFilterGraph2_fnConnectDirect,
     242    IFilterGraph2_fnReconnect,
     243    IFilterGraph2_fnDisconnect,
     244    IFilterGraph2_fnSetDefaultSyncSource,
     245    /* IGraphBuilder fields */
     246    IFilterGraph2_fnConnect,
     247    IFilterGraph2_fnRender,
     248    IFilterGraph2_fnRenderFile,
     249    IFilterGraph2_fnAddSourceFilter,
     250    IFilterGraph2_fnSetLogFile,
     251    IFilterGraph2_fnAbort,
     252    IFilterGraph2_fnShouldOperationContinue,
     253    /* IFilterGraph2 fields */
     254    IFilterGraph2_fnAddSourceFilterForMoniker,
     255    IFilterGraph2_fnReconnectEx,
     256    IFilterGraph2_fnRenderEx,
    256257};
    257258
    258259void CFilterGraph_InitIFilterGraph2( CFilterGraph* pfg )
    259260{
    260         TRACE("(%p)\n",pfg);
    261         ICOM_VTBL(&pfg->fgraph) = &ifgraph;
    262 }
     261    TRACE("(%p)\n",pfg);
     262    ICOM_VTBL(&pfg->fgraph) = &ifgraph;
     263}
  • trunk/src/quartz/imcntl.c

    r6578 r6649  
     1/* $Id: imcntl.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */
    12/*
    23 * Implementation of IMediaControl for FilterGraph.
     
    3031IMediaControl_fnQueryInterface(IMediaControl* iface,REFIID riid,void** ppobj)
    3132{
    32         CFilterGraph_THIS(iface,mediacontrol);
    33 
    34         TRACE("(%p)->()\n",This);
    35 
    36         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     33    CFilterGraph_THIS(iface,mediacontrol);
     34
     35    TRACE("(%p)->()\n",This);
     36
     37    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3738}
    3839
     
    4041IMediaControl_fnAddRef(IMediaControl* iface)
    4142{
    42         CFilterGraph_THIS(iface,mediacontrol);
    43 
    44         TRACE("(%p)->()\n",This);
    45 
    46         return IUnknown_AddRef(This->unk.punkControl);
     43    CFilterGraph_THIS(iface,mediacontrol);
     44
     45    TRACE("(%p)->()\n",This);
     46
     47    return IUnknown_AddRef(This->unk.punkControl);
    4748}
    4849
     
    5051IMediaControl_fnRelease(IMediaControl* iface)
    5152{
    52         CFilterGraph_THIS(iface,mediacontrol);
    53 
    54         TRACE("(%p)->()\n",This);
    55 
    56         return IUnknown_Release(This->unk.punkControl);
     53    CFilterGraph_THIS(iface,mediacontrol);
     54
     55    TRACE("(%p)->()\n",This);
     56
     57    return IUnknown_Release(This->unk.punkControl);
    5758}
    5859
     
    6061IMediaControl_fnGetTypeInfoCount(IMediaControl* iface,UINT* pcTypeInfo)
    6162{
    62         CFilterGraph_THIS(iface,mediacontrol);
    63 
    64         FIXME("(%p)->()\n",This);
    65 
    66         return E_NOTIMPL;
     63    CFilterGraph_THIS(iface,mediacontrol);
     64
     65    FIXME("(%p)->()\n",This);
     66
     67    return E_NOTIMPL;
    6768}
    6869
     
    7071IMediaControl_fnGetTypeInfo(IMediaControl* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7172{
    72         CFilterGraph_THIS(iface,mediacontrol);
    73 
    74         FIXME("(%p)->()\n",This);
    75 
    76         return E_NOTIMPL;
     73    CFilterGraph_THIS(iface,mediacontrol);
     74
     75    FIXME("(%p)->()\n",This);
     76
     77    return E_NOTIMPL;
    7778}
    7879
     
    8081IMediaControl_fnGetIDsOfNames(IMediaControl* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8182{
    82         CFilterGraph_THIS(iface,mediacontrol);
    83 
    84         FIXME("(%p)->()\n",This);
    85 
    86         return E_NOTIMPL;
     83    CFilterGraph_THIS(iface,mediacontrol);
     84
     85    FIXME("(%p)->()\n",This);
     86
     87    return E_NOTIMPL;
    8788}
    8889
     
    9091IMediaControl_fnInvoke(IMediaControl* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9192{
    92         CFilterGraph_THIS(iface,mediacontrol);
    93 
    94         FIXME("(%p)->()\n",This);
    95 
    96         return E_NOTIMPL;
     93    CFilterGraph_THIS(iface,mediacontrol);
     94
     95    FIXME("(%p)->()\n",This);
     96
     97    return E_NOTIMPL;
    9798}
    9899
     
    101102IMediaControl_fnRun(IMediaControl* iface)
    102103{
    103         CFilterGraph_THIS(iface,mediacontrol);
    104 
    105         FIXME("(%p)->()\n",This);
    106 
    107         return E_NOTIMPL;
     104    CFilterGraph_THIS(iface,mediacontrol);
     105
     106    FIXME("(%p)->()\n",This);
     107
     108    return E_NOTIMPL;
    108109}
    109110
     
    111112IMediaControl_fnPause(IMediaControl* iface)
    112113{
    113         CFilterGraph_THIS(iface,mediacontrol);
    114 
    115         FIXME("(%p)->()\n",This);
    116 
    117         return E_NOTIMPL;
     114    CFilterGraph_THIS(iface,mediacontrol);
     115
     116    FIXME("(%p)->()\n",This);
     117
     118    return E_NOTIMPL;
    118119}
    119120
     
    121122IMediaControl_fnStop(IMediaControl* iface)
    122123{
    123         CFilterGraph_THIS(iface,mediacontrol);
    124 
    125         FIXME("(%p)->()\n",This);
    126 
    127         return E_NOTIMPL;
     124    CFilterGraph_THIS(iface,mediacontrol);
     125
     126    FIXME("(%p)->()\n",This);
     127
     128    return E_NOTIMPL;
    128129}
    129130
     
    131132IMediaControl_fnGetState(IMediaControl* iface,LONG lTimeOut,OAFilterState* pFilterState)
    132133{
    133         CFilterGraph_THIS(iface,mediacontrol);
    134 
    135         FIXME("(%p)->()\n",This);
    136 
    137         return E_NOTIMPL;
     134    CFilterGraph_THIS(iface,mediacontrol);
     135
     136    FIXME("(%p)->()\n",This);
     137
     138    return E_NOTIMPL;
    138139}
    139140
     
    141142IMediaControl_fnRenderFile(IMediaControl* iface,BSTR bstrFileName)
    142143{
    143         CFilterGraph_THIS(iface,mediacontrol);
    144 
    145         FIXME("(%p)->()\n",This);
    146 
    147         return E_NOTIMPL;
     144    CFilterGraph_THIS(iface,mediacontrol);
     145
     146    FIXME("(%p)->()\n",This);
     147
     148    return E_NOTIMPL;
    148149}
    149150
     
    151152IMediaControl_fnAddSourceFilter(IMediaControl* iface,BSTR bstrFileName,IDispatch** ppobj)
    152153{
    153         CFilterGraph_THIS(iface,mediacontrol);
    154 
    155         FIXME("(%p)->()\n",This);
    156 
    157         return E_NOTIMPL;
     154    CFilterGraph_THIS(iface,mediacontrol);
     155
     156    FIXME("(%p)->()\n",This);
     157
     158    return E_NOTIMPL;
    158159}
    159160
     
    161162IMediaControl_fnget_FilterCollection(IMediaControl* iface,IDispatch** ppobj)
    162163{
    163         CFilterGraph_THIS(iface,mediacontrol);
    164 
    165         FIXME("(%p)->()\n",This);
    166 
    167         return E_NOTIMPL;
     164    CFilterGraph_THIS(iface,mediacontrol);
     165
     166    FIXME("(%p)->()\n",This);
     167
     168    return E_NOTIMPL;
    168169}
    169170
     
    171172IMediaControl_fnget_RegFilterCollection(IMediaControl* iface,IDispatch** ppobj)
    172173{
    173         CFilterGraph_THIS(iface,mediacontrol);
    174 
    175         FIXME("(%p)->()\n",This);
    176 
    177         return E_NOTIMPL;
     174    CFilterGraph_THIS(iface,mediacontrol);
     175
     176    FIXME("(%p)->()\n",This);
     177
     178    return E_NOTIMPL;
    178179}
    179180
     
    181182IMediaControl_fnStopWhenReady(IMediaControl* iface)
    182183{
    183         CFilterGraph_THIS(iface,mediacontrol);
    184 
    185         FIXME("(%p)->()\n",This);
    186 
    187         return E_NOTIMPL;
     184    CFilterGraph_THIS(iface,mediacontrol);
     185
     186    FIXME("(%p)->()\n",This);
     187
     188    return E_NOTIMPL;
    188189}
    189190
     
    191192static ICOM_VTABLE(IMediaControl) imediacontrol =
    192193{
    193         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    194         /* IUnknown fields */
    195         IMediaControl_fnQueryInterface,
    196         IMediaControl_fnAddRef,
    197         IMediaControl_fnRelease,
    198         /* IDispatch fields */
    199         IMediaControl_fnGetTypeInfoCount,
    200         IMediaControl_fnGetTypeInfo,
    201         IMediaControl_fnGetIDsOfNames,
    202         IMediaControl_fnInvoke,
    203         /* IMediaControl fields */
    204         IMediaControl_fnRun,
    205         IMediaControl_fnPause,
    206         IMediaControl_fnStop,
    207         IMediaControl_fnGetState,
    208         IMediaControl_fnRenderFile,
    209         IMediaControl_fnAddSourceFilter,
    210         IMediaControl_fnget_FilterCollection,
    211         IMediaControl_fnget_RegFilterCollection,
    212         IMediaControl_fnStopWhenReady,
     194    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     195    /* IUnknown fields */
     196    IMediaControl_fnQueryInterface,
     197    IMediaControl_fnAddRef,
     198    IMediaControl_fnRelease,
     199    /* IDispatch fields */
     200    IMediaControl_fnGetTypeInfoCount,
     201    IMediaControl_fnGetTypeInfo,
     202    IMediaControl_fnGetIDsOfNames,
     203    IMediaControl_fnInvoke,
     204    /* IMediaControl fields */
     205    IMediaControl_fnRun,
     206    IMediaControl_fnPause,
     207    IMediaControl_fnStop,
     208    IMediaControl_fnGetState,
     209    IMediaControl_fnRenderFile,
     210    IMediaControl_fnAddSourceFilter,
     211    IMediaControl_fnget_FilterCollection,
     212    IMediaControl_fnget_RegFilterCollection,
     213    IMediaControl_fnStopWhenReady,
    213214};
    214215
     
    216217void CFilterGraph_InitIMediaControl( CFilterGraph* pfg )
    217218{
    218         TRACE("(%p)\n",pfg);
    219         ICOM_VTBL(&pfg->mediacontrol) = &imediacontrol;
    220 }
     219    TRACE("(%p)\n",pfg);
     220    ICOM_VTBL(&pfg->mediacontrol) = &imediacontrol;
     221}
  • trunk/src/quartz/imem.c

    r6578 r6649  
     1/* $Id: imem.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */
    12/*
    23 * Implementation of CLSID_MemoryAllocator.
     
    2728IMemAllocator_fnQueryInterface(IMemAllocator* iface,REFIID riid,void** ppobj)
    2829{
    29         CMemoryAllocator_THIS(iface,memalloc);
     30    CMemoryAllocator_THIS(iface,memalloc);
    3031
    31         TRACE("(%p)->()\n",This);
     32    TRACE("(%p)->()\n",This);
    3233
    33         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     34    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3435}
    3536
     
    3738IMemAllocator_fnAddRef(IMemAllocator* iface)
    3839{
    39         CMemoryAllocator_THIS(iface,memalloc);
     40    CMemoryAllocator_THIS(iface,memalloc);
    4041
    41         TRACE("(%p)->()\n",This);
     42    TRACE("(%p)->()\n",This);
    4243
    43         return IUnknown_AddRef(This->unk.punkControl);
     44    return IUnknown_AddRef(This->unk.punkControl);
    4445}
    4546
     
    4748IMemAllocator_fnRelease(IMemAllocator* iface)
    4849{
    49         CMemoryAllocator_THIS(iface,memalloc);
     50    CMemoryAllocator_THIS(iface,memalloc);
    5051
    51         TRACE("(%p)->()\n",This);
     52    TRACE("(%p)->()\n",This);
    5253
    53         return IUnknown_Release(This->unk.punkControl);
     54    return IUnknown_Release(This->unk.punkControl);
    5455}
    5556
     
    5758IMemAllocator_fnSetProperties(IMemAllocator* iface,ALLOCATOR_PROPERTIES* pPropReq,ALLOCATOR_PROPERTIES* pPropActual)
    5859{
    59         CMemoryAllocator_THIS(iface,memalloc);
     60    CMemoryAllocator_THIS(iface,memalloc);
    6061
    61         FIXME( "(%p)->() stub!\n", This );
    62         return E_NOTIMPL;
     62    FIXME( "(%p)->() stub!\n", This );
     63    return E_NOTIMPL;
    6364}
    6465
     
    6667IMemAllocator_fnGetProperties(IMemAllocator* iface,ALLOCATOR_PROPERTIES* pProp)
    6768{
    68         CMemoryAllocator_THIS(iface,memalloc);
     69    CMemoryAllocator_THIS(iface,memalloc);
    6970
    70         FIXME( "(%p)->() stub!\n", This );
    71         return E_NOTIMPL;
     71    FIXME( "(%p)->() stub!\n", This );
     72    return E_NOTIMPL;
    7273}
    7374
     
    7576IMemAllocator_fnCommit(IMemAllocator* iface)
    7677{
    77         CMemoryAllocator_THIS(iface,memalloc);
     78    CMemoryAllocator_THIS(iface,memalloc);
    7879
    79         FIXME( "(%p)->() stub!\n", This );
    80         return E_NOTIMPL;
     80    FIXME( "(%p)->() stub!\n", This );
     81    return E_NOTIMPL;
    8182}
    8283
     
    8485IMemAllocator_fnDecommit(IMemAllocator* iface)
    8586{
    86         CMemoryAllocator_THIS(iface,memalloc);
     87    CMemoryAllocator_THIS(iface,memalloc);
    8788
    88         FIXME( "(%p)->() stub!\n", This );
    89         return E_NOTIMPL;
     89    FIXME( "(%p)->() stub!\n", This );
     90    return E_NOTIMPL;
    9091}
    9192
     
    9394IMemAllocator_fnGetBuffer(IMemAllocator* iface,IMediaSample** ppSample,REFERENCE_TIME* prtStart,REFERENCE_TIME* prtEnd,DWORD dwFlags)
    9495{
    95         CMemoryAllocator_THIS(iface,memalloc);
     96    CMemoryAllocator_THIS(iface,memalloc);
    9697
    97         FIXME( "(%p)->() stub!\n", This );
    98         return E_NOTIMPL;
     98    FIXME( "(%p)->() stub!\n", This );
     99    return E_NOTIMPL;
    99100}
    100101
     
    102103IMemAllocator_fnReleaseBuffer(IMemAllocator* iface,IMediaSample* pSample)
    103104{
    104         CMemoryAllocator_THIS(iface,memalloc);
     105    CMemoryAllocator_THIS(iface,memalloc);
    105106
    106         FIXME( "(%p)->() stub!\n", This );
    107         return E_NOTIMPL;
     107    FIXME( "(%p)->() stub!\n", This );
     108    return E_NOTIMPL;
    108109}
    109110
     
    112113static ICOM_VTABLE(IMemAllocator) imemalloc =
    113114{
    114         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    115         /* IUnknown fields */
    116         IMemAllocator_fnQueryInterface,
    117         IMemAllocator_fnAddRef,
    118         IMemAllocator_fnRelease,
    119         /* IMemAllocator fields */
    120         IMemAllocator_fnSetProperties,
    121         IMemAllocator_fnGetProperties,
    122         IMemAllocator_fnCommit,
    123         IMemAllocator_fnDecommit,
    124         IMemAllocator_fnGetBuffer,
    125         IMemAllocator_fnReleaseBuffer,
     115    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     116    /* IUnknown fields */
     117    IMemAllocator_fnQueryInterface,
     118    IMemAllocator_fnAddRef,
     119    IMemAllocator_fnRelease,
     120    /* IMemAllocator fields */
     121    IMemAllocator_fnSetProperties,
     122    IMemAllocator_fnGetProperties,
     123    IMemAllocator_fnCommit,
     124    IMemAllocator_fnDecommit,
     125    IMemAllocator_fnGetBuffer,
     126    IMemAllocator_fnReleaseBuffer,
    126127};
    127128
     
    129130void CMemoryAllocator_InitIMemAllocator( CMemoryAllocator* pma )
    130131{
    131         TRACE("(%p)\n",pma);
    132         ICOM_VTBL(&pma->memalloc) = &imemalloc;
     132    TRACE("(%p)\n",pma);
     133    ICOM_VTBL(&pma->memalloc) = &imemalloc;
    133134}
  • trunk/src/quartz/imevent.c

    r6578 r6649  
     1/* $Id: imevent.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */
    12/*
    23 * Implementation of IMediaEvent[Ex] for FilterGraph.
     
    3031IMediaEventEx_fnQueryInterface(IMediaEventEx* iface,REFIID riid,void** ppobj)
    3132{
    32         CFilterGraph_THIS(iface,mediaevent);
    33 
    34         TRACE("(%p)->()\n",This);
    35 
    36         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     33    CFilterGraph_THIS(iface,mediaevent);
     34
     35    TRACE("(%p)->()\n",This);
     36
     37    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3738}
    3839
     
    4041IMediaEventEx_fnAddRef(IMediaEventEx* iface)
    4142{
    42         CFilterGraph_THIS(iface,mediaevent);
    43 
    44         TRACE("(%p)->()\n",This);
    45 
    46         return IUnknown_AddRef(This->unk.punkControl);
     43    CFilterGraph_THIS(iface,mediaevent);
     44
     45    TRACE("(%p)->()\n",This);
     46
     47    return IUnknown_AddRef(This->unk.punkControl);
    4748}
    4849
     
    5051IMediaEventEx_fnRelease(IMediaEventEx* iface)
    5152{
    52         CFilterGraph_THIS(iface,mediaevent);
    53 
    54         TRACE("(%p)->()\n",This);
    55 
    56         return IUnknown_Release(This->unk.punkControl);
     53    CFilterGraph_THIS(iface,mediaevent);
     54
     55    TRACE("(%p)->()\n",This);
     56
     57    return IUnknown_Release(This->unk.punkControl);
    5758}
    5859
     
    6061IMediaEventEx_fnGetTypeInfoCount(IMediaEventEx* iface,UINT* pcTypeInfo)
    6162{
    62         CFilterGraph_THIS(iface,mediaevent);
    63 
    64         FIXME("(%p)->()\n",This);
    65 
    66         return E_NOTIMPL;
     63    CFilterGraph_THIS(iface,mediaevent);
     64
     65    FIXME("(%p)->()\n",This);
     66
     67    return E_NOTIMPL;
    6768}
    6869
     
    7071IMediaEventEx_fnGetTypeInfo(IMediaEventEx* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7172{
    72         CFilterGraph_THIS(iface,mediaevent);
    73 
    74         FIXME("(%p)->()\n",This);
    75 
    76         return E_NOTIMPL;
     73    CFilterGraph_THIS(iface,mediaevent);
     74
     75    FIXME("(%p)->()\n",This);
     76
     77    return E_NOTIMPL;
    7778}
    7879
     
    8081IMediaEventEx_fnGetIDsOfNames(IMediaEventEx* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8182{
    82         CFilterGraph_THIS(iface,mediaevent);
    83 
    84         FIXME("(%p)->()\n",This);
    85 
    86         return E_NOTIMPL;
     83    CFilterGraph_THIS(iface,mediaevent);
     84
     85    FIXME("(%p)->()\n",This);
     86
     87    return E_NOTIMPL;
    8788}
    8889
     
    9091IMediaEventEx_fnInvoke(IMediaEventEx* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9192{
    92         CFilterGraph_THIS(iface,mediaevent);
    93 
    94         FIXME("(%p)->()\n",This);
    95 
    96         return E_NOTIMPL;
     93    CFilterGraph_THIS(iface,mediaevent);
     94
     95    FIXME("(%p)->()\n",This);
     96
     97    return E_NOTIMPL;
    9798}
    9899
     
    101102IMediaEventEx_fnGetEventHandle(IMediaEventEx* iface,OAEVENT* hEvent)
    102103{
    103         CFilterGraph_THIS(iface,mediaevent);
    104 
    105         FIXME("(%p)->() stub!\n",This);
    106 
    107         return E_NOTIMPL;
     104    CFilterGraph_THIS(iface,mediaevent);
     105
     106    FIXME("(%p)->() stub!\n",This);
     107
     108    return E_NOTIMPL;
    108109}
    109110
     
    111112IMediaEventEx_fnGetEvent(IMediaEventEx* iface,long* lEventCode,LONG_PTR* plParam1,LONG_PTR* plParam2,long lTimeOut)
    112113{
    113         CFilterGraph_THIS(iface,mediaevent);
    114 
    115         FIXME("(%p)->() stub!\n",This);
    116 
    117         return E_NOTIMPL;
     114    CFilterGraph_THIS(iface,mediaevent);
     115
     116    FIXME("(%p)->() stub!\n",This);
     117
     118    return E_NOTIMPL;
    118119}
    119120
     
    121122IMediaEventEx_fnWaitForCompletion(IMediaEventEx* iface,long lTimeOut,long* plEventCode)
    122123{
    123         CFilterGraph_THIS(iface,mediaevent);
    124 
    125         FIXME("(%p)->() stub!\n",This);
    126 
    127         return E_NOTIMPL;
     124    CFilterGraph_THIS(iface,mediaevent);
     125
     126    FIXME("(%p)->() stub!\n",This);
     127
     128    return E_NOTIMPL;
    128129}
    129130
     
    131132IMediaEventEx_fnCancelDefaultHandling(IMediaEventEx* iface,long lEventCode)
    132133{
    133         CFilterGraph_THIS(iface,mediaevent);
    134 
    135         FIXME("(%p)->() stub!\n",This);
    136 
    137         return E_NOTIMPL;
     134    CFilterGraph_THIS(iface,mediaevent);
     135
     136    FIXME("(%p)->() stub!\n",This);
     137
     138    return E_NOTIMPL;
    138139}
    139140
     
    141142IMediaEventEx_fnRestoreDefaultHandling(IMediaEventEx* iface,long lEventCode)
    142143{
    143         CFilterGraph_THIS(iface,mediaevent);
    144 
    145         FIXME("(%p)->() stub!\n",This);
    146 
    147         return E_NOTIMPL;
     144    CFilterGraph_THIS(iface,mediaevent);
     145
     146    FIXME("(%p)->() stub!\n",This);
     147
     148    return E_NOTIMPL;
    148149}
    149150
     
    151152IMediaEventEx_fnFreeEventParams(IMediaEventEx* iface,long lEventCode,LONG_PTR lParam1,LONG_PTR lParam2)
    152153{
    153         CFilterGraph_THIS(iface,mediaevent);
    154 
    155         FIXME("(%p)->() stub!\n",This);
    156 
    157         return E_NOTIMPL;
     154    CFilterGraph_THIS(iface,mediaevent);
     155
     156    FIXME("(%p)->() stub!\n",This);
     157
     158    return E_NOTIMPL;
    158159}
    159160
     
    161162IMediaEventEx_fnSetNotifyWindow(IMediaEventEx* iface,OAHWND hwnd,long message,LONG_PTR lParam)
    162163{
    163         CFilterGraph_THIS(iface,mediaevent);
    164 
    165         FIXME("(%p)->() stub!\n",This);
    166 
    167         return E_NOTIMPL;
     164    CFilterGraph_THIS(iface,mediaevent);
     165
     166    FIXME("(%p)->() stub!\n",This);
     167
     168    return E_NOTIMPL;
    168169}
    169170
     
    171172IMediaEventEx_fnSetNotifyFlags(IMediaEventEx* iface,long lNotifyFlags)
    172173{
    173         CFilterGraph_THIS(iface,mediaevent);
    174 
    175         FIXME("(%p)->() stub!\n",This);
    176 
    177         return E_NOTIMPL;
     174    CFilterGraph_THIS(iface,mediaevent);
     175
     176    FIXME("(%p)->() stub!\n",This);
     177
     178    return E_NOTIMPL;
    178179}
    179180
     
    181182IMediaEventEx_fnGetNotifyFlags(IMediaEventEx* iface,long* plNotifyFlags)
    182183{
    183         CFilterGraph_THIS(iface,mediaevent);
    184 
    185         FIXME("(%p)->() stub!\n",This);
    186 
    187         return E_NOTIMPL;
     184    CFilterGraph_THIS(iface,mediaevent);
     185
     186    FIXME("(%p)->() stub!\n",This);
     187
     188    return E_NOTIMPL;
    188189}
    189190
     
    192193static ICOM_VTABLE(IMediaEventEx) imediaevent =
    193194{
    194         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    195         /* IUnknown fields */
    196         IMediaEventEx_fnQueryInterface,
    197         IMediaEventEx_fnAddRef,
    198         IMediaEventEx_fnRelease,
    199         /* IDispatch fields */
    200         IMediaEventEx_fnGetTypeInfoCount,
    201         IMediaEventEx_fnGetTypeInfo,
    202         IMediaEventEx_fnGetIDsOfNames,
    203         IMediaEventEx_fnInvoke,
    204         /* IMediaEvent fields */
    205         IMediaEventEx_fnGetEventHandle,
    206         IMediaEventEx_fnGetEvent,
    207         IMediaEventEx_fnWaitForCompletion,
    208         IMediaEventEx_fnCancelDefaultHandling,
    209         IMediaEventEx_fnRestoreDefaultHandling,
    210         IMediaEventEx_fnFreeEventParams,
    211         /* IMediaEventEx fields */
    212         IMediaEventEx_fnSetNotifyWindow,
    213         IMediaEventEx_fnSetNotifyFlags,
    214         IMediaEventEx_fnGetNotifyFlags,
     195    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     196    /* IUnknown fields */
     197    IMediaEventEx_fnQueryInterface,
     198    IMediaEventEx_fnAddRef,
     199    IMediaEventEx_fnRelease,
     200    /* IDispatch fields */
     201    IMediaEventEx_fnGetTypeInfoCount,
     202    IMediaEventEx_fnGetTypeInfo,
     203    IMediaEventEx_fnGetIDsOfNames,
     204    IMediaEventEx_fnInvoke,
     205    /* IMediaEvent fields */
     206    IMediaEventEx_fnGetEventHandle,
     207    IMediaEventEx_fnGetEvent,
     208    IMediaEventEx_fnWaitForCompletion,
     209    IMediaEventEx_fnCancelDefaultHandling,
     210    IMediaEventEx_fnRestoreDefaultHandling,
     211    IMediaEventEx_fnFreeEventParams,
     212    /* IMediaEventEx fields */
     213    IMediaEventEx_fnSetNotifyWindow,
     214    IMediaEventEx_fnSetNotifyFlags,
     215    IMediaEventEx_fnGetNotifyFlags,
    215216};
    216217
     
    218219void CFilterGraph_InitIMediaEventEx( CFilterGraph* pfg )
    219220{
    220         TRACE("(%p)\n",pfg);
    221         ICOM_VTBL(&pfg->mediaevent) = &imediaevent;
    222 }
     221    TRACE("(%p)\n",pfg);
     222    ICOM_VTBL(&pfg->mediaevent) = &imediaevent;
     223}
  • trunk/src/quartz/impos.c

    r6578 r6649  
     1/* $Id: impos.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */
    12/*
    23 * Implementation of IMediaPosition for FilterGraph.
     
    2930IMediaPosition_fnQueryInterface(IMediaPosition* iface,REFIID riid,void** ppobj)
    3031{
    31         CFilterGraph_THIS(iface,mediaposition);
    32 
    33         TRACE("(%p)->()\n",This);
    34 
    35         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     32    CFilterGraph_THIS(iface,mediaposition);
     33
     34    TRACE("(%p)->()\n",This);
     35
     36    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3637}
    3738
     
    3940IMediaPosition_fnAddRef(IMediaPosition* iface)
    4041{
    41         CFilterGraph_THIS(iface,mediaposition);
    42 
    43         TRACE("(%p)->()\n",This);
    44 
    45         return IUnknown_AddRef(This->unk.punkControl);
     42    CFilterGraph_THIS(iface,mediaposition);
     43
     44    TRACE("(%p)->()\n",This);
     45
     46    return IUnknown_AddRef(This->unk.punkControl);
    4647}
    4748
     
    4950IMediaPosition_fnRelease(IMediaPosition* iface)
    5051{
    51         CFilterGraph_THIS(iface,mediaposition);
    52 
    53         TRACE("(%p)->()\n",This);
    54 
    55         return IUnknown_Release(This->unk.punkControl);
     52    CFilterGraph_THIS(iface,mediaposition);
     53
     54    TRACE("(%p)->()\n",This);
     55
     56    return IUnknown_Release(This->unk.punkControl);
    5657}
    5758
     
    5960IMediaPosition_fnGetTypeInfoCount(IMediaPosition* iface,UINT* pcTypeInfo)
    6061{
    61         CFilterGraph_THIS(iface,mediaposition);
    62 
    63         FIXME("(%p)->()\n",This);
    64 
    65         return E_NOTIMPL;
     62    CFilterGraph_THIS(iface,mediaposition);
     63
     64    FIXME("(%p)->()\n",This);
     65
     66    return E_NOTIMPL;
    6667}
    6768
     
    6970IMediaPosition_fnGetTypeInfo(IMediaPosition* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7071{
    71         CFilterGraph_THIS(iface,mediaposition);
    72 
    73         FIXME("(%p)->()\n",This);
    74 
    75         return E_NOTIMPL;
     72    CFilterGraph_THIS(iface,mediaposition);
     73
     74    FIXME("(%p)->()\n",This);
     75
     76    return E_NOTIMPL;
    7677}
    7778
     
    7980IMediaPosition_fnGetIDsOfNames(IMediaPosition* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8081{
    81         CFilterGraph_THIS(iface,mediaposition);
    82 
    83         FIXME("(%p)->()\n",This);
    84 
    85         return E_NOTIMPL;
     82    CFilterGraph_THIS(iface,mediaposition);
     83
     84    FIXME("(%p)->()\n",This);
     85
     86    return E_NOTIMPL;
    8687}
    8788
     
    8990IMediaPosition_fnInvoke(IMediaPosition* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9091{
    91         CFilterGraph_THIS(iface,mediaposition);
    92 
    93         FIXME("(%p)->()\n",This);
    94 
    95         return E_NOTIMPL;
     92    CFilterGraph_THIS(iface,mediaposition);
     93
     94    FIXME("(%p)->()\n",This);
     95
     96    return E_NOTIMPL;
    9697}
    9798
     
    100101IMediaPosition_fnget_Duration(IMediaPosition* iface,REFTIME* prefTime)
    101102{
    102         CFilterGraph_THIS(iface,mediaposition);
    103 
    104         FIXME("(%p)->() stub!\n",This);
    105 
    106         return E_NOTIMPL;
     103    CFilterGraph_THIS(iface,mediaposition);
     104
     105    FIXME("(%p)->() stub!\n",This);
     106
     107    return E_NOTIMPL;
    107108}
    108109
     
    110111IMediaPosition_fnput_CurrentPosition(IMediaPosition* iface,REFTIME refTime)
    111112{
    112         CFilterGraph_THIS(iface,mediaposition);
    113 
    114         FIXME("(%p)->() stub!\n",This);
    115 
    116         return E_NOTIMPL;
     113    CFilterGraph_THIS(iface,mediaposition);
     114
     115    FIXME("(%p)->() stub!\n",This);
     116
     117    return E_NOTIMPL;
    117118}
    118119
     
    120121IMediaPosition_fnget_CurrentPosition(IMediaPosition* iface,REFTIME* prefTime)
    121122{
    122         CFilterGraph_THIS(iface,mediaposition);
    123 
    124         FIXME("(%p)->() stub!\n",This);
    125 
    126         return E_NOTIMPL;
     123    CFilterGraph_THIS(iface,mediaposition);
     124
     125    FIXME("(%p)->() stub!\n",This);
     126
     127    return E_NOTIMPL;
    127128}
    128129
     
    130131IMediaPosition_fnget_StopTime(IMediaPosition* iface,REFTIME* prefTime)
    131132{
    132         CFilterGraph_THIS(iface,mediaposition);
    133 
    134         FIXME("(%p)->() stub!\n",This);
    135 
    136         return E_NOTIMPL;
     133    CFilterGraph_THIS(iface,mediaposition);
     134
     135    FIXME("(%p)->() stub!\n",This);
     136
     137    return E_NOTIMPL;
    137138}
    138139
     
    140141IMediaPosition_fnput_StopTime(IMediaPosition* iface,REFTIME refTime)
    141142{
    142         CFilterGraph_THIS(iface,mediaposition);
    143 
    144         FIXME("(%p)->() stub!\n",This);
    145 
    146         return E_NOTIMPL;
     143    CFilterGraph_THIS(iface,mediaposition);
     144
     145    FIXME("(%p)->() stub!\n",This);
     146
     147    return E_NOTIMPL;
    147148}
    148149
     
    150151IMediaPosition_fnget_PrerollTime(IMediaPosition* iface,REFTIME* prefTime)
    151152{
    152         CFilterGraph_THIS(iface,mediaposition);
    153 
    154         FIXME("(%p)->() stub!\n",This);
    155 
    156         return E_NOTIMPL;
     153    CFilterGraph_THIS(iface,mediaposition);
     154
     155    FIXME("(%p)->() stub!\n",This);
     156
     157    return E_NOTIMPL;
    157158}
    158159
     
    160161IMediaPosition_fnput_PrerollTime(IMediaPosition* iface,REFTIME refTime)
    161162{
    162         CFilterGraph_THIS(iface,mediaposition);
    163 
    164         FIXME("(%p)->() stub!\n",This);
    165 
    166         return E_NOTIMPL;
     163    CFilterGraph_THIS(iface,mediaposition);
     164
     165    FIXME("(%p)->() stub!\n",This);
     166
     167    return E_NOTIMPL;
    167168}
    168169
     
    170171IMediaPosition_fnput_Rate(IMediaPosition* iface,double dblRate)
    171172{
    172         CFilterGraph_THIS(iface,mediaposition);
    173 
    174         FIXME("(%p)->() stub!\n",This);
    175 
    176         return E_NOTIMPL;
     173    CFilterGraph_THIS(iface,mediaposition);
     174
     175    FIXME("(%p)->() stub!\n",This);
     176
     177    return E_NOTIMPL;
    177178}
    178179
     
    180181IMediaPosition_fnget_Rate(IMediaPosition* iface,double* pdblRate)
    181182{
    182         CFilterGraph_THIS(iface,mediaposition);
    183 
    184         FIXME("(%p)->() stub!\n",This);
    185 
    186         return E_NOTIMPL;
     183    CFilterGraph_THIS(iface,mediaposition);
     184
     185    FIXME("(%p)->() stub!\n",This);
     186
     187    return E_NOTIMPL;
    187188}
    188189
     
    190191IMediaPosition_fnCanSeekForward(IMediaPosition* iface,LONG* pCanSeek)
    191192{
    192         CFilterGraph_THIS(iface,mediaposition);
    193 
    194         FIXME("(%p)->() stub!\n",This);
    195 
    196         return E_NOTIMPL;
     193    CFilterGraph_THIS(iface,mediaposition);
     194
     195    FIXME("(%p)->() stub!\n",This);
     196
     197    return E_NOTIMPL;
    197198}
    198199
     
    200201IMediaPosition_fnCanSeekBackward(IMediaPosition* iface,LONG* pCanSeek)
    201202{
    202         CFilterGraph_THIS(iface,mediaposition);
    203 
    204         FIXME("(%p)->() stub!\n",This);
    205 
    206         return E_NOTIMPL;
     203    CFilterGraph_THIS(iface,mediaposition);
     204
     205    FIXME("(%p)->() stub!\n",This);
     206
     207    return E_NOTIMPL;
    207208}
    208209
     
    210211static ICOM_VTABLE(IMediaPosition) imediaposition =
    211212{
    212         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    213         /* IUnknown fields */
    214         IMediaPosition_fnQueryInterface,
    215         IMediaPosition_fnAddRef,
    216         IMediaPosition_fnRelease,
    217         /* IDispatch fields */
    218         IMediaPosition_fnGetTypeInfoCount,
    219         IMediaPosition_fnGetTypeInfo,
    220         IMediaPosition_fnGetIDsOfNames,
    221         IMediaPosition_fnInvoke,
    222         /* IMediaPosition fields */
    223         IMediaPosition_fnget_Duration,
    224         IMediaPosition_fnput_CurrentPosition,
    225         IMediaPosition_fnget_CurrentPosition,
    226         IMediaPosition_fnget_StopTime,
    227         IMediaPosition_fnput_StopTime,
    228         IMediaPosition_fnget_PrerollTime,
    229         IMediaPosition_fnput_PrerollTime,
    230         IMediaPosition_fnput_Rate,
    231         IMediaPosition_fnget_Rate,
    232         IMediaPosition_fnCanSeekForward,
    233         IMediaPosition_fnCanSeekBackward,
     213    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     214    /* IUnknown fields */
     215    IMediaPosition_fnQueryInterface,
     216    IMediaPosition_fnAddRef,
     217    IMediaPosition_fnRelease,
     218    /* IDispatch fields */
     219    IMediaPosition_fnGetTypeInfoCount,
     220    IMediaPosition_fnGetTypeInfo,
     221    IMediaPosition_fnGetIDsOfNames,
     222    IMediaPosition_fnInvoke,
     223    /* IMediaPosition fields */
     224    IMediaPosition_fnget_Duration,
     225    IMediaPosition_fnput_CurrentPosition,
     226    IMediaPosition_fnget_CurrentPosition,
     227    IMediaPosition_fnget_StopTime,
     228    IMediaPosition_fnput_StopTime,
     229    IMediaPosition_fnget_PrerollTime,
     230    IMediaPosition_fnput_PrerollTime,
     231    IMediaPosition_fnput_Rate,
     232    IMediaPosition_fnget_Rate,
     233    IMediaPosition_fnCanSeekForward,
     234    IMediaPosition_fnCanSeekBackward,
    234235};
    235236
     
    237238void CFilterGraph_InitIMediaPosition( CFilterGraph* pfg )
    238239{
    239         TRACE("(%p)\n",pfg);
    240         ICOM_VTBL(&pfg->mediaposition) = &imediaposition;
    241 }
     240    TRACE("(%p)\n",pfg);
     241    ICOM_VTBL(&pfg->mediaposition) = &imediaposition;
     242}
  • trunk/src/quartz/imseek.c

    r6578 r6649  
     1/* $Id: imseek.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */
    12/*
    23 * Implementation of IMediaSeeking for FilterGraph.
     
    3031IMediaSeeking_fnQueryInterface(IMediaSeeking* iface,REFIID riid,void** ppobj)
    3132{
    32         CFilterGraph_THIS(iface,mediaseeking);
    33 
    34         TRACE("(%p)->()\n",This);
    35 
    36         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     33    CFilterGraph_THIS(iface,mediaseeking);
     34
     35    TRACE("(%p)->()\n",This);
     36
     37    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3738}
    3839
     
    4041IMediaSeeking_fnAddRef(IMediaSeeking* iface)
    4142{
    42         CFilterGraph_THIS(iface,mediaseeking);
    43 
    44         TRACE("(%p)->()\n",This);
    45 
    46         return IUnknown_AddRef(This->unk.punkControl);
     43    CFilterGraph_THIS(iface,mediaseeking);
     44
     45    TRACE("(%p)->()\n",This);
     46
     47    return IUnknown_AddRef(This->unk.punkControl);
    4748}
    4849
     
    5051IMediaSeeking_fnRelease(IMediaSeeking* iface)
    5152{
    52         CFilterGraph_THIS(iface,mediaseeking);
    53 
    54         TRACE("(%p)->()\n",This);
    55 
    56         return IUnknown_Release(This->unk.punkControl);
     53    CFilterGraph_THIS(iface,mediaseeking);
     54
     55    TRACE("(%p)->()\n",This);
     56
     57    return IUnknown_Release(This->unk.punkControl);
    5758}
    5859
     
    6162IMediaSeeking_fnGetCapabilities(IMediaSeeking* iface,DWORD* pdwCaps)
    6263{
    63         CFilterGraph_THIS(iface,mediaseeking);
    64 
    65         FIXME("(%p)->() stub!\n",This);
    66 
    67         return E_NOTIMPL;
     64    CFilterGraph_THIS(iface,mediaseeking);
     65
     66    FIXME("(%p)->() stub!\n",This);
     67
     68    return E_NOTIMPL;
    6869}
    6970
     
    7172IMediaSeeking_fnCheckCapabilities(IMediaSeeking* iface,DWORD* pdwCaps)
    7273{
    73         CFilterGraph_THIS(iface,mediaseeking);
    74 
    75         FIXME("(%p)->() stub!\n",This);
    76 
    77         return E_NOTIMPL;
     74    CFilterGraph_THIS(iface,mediaseeking);
     75
     76    FIXME("(%p)->() stub!\n",This);
     77
     78    return E_NOTIMPL;
    7879}
    7980
     
    8182IMediaSeeking_fnIsFormatSupported(IMediaSeeking* iface,const GUID* pidFormat)
    8283{
    83         CFilterGraph_THIS(iface,mediaseeking);
    84 
    85         FIXME("(%p)->() stub!\n",This);
    86 
    87         return E_NOTIMPL;
     84    CFilterGraph_THIS(iface,mediaseeking);
     85
     86    FIXME("(%p)->() stub!\n",This);
     87
     88    return E_NOTIMPL;
    8889}
    8990
     
    9192IMediaSeeking_fnQueryPreferredFormat(IMediaSeeking* iface,GUID* pidFormat)
    9293{
    93         CFilterGraph_THIS(iface,mediaseeking);
    94 
    95         FIXME("(%p)->() stub!\n",This);
    96 
    97         return E_NOTIMPL;
     94    CFilterGraph_THIS(iface,mediaseeking);
     95
     96    FIXME("(%p)->() stub!\n",This);
     97
     98    return E_NOTIMPL;
    9899}
    99100
     
    101102IMediaSeeking_fnGetTimeFormat(IMediaSeeking* iface,GUID* pidFormat)
    102103{
    103         CFilterGraph_THIS(iface,mediaseeking);
    104 
    105         FIXME("(%p)->() stub!\n",This);
    106 
    107         return E_NOTIMPL;
     104    CFilterGraph_THIS(iface,mediaseeking);
     105
     106    FIXME("(%p)->() stub!\n",This);
     107
     108    return E_NOTIMPL;
    108109}
    109110
     
    111112IMediaSeeking_fnIsUsingTimeFormat(IMediaSeeking* iface,const GUID* pidFormat)
    112113{
    113         CFilterGraph_THIS(iface,mediaseeking);
    114 
    115         FIXME("(%p)->() stub!\n",This);
    116 
    117         return E_NOTIMPL;
     114    CFilterGraph_THIS(iface,mediaseeking);
     115
     116    FIXME("(%p)->() stub!\n",This);
     117
     118    return E_NOTIMPL;
    118119}
    119120
     
    121122IMediaSeeking_fnSetTimeFormat(IMediaSeeking* iface,const GUID* pidFormat)
    122123{
    123         CFilterGraph_THIS(iface,mediaseeking);
    124 
    125         FIXME("(%p)->() stub!\n",This);
    126 
    127         return E_NOTIMPL;
     124    CFilterGraph_THIS(iface,mediaseeking);
     125
     126    FIXME("(%p)->() stub!\n",This);
     127
     128    return E_NOTIMPL;
    128129}
    129130
     
    131132IMediaSeeking_fnGetDuration(IMediaSeeking* iface,LONGLONG* pllDuration)
    132133{
    133         CFilterGraph_THIS(iface,mediaseeking);
    134 
    135         FIXME("(%p)->() stub!\n",This);
    136 
    137         return E_NOTIMPL;
     134    CFilterGraph_THIS(iface,mediaseeking);
     135
     136    FIXME("(%p)->() stub!\n",This);
     137
     138    return E_NOTIMPL;
    138139}
    139140
     
    141142IMediaSeeking_fnGetStopPosition(IMediaSeeking* iface,LONGLONG* pllPos)
    142143{
    143         CFilterGraph_THIS(iface,mediaseeking);
    144 
    145         FIXME("(%p)->() stub!\n",This);
    146 
    147         return E_NOTIMPL;
     144    CFilterGraph_THIS(iface,mediaseeking);
     145
     146    FIXME("(%p)->() stub!\n",This);
     147
     148    return E_NOTIMPL;
    148149}
    149150
     
    151152IMediaSeeking_fnGetCurrentPosition(IMediaSeeking* iface,LONGLONG* pllPos)
    152153{
    153         CFilterGraph_THIS(iface,mediaseeking);
    154 
    155         FIXME("(%p)->() stub!\n",This);
    156 
    157         return E_NOTIMPL;
     154    CFilterGraph_THIS(iface,mediaseeking);
     155
     156    FIXME("(%p)->() stub!\n",This);
     157
     158    return E_NOTIMPL;
    158159}
    159160
     
    161162IMediaSeeking_fnConvertTimeFormat(IMediaSeeking* iface,LONGLONG* pllOut,const GUID* pidFmtOut,LONGLONG llIn,const GUID* pidFmtIn)
    162163{
    163         CFilterGraph_THIS(iface,mediaseeking);
    164 
    165         FIXME("(%p)->() stub!\n",This);
    166 
    167         return E_NOTIMPL;
     164    CFilterGraph_THIS(iface,mediaseeking);
     165
     166    FIXME("(%p)->() stub!\n",This);
     167
     168    return E_NOTIMPL;
    168169}
    169170
     
    171172IMediaSeeking_fnSetPositions(IMediaSeeking* iface,LONGLONG* pllCur,DWORD dwCurFlags,LONGLONG* pllStop,DWORD dwStopFlags)
    172173{
    173         CFilterGraph_THIS(iface,mediaseeking);
    174 
    175         FIXME("(%p)->() stub!\n",This);
    176 
    177         return E_NOTIMPL;
     174    CFilterGraph_THIS(iface,mediaseeking);
     175
     176    FIXME("(%p)->() stub!\n",This);
     177
     178    return E_NOTIMPL;
    178179}
    179180
     
    181182IMediaSeeking_fnGetPositions(IMediaSeeking* iface,LONGLONG* pllCur,LONGLONG* pllStop)
    182183{
    183         CFilterGraph_THIS(iface,mediaseeking);
    184 
    185         FIXME("(%p)->() stub!\n",This);
    186 
    187         return E_NOTIMPL;
     184    CFilterGraph_THIS(iface,mediaseeking);
     185
     186    FIXME("(%p)->() stub!\n",This);
     187
     188    return E_NOTIMPL;
    188189}
    189190
     
    191192IMediaSeeking_fnGetAvailable(IMediaSeeking* iface,LONGLONG* pllFirst,LONGLONG* pllLast)
    192193{
    193         CFilterGraph_THIS(iface,mediaseeking);
    194 
    195         FIXME("(%p)->() stub!\n",This);
    196 
    197         return E_NOTIMPL;
     194    CFilterGraph_THIS(iface,mediaseeking);
     195
     196    FIXME("(%p)->() stub!\n",This);
     197
     198    return E_NOTIMPL;
    198199}
    199200
     
    201202IMediaSeeking_fnSetRate(IMediaSeeking* iface,double dblRate)
    202203{
    203         CFilterGraph_THIS(iface,mediaseeking);
    204 
    205         FIXME("(%p)->() stub!\n",This);
    206 
    207         return E_NOTIMPL;
     204    CFilterGraph_THIS(iface,mediaseeking);
     205
     206    FIXME("(%p)->() stub!\n",This);
     207
     208    return E_NOTIMPL;
    208209}
    209210
     
    211212IMediaSeeking_fnGetRate(IMediaSeeking* iface,double* pdblRate)
    212213{
    213         CFilterGraph_THIS(iface,mediaseeking);
    214 
    215         FIXME("(%p)->() stub!\n",This);
    216 
    217         return E_NOTIMPL;
     214    CFilterGraph_THIS(iface,mediaseeking);
     215
     216    FIXME("(%p)->() stub!\n",This);
     217
     218    return E_NOTIMPL;
    218219}
    219220
     
    221222IMediaSeeking_fnGetPreroll(IMediaSeeking* iface,LONGLONG* pllPreroll)
    222223{
    223         CFilterGraph_THIS(iface,mediaseeking);
    224 
    225         FIXME("(%p)->() stub!\n",This);
    226 
    227         return E_NOTIMPL;
     224    CFilterGraph_THIS(iface,mediaseeking);
     225
     226    FIXME("(%p)->() stub!\n",This);
     227
     228    return E_NOTIMPL;
    228229}
    229230
     
    233234static ICOM_VTABLE(IMediaSeeking) imediaseeking =
    234235{
    235         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    236         /* IUnknown fields */
    237         IMediaSeeking_fnQueryInterface,
    238         IMediaSeeking_fnAddRef,
    239         IMediaSeeking_fnRelease,
    240         /* IMediaSeeking fields */
    241         IMediaSeeking_fnGetCapabilities,
    242         IMediaSeeking_fnCheckCapabilities,
    243         IMediaSeeking_fnIsFormatSupported,
    244         IMediaSeeking_fnQueryPreferredFormat,
    245         IMediaSeeking_fnGetTimeFormat,
    246         IMediaSeeking_fnIsUsingTimeFormat,
    247         IMediaSeeking_fnSetTimeFormat,
    248         IMediaSeeking_fnGetDuration,
    249         IMediaSeeking_fnGetStopPosition,
    250         IMediaSeeking_fnGetCurrentPosition,
    251         IMediaSeeking_fnConvertTimeFormat,
    252         IMediaSeeking_fnSetPositions,
    253         IMediaSeeking_fnGetPositions,
    254         IMediaSeeking_fnGetAvailable,
    255         IMediaSeeking_fnSetRate,
    256         IMediaSeeking_fnGetRate,
    257         IMediaSeeking_fnGetPreroll,
     236    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     237    /* IUnknown fields */
     238    IMediaSeeking_fnQueryInterface,
     239    IMediaSeeking_fnAddRef,
     240    IMediaSeeking_fnRelease,
     241    /* IMediaSeeking fields */
     242    IMediaSeeking_fnGetCapabilities,
     243    IMediaSeeking_fnCheckCapabilities,
     244    IMediaSeeking_fnIsFormatSupported,
     245    IMediaSeeking_fnQueryPreferredFormat,
     246    IMediaSeeking_fnGetTimeFormat,
     247    IMediaSeeking_fnIsUsingTimeFormat,
     248    IMediaSeeking_fnSetTimeFormat,
     249    IMediaSeeking_fnGetDuration,
     250    IMediaSeeking_fnGetStopPosition,
     251    IMediaSeeking_fnGetCurrentPosition,
     252    IMediaSeeking_fnConvertTimeFormat,
     253    IMediaSeeking_fnSetPositions,
     254    IMediaSeeking_fnGetPositions,
     255    IMediaSeeking_fnGetAvailable,
     256    IMediaSeeking_fnSetRate,
     257    IMediaSeeking_fnGetRate,
     258    IMediaSeeking_fnGetPreroll,
    258259};
    259260
    260261void CFilterGraph_InitIMediaSeeking( CFilterGraph* pfg )
    261262{
    262         TRACE("(%p)\n",pfg);
    263         ICOM_VTBL(&pfg->mediaseeking) = &imediaseeking;
    264 }
     263    TRACE("(%p)\n",pfg);
     264    ICOM_VTBL(&pfg->mediaseeking) = &imediaseeking;
     265}
  • trunk/src/quartz/initquartz.cpp

    r6563 r6649  
     1/* $Id: initquartz.cpp,v 1.2 2001-09-05 13:36:36 bird Exp $ */
    12/*
    23 * DLL entry point
     
    5556   case DLL_THREAD_ATTACH:
    5657   case DLL_THREAD_DETACH:
    57         return QUARTZ_DllMain(hinstDLL, fdwReason, fImpLoad);
     58    return QUARTZ_DllMain(hinstDLL, fdwReason, fImpLoad);
    5859
    5960   case DLL_PROCESS_DETACH:
    6061        ret = QUARTZ_DllMain(hinstDLL, fdwReason, fImpLoad);
    61         ctordtorTerm();
    62         return ret;
     62    ctordtorTerm();
     63    return ret;
    6364   }
    6465   return FALSE;
     
    8788         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    8889         dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab);
    89          if(dllHandle == 0) 
    90                 return 0UL;
     90         if(dllHandle == 0)
     91        return 0UL;
    9192
    9293         break;
    9394      case 1 :
    9495         if(dllHandle) {
    95                 UnregisterLxDll(dllHandle);
     96        UnregisterLxDll(dllHandle);
    9697         }
    9798         break;
  • trunk/src/quartz/initterm.cpp

    r6563 r6649  
     1/* $Id: initterm.cpp,v 1.2 2001-09-05 13:36:37 bird Exp $ */
    12/*
    23 * DLL entry point
  • trunk/src/quartz/irclock.c

    r6578 r6649  
     1/* $Id: irclock.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */
    12/*
    23 * Implementation of CLSID_SystemClock.
     
    2728IReferenceClock_fnQueryInterface(IReferenceClock* iface,REFIID riid,void** ppobj)
    2829{
    29         CSystemClock_THIS(iface,refclk);
     30    CSystemClock_THIS(iface,refclk);
    3031
    31         TRACE("(%p)->()\n",This);
     32    TRACE("(%p)->()\n",This);
    3233
    33         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     34    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3435}
    3536
     
    3738IReferenceClock_fnAddRef(IReferenceClock* iface)
    3839{
    39         CSystemClock_THIS(iface,refclk);
     40    CSystemClock_THIS(iface,refclk);
    4041
    41         TRACE("(%p)->()\n",This);
     42    TRACE("(%p)->()\n",This);
    4243
    43         return IUnknown_AddRef(This->unk.punkControl);
     44    return IUnknown_AddRef(This->unk.punkControl);
    4445}
    4546
     
    4748IReferenceClock_fnRelease(IReferenceClock* iface)
    4849{
    49         CSystemClock_THIS(iface,refclk);
     50    CSystemClock_THIS(iface,refclk);
    5051
    51         TRACE("(%p)->()\n",This);
     52    TRACE("(%p)->()\n",This);
    5253
    53         return IUnknown_Release(This->unk.punkControl);
     54    return IUnknown_Release(This->unk.punkControl);
    5455}
    5556
     
    5758IReferenceClock_fnGetTime(IReferenceClock* iface,REFERENCE_TIME* prtTime)
    5859{
    59         CSystemClock_THIS(iface,refclk);
     60    CSystemClock_THIS(iface,refclk);
    6061
    61         FIXME( "(%p)->() stub!\n", This );
    62         return E_NOTIMPL;
     62    FIXME( "(%p)->() stub!\n", This );
     63    return E_NOTIMPL;
    6364}
    6465
     
    6667IReferenceClock_fnAdviseTime(IReferenceClock* iface,REFERENCE_TIME rtBase,REFERENCE_TIME rtStream,HEVENT hEvent,DWORD_PTR* pdwAdvCookie)
    6768{
    68         CSystemClock_THIS(iface,refclk);
     69    CSystemClock_THIS(iface,refclk);
    6970
    70         FIXME( "(%p)->() stub!\n", This );
    71         return E_NOTIMPL;
     71    FIXME( "(%p)->() stub!\n", This );
     72    return E_NOTIMPL;
    7273}
    7374
     
    7576IReferenceClock_fnAdvisePeriodic(IReferenceClock* iface,REFERENCE_TIME rtStart,REFERENCE_TIME rtPeriod,HSEMAPHORE hSemaphore,DWORD_PTR* pdwAdvCookie)
    7677{
    77         CSystemClock_THIS(iface,refclk);
     78    CSystemClock_THIS(iface,refclk);
    7879
    79         FIXME( "(%p)->() stub!\n", This );
    80         return E_NOTIMPL;
     80    FIXME( "(%p)->() stub!\n", This );
     81    return E_NOTIMPL;
    8182}
    8283
     
    8485IReferenceClock_fnUnadvise(IReferenceClock* iface,DWORD_PTR dwAdvCookie)
    8586{
    86         CSystemClock_THIS(iface,refclk);
     87    CSystemClock_THIS(iface,refclk);
    8788
    88         FIXME( "(%p)->() stub!\n", This );
    89         return E_NOTIMPL;
     89    FIXME( "(%p)->() stub!\n", This );
     90    return E_NOTIMPL;
    9091}
    9192
    9293static ICOM_VTABLE(IReferenceClock) irefclk =
    9394{
    94         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    95         /* IUnknown fields */
    96         IReferenceClock_fnQueryInterface,
    97         IReferenceClock_fnAddRef,
    98         IReferenceClock_fnRelease,
    99         /* IReferenceClock fields */
    100         IReferenceClock_fnGetTime,
    101         IReferenceClock_fnAdviseTime,
    102         IReferenceClock_fnAdvisePeriodic,
    103         IReferenceClock_fnUnadvise,
     95    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     96    /* IUnknown fields */
     97    IReferenceClock_fnQueryInterface,
     98    IReferenceClock_fnAddRef,
     99    IReferenceClock_fnRelease,
     100    /* IReferenceClock fields */
     101    IReferenceClock_fnGetTime,
     102    IReferenceClock_fnAdviseTime,
     103    IReferenceClock_fnAdvisePeriodic,
     104    IReferenceClock_fnUnadvise,
    104105};
    105106
     
    107108void CSystemClock_InitIReferenceClock( CSystemClock* psc )
    108109{
    109         TRACE("(%p)\n",psc);
    110         ICOM_VTBL(&psc->refclk) = &irefclk;
     110    TRACE("(%p)\n",psc);
     111    ICOM_VTBL(&psc->refclk) = &irefclk;
    111112}
  • trunk/src/quartz/iunk.c

    r6578 r6649  
     1/* $Id: iunk.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */
    12/*
    23 * An implementation of IUnknown.
     
    2122IUnknown_fnQueryInterface(IUnknown* iface,REFIID riid,LPVOID *ppobj)
    2223{
    23         ICOM_THIS(QUARTZ_IUnkImpl,iface);
    24         size_t  ofs;
    25         DWORD   dwIndex;
     24    ICOM_THIS(QUARTZ_IUnkImpl,iface);
     25    size_t  ofs;
     26    DWORD   dwIndex;
    2627
    27         TRACE("(%p)->(%s,%p)\n",This,debugstr_guid(riid),ppobj);
     28    TRACE("(%p)->(%s,%p)\n",This,debugstr_guid(riid),ppobj);
    2829
    29         if ( ppobj == NULL )
    30                 return E_POINTER;
    31         *ppobj = NULL;
     30    if ( ppobj == NULL )
     31        return E_POINTER;
     32    *ppobj = NULL;
    3233
    33         ofs = 0;
     34    ofs = 0;
    3435
    35         if ( IsEqualGUID( &IID_IUnknown, riid ) )
    36         {
    37                 TRACE("IID_IUnknown - returns inner object.\n");
    38         }
    39         else
    40         {
    41                 for ( dwIndex = 0; dwIndex < This->dwEntries; dwIndex++ )
    42                 {
    43                         if ( IsEqualGUID( This->pEntries[dwIndex].piid, riid ) )
    44                         {
    45                                 ofs = This->pEntries[dwIndex].ofsVTPtr;
    46                                 break;
    47                         }
    48                 }
    49                 if ( dwIndex == This->dwEntries )
    50                 {
    51                         FIXME("unknown interface: %s\n",debugstr_guid(riid));
    52                         return E_NOINTERFACE;
    53                 }
    54         }
     36    if ( IsEqualGUID( &IID_IUnknown, riid ) )
     37    {
     38        TRACE("IID_IUnknown - returns inner object.\n");
     39    }
     40    else
     41    {
     42        for ( dwIndex = 0; dwIndex < This->dwEntries; dwIndex++ )
     43        {
     44            if ( IsEqualGUID( This->pEntries[dwIndex].piid, riid ) )
     45            {
     46                ofs = This->pEntries[dwIndex].ofsVTPtr;
     47                break;
     48            }
     49        }
     50        if ( dwIndex == This->dwEntries )
     51        {
     52            FIXME("unknown interface: %s\n",debugstr_guid(riid));
     53            return E_NOINTERFACE;
     54        }
     55    }
    5556
    56         *ppobj = (LPVOID)(((char*)This) + ofs);
    57         IUnknown_AddRef((IUnknown*)(*ppobj));
     57    *ppobj = (LPVOID)(((char*)This) + ofs);
     58    IUnknown_AddRef((IUnknown*)(*ppobj));
    5859
    59         return S_OK;
     60    return S_OK;
    6061}
    6162
     
    6364IUnknown_fnAddRef(IUnknown* iface)
    6465{
    65         ICOM_THIS(QUARTZ_IUnkImpl,iface);
     66    ICOM_THIS(QUARTZ_IUnkImpl,iface);
    6667
    67         TRACE("(%p)->()\n",This);
     68    TRACE("(%p)->()\n",This);
    6869
    69         return ++(This->ref);
     70    return ++(This->ref);
    7071}
    7172
     
    7374IUnknown_fnRelease(IUnknown* iface)
    7475{
    75         ICOM_THIS(QUARTZ_IUnkImpl,iface);
     76    ICOM_THIS(QUARTZ_IUnkImpl,iface);
    7677
    77         TRACE("(%p)->()\n",This);
    78         if ( (--(This->ref)) > 0 )
    79                 return This->ref;
     78    TRACE("(%p)->()\n",This);
     79    if ( (--(This->ref)) > 0 )
     80        return This->ref;
    8081
    81         QUARTZ_FreeObj(This);
     82    QUARTZ_FreeObj(This);
    8283
    83         return 0;
     84    return 0;
    8485}
    8586
    8687static ICOM_VTABLE(IUnknown) iunknown =
    8788{
    88         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    89         /* IUnknown fields */
    90         IUnknown_fnQueryInterface,
    91         IUnknown_fnAddRef,
    92         IUnknown_fnRelease,
     89    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     90    /* IUnknown fields */
     91    IUnknown_fnQueryInterface,
     92    IUnknown_fnAddRef,
     93    IUnknown_fnRelease,
    9394};
    9495
     
    9697void QUARTZ_IUnkInit( QUARTZ_IUnkImpl* pImpl, IUnknown* punkOuter )
    9798{
    98         TRACE("(%p)\n",pImpl);
     99    TRACE("(%p)\n",pImpl);
    99100
    100         ICOM_VTBL(pImpl) = &iunknown;
    101         pImpl->pEntries = NULL;
    102         pImpl->dwEntries = 0;
    103         pImpl->ref = 1;
    104         pImpl->punkControl = (IUnknown*)pImpl;
     101    ICOM_VTBL(pImpl) = &iunknown;
     102    pImpl->pEntries = NULL;
     103    pImpl->dwEntries = 0;
     104    pImpl->ref = 1;
     105    pImpl->punkControl = (IUnknown*)pImpl;
    105106
    106         /* for delegation. */
    107         if ( punkOuter != NULL )
    108                 pImpl->punkControl = punkOuter;
     107    /* for delegation. */
     108    if ( punkOuter != NULL )
     109        pImpl->punkControl = punkOuter;
    109110}
    110111
  • trunk/src/quartz/ividwin.c

    r6578 r6649  
     1/* $Id: ividwin.c,v 1.2 2001-09-05 13:36:37 bird Exp $ */
    12/*
    23 * Implementation of IVideoWindow for FilterGraph.
     
    3031IVideoWindow_fnQueryInterface(IVideoWindow* iface,REFIID riid,void** ppobj)
    3132{
    32         CFilterGraph_THIS(iface,vidwin);
    33 
    34         TRACE("(%p)->()\n",This);
    35 
    36         return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     33    CFilterGraph_THIS(iface,vidwin);
     34
     35    TRACE("(%p)->()\n",This);
     36
     37    return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3738}
    3839
     
    4041IVideoWindow_fnAddRef(IVideoWindow* iface)
    4142{
    42         CFilterGraph_THIS(iface,vidwin);
    43 
    44         TRACE("(%p)->()\n",This);
    45 
    46         return IUnknown_AddRef(This->unk.punkControl);
     43    CFilterGraph_THIS(iface,vidwin);
     44
     45    TRACE("(%p)->()\n",This);
     46
     47    return IUnknown_AddRef(This->unk.punkControl);
    4748}
    4849
     
    5051IVideoWindow_fnRelease(IVideoWindow* iface)
    5152{
    52         CFilterGraph_THIS(iface,vidwin);
    53 
    54         TRACE("(%p)->()\n",This);
    55 
    56         return IUnknown_Release(This->unk.punkControl);
     53    CFilterGraph_THIS(iface,vidwin);
     54
     55    TRACE("(%p)->()\n",This);
     56
     57    return IUnknown_Release(This->unk.punkControl);
    5758}
    5859
     
    6061IVideoWindow_fnGetTypeInfoCount(IVideoWindow* iface,UINT* pcTypeInfo)
    6162{
    62         CFilterGraph_THIS(iface,vidwin);
    63 
    64         FIXME("(%p)->()\n",This);
    65 
    66         return E_NOTIMPL;
     63    CFilterGraph_THIS(iface,vidwin);
     64
     65    FIXME("(%p)->()\n",This);
     66
     67    return E_NOTIMPL;
    6768}
    6869
     
    7071IVideoWindow_fnGetTypeInfo(IVideoWindow* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7172{
    72         CFilterGraph_THIS(iface,vidwin);
    73 
    74         FIXME("(%p)->()\n",This);
    75 
    76         return E_NOTIMPL;
     73    CFilterGraph_THIS(iface,vidwin);
     74
     75    FIXME("(%p)->()\n",This);
     76
     77    return E_NOTIMPL;
    7778}
    7879
     
    8081IVideoWindow_fnGetIDsOfNames(IVideoWindow* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8182{
    82         CFilterGraph_THIS(iface,vidwin);
    83 
    84         FIXME("(%p)->()\n",This);
    85 
    86         return E_NOTIMPL;
     83    CFilterGraph_THIS(iface,vidwin);
     84
     85    FIXME("(%p)->()\n",This);
     86
     87    return E_NOTIMPL;
    8788}
    8889
     
    9091IVideoWindow_fnInvoke(IVideoWindow* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9192{
    92         CFilterGraph_THIS(iface,vidwin);
    93 
    94         FIXME("(%p)->()\n",This);
    95 
    96         return E_NOTIMPL;
     93    CFilterGraph_THIS(iface,vidwin);
     94
     95    FIXME("(%p)->()\n",This);
     96
     97    return E_NOTIMPL;
    9798}
    9899
     
    102103IVideoWindow_fnput_Caption(IVideoWindow* iface,BSTR strCaption)
    103104{
    104         CFilterGraph_THIS(iface,vidwin);
    105 
    106         FIXME("(%p)->() stub!\n",This);
    107 
    108         return E_NOTIMPL;
     105    CFilterGraph_THIS(iface,vidwin);
     106
     107    FIXME("(%p)->() stub!\n",This);
     108
     109    return E_NOTIMPL;
    109110}
    110111
     
    112113IVideoWindow_fnget_Caption(IVideoWindow* iface,BSTR* pstrCaption)
    113114{
    114         CFilterGraph_THIS(iface,vidwin);
    115 
    116         FIXME("(%p)->() stub!\n",This);
    117 
    118         return E_NOTIMPL;
     115    CFilterGraph_THIS(iface,vidwin);
     116
     117    FIXME("(%p)->() stub!\n",This);
     118
     119    return E_NOTIMPL;
    119120}
    120121
     
    122123IVideoWindow_fnput_WindowStyle(IVideoWindow* iface,long lStyle)
    123124{
    124         CFilterGraph_THIS(iface,vidwin);
    125 
    126         FIXME("(%p)->() stub!\n",This);
    127 
    128         return E_NOTIMPL;
     125    CFilterGraph_THIS(iface,vidwin);
     126
     127    FIXME("(%p)->() stub!\n",This);
     128
     129    return E_NOTIMPL;
    129130}
    130131
     
    132133IVideoWindow_fnget_WindowStyle(IVideoWindow* iface,long* plStyle)
    133134{
    134         CFilterGraph_THIS(iface,vidwin);
    135 
    136         FIXME("(%p)->() stub!\n",This);
    137 
    138         return E_NOTIMPL;
     135    CFilterGraph_THIS(iface,vidwin);
     136
     137    FIXME("(%p)->() stub!\n",This);
     138
     139    return E_NOTIMPL;
    139140}
    140141
     
    142143IVideoWindow_fnput_WindowStyleEx(IVideoWindow* iface,long lExStyle)
    143144{
    144         CFilterGraph_THIS(iface,vidwin);
    145 
    146         FIXME("(%p)->() stub!\n",This);
    147 
    148         return E_NOTIMPL;
     145    CFilterGraph_THIS(iface,vidwin);
     146
     147    FIXME("(%p)->() stub!\n",This);
     148
     149    return E_NOTIMPL;
    149150}
    150151
     
    152153IVideoWindow_fnget_WindowStyleEx(IVideoWindow* iface,long* plExStyle)
    153154{
    154         CFilterGraph_THIS(iface,vidwin);
    155 
    156         FIXME("(%p)->() stub!\n",This);
    157 
    158         return E_NOTIMPL;
     155    CFilterGraph_THIS(iface,vidwin);
     156
     157    FIXME("(%p)->() stub!\n",This);
     158
     159    return E_NOTIMPL;
    159160}
    160161
     
    162163IVideoWindow_fnput_AutoShow(IVideoWindow* iface,long lAutoShow)
    163164{
    164         CFilterGraph_THIS(iface,vidwin);
    165 
    166         FIXME("(%p)->() stub!\n",This);
    167 
    168         return E_NOTIMPL;
     165    CFilterGraph_THIS(iface,vidwin);
     166
     167    FIXME("(%p)->() stub!\n",This);
     168
     169    return E_NOTIMPL;
    169170}
    170171
     
    172173IVideoWindow_fnget_AutoShow(IVideoWindow* iface,long* plAutoShow)
    173174{
    174         CFilterGraph_THIS(iface,vidwin);
    175 
    176         FIXME("(%p)->() stub!\n",This);
    177 
    178         return E_NOTIMPL;
     175    CFilterGraph_THIS(iface,vidwin);
     176
     177    FIXME("(%p)->() stub!\n",This);
     178
     179    return E_NOTIMPL;
    179180}
    180181
     
    182183IVideoWindow_fnput_WindowState(IVideoWindow* iface,long lState)
    183184{
    184         CFilterGraph_THIS(iface,vidwin);
    185 
    186         FIXME("(%p)->() stub!\n",This);
    187 
    188         return E_NOTIMPL;
     185    CFilterGraph_THIS(iface,vidwin);
     186
     187    FIXME("(%p)->() stub!\n",This);
     188
     189    return E_NOTIMPL;
    189190}
    190191
     
    192193IVideoWindow_fnget_WindowState(IVideoWindow* iface,long* plState)
    193194{
    194         CFilterGraph_THIS(iface,vidwin);
    195 
    196         FIXME("(%p)->() stub!\n",This);
    197 
    198         return E_NOTIMPL;
     195    CFilterGraph_THIS(iface,vidwin);
     196
     197    FIXME("(%p)->() stub!\n",This);
     198
     199    return E_NOTIMPL;
    199200}
    200201
     
    202203IVideoWindow_fnput_BackgroundPalette(IVideoWindow* iface,long lBackPal)
    203204{
    204         CFilterGraph_THIS(iface,vidwin);
    205 
    206         FIXME("(%p)->() stub!\n",This);
    207 
    208         return E_NOTIMPL;
     205    CFilterGraph_THIS(iface,vidwin);
     206
     207    FIXME("(%p)->() stub!\n",This);
     208
     209    return E_NOTIMPL;
    209210}
    210211
     
    212213IVideoWindow_fnget_BackgroundPalette(IVideoWindow* iface,long* plBackPal)
    213214{
    214         CFilterGraph_THIS(iface,vidwin);
    215 
    216         FIXME("(%p)->() stub!\n",This);
    217 
    218         return E_NOTIMPL;
     215    CFilterGraph_THIS(iface,vidwin);
     216
     217    FIXME("(%p)->() stub!\n",This);
     218
     219    return E_NOTIMPL;
    219220}
    220221
     
    222223IVideoWindow_fnput_Visible(IVideoWindow* iface,long lVisible)
    223224{
    224         CFilterGraph_THIS(iface,vidwin);
    225 
    226         FIXME("(%p)->() stub!\n",This);
    227 
    228         return E_NOTIMPL;
     225    CFilterGraph_THIS(iface,vidwin);
     226
     227    FIXME("(%p)->() stub!\n",This);
     228
     229    return E_NOTIMPL;
    229230}
    230231
     
    232233IVideoWindow_fnget_Visible(IVideoWindow* iface,long* plVisible)
    233234{
    234         CFilterGraph_THIS(iface,vidwin);
    235 
    236         FIXME("(%p)->() stub!\n",This);
    237 
    238         return E_NOTIMPL;
     235    CFilterGraph_THIS(iface,vidwin);
     236
     237    FIXME("(%p)->() stub!\n",This);
     238
     239    return E_NOTIMPL;
    239240}
    240241
     
    242243IVideoWindow_fnput_Left(IVideoWindow* iface,long lLeft)
    243244{
    244         CFilterGraph_THIS(iface,vidwin);
    245 
    246         FIXME("(%p)->() stub!\n",This);
    247 
    248         return E_NOTIMPL;
     245    CFilterGraph_THIS(iface,vidwin);
     246
     247    FIXME("(%p)->() stub!\n",This);
     248
     249    return E_NOTIMPL;
    249250}
    250251
     
    252253IVideoWindow_fnget_Left(IVideoWindow* iface,long* plLeft)
    253254{
    254         CFilterGraph_THIS(iface,vidwin);
    255 
    256         FIXME("(%p)->() stub!\n",This);
    257 
    258         return E_NOTIMPL;
     255    CFilterGraph_THIS(iface,vidwin);
     256
     257    FIXME("(%p)->() stub!\n",This);
     258
     259    return E_NOTIMPL;
    259260}
    260261
     
    262263IVideoWindow_fnput_Width(IVideoWindow* iface,long lWidth)
    263264{
    264         CFilterGraph_THIS(iface,vidwin);
    265 
    266         FIXME("(%p)->() stub!\n",This);
    267 
    268         return E_NOTIMPL;
     265    CFilterGraph_THIS(iface,vidwin);
     266
     267    FIXME("(%p)->() stub!\n",This);
     268
     269    return E_NOTIMPL;
    269270}
    270271
     
    272273IVideoWindow_fnget_Width(IVideoWindow* iface,long* plWidth)
    273274{
    274         CFilterGraph_THIS(iface,vidwin);
    275 
    276         FIXME("(%p)->() stub!\n",This);
    277 
    278         return E_NOTIMPL;
     275    CFilterGraph_THIS(iface,vidwin);
     276
     277    FIXME("(%p)->() stub!\n",This);
     278
     279    return E_NOTIMPL;
    279280}
    280281
     
    282283IVideoWindow_fnput_Top(IVideoWindow* iface,long lTop)
    283284{
    284         CFilterGraph_THIS(iface,vidwin);
    285 
    286         FIXME("(%p)->() stub!\n",This);
    287 
    288         return E_NOTIMPL;
     285    CFilterGraph_THIS(iface,vidwin);
     286
     287    FIXME("(%p)->() stub!\n",This);
     288
     289    return E_NOTIMPL;
    289290}
    290291
     
    292293IVideoWindow_fnget_Top(IVideoWindow* iface,long* plTop)
    293294{
    294         CFilterGraph_THIS(iface,vidwin);
    295 
    296         FIXME("(%p)->() stub!\n",This);
    297 
    298         return E_NOTIMPL;
     295    CFilterGraph_THIS(iface,vidwin);
     296
     297    FIXME("(%p)->() stub!\n",This);
     298
     299    return E_NOTIMPL;
    299300}
    300301
     
    302303IVideoWindow_fnput_Height(IVideoWindow* iface,long lHeight)
    303304{
    304         CFilterGraph_THIS(iface,vidwin);
    305 
    306         FIXME("(%p)->() stub!\n",This);
    307 
    308         return E_NOTIMPL;
     305    CFilterGraph_THIS(iface,vidwin);
     306
     307    FIXME("(%p)->() stub!\n",This);
     308
     309    return E_NOTIMPL;
    309310}
    310311
     
    312313IVideoWindow_fnget_Height(IVideoWindow* iface,long* plHeight)
    313314{
    314         CFilterGraph_THIS(iface,vidwin);
    315 
    316         FIXME("(%p)->() stub!\n",This);
    317 
    318         return E_NOTIMPL;
     315    CFilterGraph_THIS(iface,vidwin);
     316
     317    FIXME("(%p)->() stub!\n",This);
     318
     319    return E_NOTIMPL;
    319320}
    320321
     
    322323IVideoWindow_fnput_Owner(IVideoWindow* iface,OAHWND hwnd)
    323324{
    324         CFilterGraph_THIS(iface,vidwin);
    325 
    326         FIXME("(%p)->() stub!\n",This);
    327 
    328         return E_NOTIMPL;
     325    CFilterGraph_THIS(iface,vidwin);
     326
     327    FIXME("(%p)->() stub!\n",This);
     328
     329    return E_NOTIMPL;
    329330}
    330331
     
    332333IVideoWindow_fnget_Owner(IVideoWindow* iface,OAHWND* phwnd)
    333334{
    334         CFilterGraph_THIS(iface,vidwin);
    335 
    336         FIXME("(%p)->() stub!\n",This);
    337 
    338         return E_NOTIMPL;
     335    CFilterGraph_THIS(iface,vidwin);
     336
     337    FIXME("(%p)->() stub!\n",This);
     338
     339    return E_NOTIMPL;
    339340}
    340341
     
    342343IVideoWindow_fnput_MessageDrain(IVideoWindow* iface,OAHWND hwnd)
    343344{
    344         CFilterGraph_THIS(iface,vidwin);
    345 
    346         FIXME("(%p)->() stub!\n",This);
    347 
    348         return E_NOTIMPL;
     345    CFilterGraph_THIS(iface,vidwin);
     346
     347    FIXME("(%p)->() stub!\n",This);
     348
     349    return E_NOTIMPL;
    349350}
    350351
     
    352353IVideoWindow_fnget_MessageDrain(IVideoWindow* iface,OAHWND* phwnd)
    353354{
    354         CFilterGraph_THIS(iface,vidwin);
    355 
    356         FIXME("(%p)->() stub!\n",This);
    357 
    358         return E_NOTIMPL;
     355    CFilterGraph_THIS(iface,vidwin);
     356
     357    FIXME("(%p)->() stub!\n",This);
     358
     359    return E_NOTIMPL;
    359360}
    360361
     
    362363IVideoWindow_fnget_BorderColor(IVideoWindow* iface,long* plColor)
    363364{
    364         CFilterGraph_THIS(iface,vidwin);
    365 
    366         FIXME("(%p)->() stub!\n",This);
    367 
    368         return E_NOTIMPL;
     365    CFilterGraph_THIS(iface,vidwin);
     366
     367    FIXME("(%p)->() stub!\n",This);
     368
     369    return E_NOTIMPL;
    369370}
    370371
     
    372373IVideoWindow_fnput_BorderColor(IVideoWindow* iface,long lColor)
    373374{
    374         CFilterGraph_THIS(iface,vidwin);
    375 
    376         FIXME("(%p)->() stub!\n",This);
    377 
    378         return E_NOTIMPL;
     375    CFilterGraph_THIS(iface,vidwin);
     376
     377    FIXME("(%p)->() stub!\n",This);
     378
     379    return E_NOTIMPL;
    379380}
    380381
     
    382383IVideoWindow_fnget_FullScreenMode(IVideoWindow* iface,long* plMode)
    383384{
    384         CFilterGraph_THIS(iface,vidwin);
    385 
    386         FIXME("(%p)->() stub!\n",This);
    387 
    388         return E_NOTIMPL;
     385    CFilterGraph_THIS(iface,vidwin);
     386
     387    FIXME("(%p)->() stub!\n",This);
     388
     389    return E_NOTIMPL;
    389390}
    390391
     
    392393IVideoWindow_fnput_FullScreenMode(IVideoWindow* iface,long lMode)
    393394{
    394         CFilterGraph_THIS(iface,vidwin);
    395 
    396         FIXME("(%p)->() stub!\n",This);
    397 
    398         return E_NOTIMPL;
     395    CFilterGraph_THIS(iface,vidwin);
     396
     397    FIXME("(%p)->() stub!\n",This);
     398
     399    return E_NOTIMPL;
    399400}
    400401
     
    402403IVideoWindow_fnSetWindowForeground(IVideoWindow* iface,long lFocus)
    403404{
    404         CFilterGraph_THIS(iface,vidwin);
    405 
    406         FIXME("(%p)->() stub!\n",This);
    407 
    408         return E_NOTIMPL;
     405    CFilterGraph_THIS(iface,vidwin);
     406
     407    FIXME("(%p)->() stub!\n",This);
     408
     409    return E_NOTIMPL;
    409410}
    410411
     
    412413IVideoWindow_fnNotifyOwnerMessage(IVideoWindow* iface,OAHWND hwnd,long message,LONG_PTR wParam,LONG_PTR lParam)
    413414{
    414         CFilterGraph_THIS(iface,vidwin);
    415 
    416         FIXME("(%p)->() stub!\n",This);
    417 
    418         return E_NOTIMPL;
     415    CFilterGraph_THIS(iface,vidwin);
     416
     417    FIXME("(%p)->() stub!\n",This);
     418
     419    return E_NOTIMPL;
    419420}
    420421
     
    422423IVideoWindow_fnSetWindowPosition(IVideoWindow* iface,long lLeft,long lTop,long lWidth,long lHeight)
    423424{
    424         CFilterGraph_THIS(iface,vidwin);
    425 
    426         FIXME("(%p)->() stub!\n",This);
    427 
    428         return E_NOTIMPL;
     425    CFilterGraph_THIS(iface,vidwin);
     426
     427    FIXME("(%p)->() stub!\n",This);
     428
     429    return E_NOTIMPL;
    429430}
    430431
     
    432433IVideoWindow_fnGetWindowPosition(IVideoWindow* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
    433434{
    434         CFilterGraph_THIS(iface,vidwin);
    435 
    436         FIXME("(%p)->() stub!\n",This);
    437 
    438         return E_NOTIMPL;
     435    CFilterGraph_THIS(iface,vidwin);
     436
     437    FIXME("(%p)->() stub!\n",This);
     438
     439    return E_NOTIMPL;
    439440}
    440441
     
    442443IVideoWindow_fnGetMinIdealImageSize(IVideoWindow* iface,long* plWidth,long* plHeight)
    443444{
    444         CFilterGraph_THIS(iface,vidwin);
    445 
    446         FIXME("(%p)->() stub!\n",This);
    447 
    448         return E_NOTIMPL;
     445    CFilterGraph_THIS(iface,vidwin);
     446
     447    FIXME("(%p)->() stub!\n",This);
     448
     449    return E_NOTIMPL;
    449450}
    450451
     
    452453IVideoWindow_fnGetMaxIdealImageSize(IVideoWindow* iface,long* plWidth,long* plHeight)
    453454{
    454         CFilterGraph_THIS(iface,vidwin);
    455 
    456         FIXME("(%p)->() stub!\n",This);
    457 
    458         return E_NOTIMPL;
     455    CFilterGraph_THIS(iface,vidwin);
     456
     457    FIXME("(%p)->() stub!\n",This);
     458
     459    return E_NOTIMPL;
    459460}
    460461
     
    462463IVideoWindow_fnGetRestorePosition(IVideoWindow* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight)
    463464{
    464         CFilterGraph_THIS(iface,vidwin);
    465 
    466         FIXME("(%p)->() stub!\n",This);
    467 
    468         return E_NOTIMPL;
     465    CFilterGraph_THIS(iface,vidwin);
     466
     467    FIXME("(%p)->() stub!\n",This);
     468
     469    return E_NOTIMPL;
    469470}
    470471
     
    472473IVideoWindow_fnHideCursor(IVideoWindow* iface,long lHide)
    473474{
    474         CFilterGraph_THIS(iface,vidwin);
    475 
    476         FIXME("(%p)->() stub!\n",This);
    477 
    478         return E_NOTIMPL;
     475    CFilterGraph_THIS(iface,vidwin);
     476
     477    FIXME("(%p)->() stub!\n",This);
     478
     479    return E_NOTIMPL;
    479480}
    480481
     
    482483IVideoWindow_fnIsCursorHidden(IVideoWindow* iface,long* plHide)
    483484{
    484         CFilterGraph_THIS(iface,vidwin);
    485 
    486         FIXME("(%p)->() stub!\n",This);
    487 
    488         return E_NOTIMPL;
     485    CFilterGraph_THIS(iface,vidwin);
     486
     487    FIXME("(%p)->() stub!\n",This);
     488
     489    return E_NOTIMPL;
    489490}
    490491
     
    494495static ICOM_VTABLE(IVideoWindow) ivideowindow =
    495496{
    496         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    497         /* IUnknown fields */
    498         IVideoWindow_fnQueryInterface,
    499         IVideoWindow_fnAddRef,
    500         IVideoWindow_fnRelease,
    501         /* IDispatch fields */
    502         IVideoWindow_fnGetTypeInfoCount,
    503         IVideoWindow_fnGetTypeInfo,
    504         IVideoWindow_fnGetIDsOfNames,
    505         IVideoWindow_fnInvoke,
    506         /* IVideoWindow fields */
    507         IVideoWindow_fnput_Caption,
    508         IVideoWindow_fnget_Caption,
    509         IVideoWindow_fnput_WindowStyle,
    510         IVideoWindow_fnget_WindowStyle,
    511         IVideoWindow_fnput_WindowStyleEx,
    512         IVideoWindow_fnget_WindowStyleEx,
    513         IVideoWindow_fnput_AutoShow,
    514         IVideoWindow_fnget_AutoShow,
    515         IVideoWindow_fnput_WindowState,
    516         IVideoWindow_fnget_WindowState,
    517         IVideoWindow_fnput_BackgroundPalette,
    518         IVideoWindow_fnget_BackgroundPalette,
    519         IVideoWindow_fnput_Visible,
    520         IVideoWindow_fnget_Visible,
    521         IVideoWindow_fnput_Left,
    522         IVideoWindow_fnget_Left,
    523         IVideoWindow_fnput_Width,
    524         IVideoWindow_fnget_Width,
    525         IVideoWindow_fnput_Top,
    526         IVideoWindow_fnget_Top,
    527         IVideoWindow_fnput_Height,
    528         IVideoWindow_fnget_Height,
    529         IVideoWindow_fnput_Owner,
    530         IVideoWindow_fnget_Owner,
    531         IVideoWindow_fnput_MessageDrain,
    532         IVideoWindow_fnget_MessageDrain,
    533         IVideoWindow_fnget_BorderColor,
    534         IVideoWindow_fnput_BorderColor,
    535         IVideoWindow_fnget_FullScreenMode,
    536         IVideoWindow_fnput_FullScreenMode,
    537         IVideoWindow_fnSetWindowForeground,
    538         IVideoWindow_fnNotifyOwnerMessage,
    539         IVideoWindow_fnSetWindowPosition,
    540         IVideoWindow_fnGetWindowPosition,
    541         IVideoWindow_fnGetMinIdealImageSize,
    542         IVideoWindow_fnGetMaxIdealImageSize,
    543         IVideoWindow_fnGetRestorePosition,
    544         IVideoWindow_fnHideCursor,
    545         IVideoWindow_fnIsCursorHidden,
     497    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     498    /* IUnknown fields */
     499    IVideoWindow_fnQueryInterface,
     500    IVideoWindow_fnAddRef,
     501    IVideoWindow_fnRelease,
     502    /* IDispatch fields */
     503    IVideoWindow_fnGetTypeInfoCount,
     504    IVideoWindow_fnGetTypeInfo,
     505    IVideoWindow_fnGetIDsOfNames,
     506    IVideoWindow_fnInvoke,
     507    /* IVideoWindow fields */
     508    IVideoWindow_fnput_Caption,
     509    IVideoWindow_fnget_Caption,
     510    IVideoWindow_fnput_WindowStyle,
     511    IVideoWindow_fnget_WindowStyle,
     512    IVideoWindow_fnput_WindowStyleEx,
     513    IVideoWindow_fnget_WindowStyleEx,
     514    IVideoWindow_fnput_AutoShow,
     515    IVideoWindow_fnget_AutoShow,
     516    IVideoWindow_fnput_WindowState,
     517    IVideoWindow_fnget_WindowState,
     518    IVideoWindow_fnput_BackgroundPalette,
     519    IVideoWindow_fnget_BackgroundPalette,
     520    IVideoWindow_fnput_Visible,
     521    IVideoWindow_fnget_Visible,
     522    IVideoWindow_fnput_Left,
     523    IVideoWindow_fnget_Left,
     524    IVideoWindow_fnput_Width,
     525    IVideoWindow_fnget_Width,
     526    IVideoWindow_fnput_Top,
     527    IVideoWindow_fnget_Top,
     528    IVideoWindow_fnput_Height,
     529    IVideoWindow_fnget_Height,
     530    IVideoWindow_fnput_Owner,
     531    IVideoWindow_fnget_Owner,
     532    IVideoWindow_fnput_MessageDrain,
     533    IVideoWindow_fnget_MessageDrain,
     534    IVideoWindow_fnget_BorderColor,
     535    IVideoWindow_fnput_BorderColor,
     536    IVideoWindow_fnget_FullScreenMode,
     537    IVideoWindow_fnput_FullScreenMode,
     538    IVideoWindow_fnSetWindowForeground,
     539    IVideoWindow_fnNotifyOwnerMessage,
     540    IVideoWindow_fnSetWindowPosition,
     541    IVideoWindow_fnGetWindowPosition,
     542    IVideoWindow_fnGetMinIdealImageSize,
     543    IVideoWindow_fnGetMaxIdealImageSize,
     544    IVideoWindow_fnGetRestorePosition,
     545    IVideoWindow_fnHideCursor,
     546    IVideoWindow_fnIsCursorHidden,
    546547
    547548};
     
    550551void CFilterGraph_InitIVideoWindow( CFilterGraph* pfg )
    551552{
    552         TRACE("(%p)\n",pfg);
    553         ICOM_VTBL(&pfg->vidwin) = &ivideowindow;
    554 }
     553    TRACE("(%p)\n",pfg);
     554    ICOM_VTBL(&pfg->vidwin) = &ivideowindow;
     555}
  • trunk/src/quartz/main.c

    r6578 r6649  
     1/* $Id: main.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */
     2
    13#include "config.h"
    24
     
    2224typedef struct QUARTZ_CLASSENTRY
    2325{
    24         const CLSID*    pclsid;
    25         QUARTZ_pCreateIUnknown  pCreateIUnk;
     26    const CLSID*    pclsid;
     27    QUARTZ_pCreateIUnknown  pCreateIUnk;
    2628} QUARTZ_CLASSENTRY;
    2729
     
    3638static ICOM_VTABLE(IClassFactory) iclassfact =
    3739{
    38         ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    39         IClassFactory_fnQueryInterface,
    40         IClassFactory_fnAddRef,
    41         IClassFactory_fnRelease,
    42         IClassFactory_fnCreateInstance,
    43         IClassFactory_fnLockServer
     40    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     41    IClassFactory_fnQueryInterface,
     42    IClassFactory_fnAddRef,
     43    IClassFactory_fnRelease,
     44    IClassFactory_fnCreateInstance,
     45    IClassFactory_fnLockServer
    4446};
    4547
    4648typedef struct
    4749{
    48         /* IUnknown fields */
    49         ICOM_VFIELD(IClassFactory);
    50         DWORD   ref;
    51         /* IClassFactory fields */
    52         const QUARTZ_CLASSENTRY* pEntry;
     50    /* IUnknown fields */
     51    ICOM_VFIELD(IClassFactory);
     52    DWORD   ref;
     53    /* IClassFactory fields */
     54    const QUARTZ_CLASSENTRY* pEntry;
    5355} IClassFactoryImpl;
    5456
    5557static const QUARTZ_CLASSENTRY QUARTZ_ClassList[] =
    5658{
    57         { &CLSID_FilterGraph, &QUARTZ_CreateFilterGraph },
    58         { &CLSID_SystemClock, &QUARTZ_CreateSystemClock },
    59         { &CLSID_MemoryAllocator, &QUARTZ_CreateMemoryAllocator },
    60         { NULL, NULL },
     59    { &CLSID_FilterGraph, &QUARTZ_CreateFilterGraph },
     60    { &CLSID_SystemClock, &QUARTZ_CreateSystemClock },
     61    { &CLSID_MemoryAllocator, &QUARTZ_CreateMemoryAllocator },
     62    { NULL, NULL },
    6163};
    6264
     
    6870void* QUARTZ_AllocObj( DWORD dwSize )
    6971{
    70         void*   pv;
    71 
    72         EnterCriticalSection( &csHeap );
    73         dwClassObjRef ++;
    74         pv = HeapAlloc( hDLLHeap, 0, dwSize );
    75         if ( pv == NULL )
    76                 dwClassObjRef --;
    77         LeaveCriticalSection( &csHeap );
    78 
    79         return pv;
     72    void*   pv;
     73
     74    EnterCriticalSection( &csHeap );
     75    dwClassObjRef ++;
     76    pv = HeapAlloc( hDLLHeap, 0, dwSize );
     77    if ( pv == NULL )
     78        dwClassObjRef --;
     79    LeaveCriticalSection( &csHeap );
     80
     81    return pv;
    8082}
    8183
    8284void QUARTZ_FreeObj( void* pobj )
    8385{
    84         EnterCriticalSection( &csHeap );
    85         HeapFree( hDLLHeap, 0, pobj );
    86         dwClassObjRef --;
    87         LeaveCriticalSection( &csHeap );
     86    EnterCriticalSection( &csHeap );
     87    HeapFree( hDLLHeap, 0, pobj );
     88    dwClassObjRef --;
     89    LeaveCriticalSection( &csHeap );
    8890}
    8991
    9092void* QUARTZ_AllocMem( DWORD dwSize )
    9193{
    92         return HeapAlloc( hDLLHeap, 0, dwSize );
     94    return HeapAlloc( hDLLHeap, 0, dwSize );
    9395}
    9496
    9597void QUARTZ_FreeMem( void* pMem )
    9698{
    97         HeapFree( hDLLHeap, 0, pMem );
     99    HeapFree( hDLLHeap, 0, pMem );
    98100}
    99101
     
    103105IClassFactory_fnQueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj)
    104106{
    105         ICOM_THIS(IClassFactoryImpl,iface);
    106 
    107         TRACE("(%p)->(%p,%p)\n",This,riid,ppobj);
    108         if ( ( IsEqualGUID( &IID_IUnknown, riid ) ) ||
    109              ( IsEqualGUID( &IID_IClassFactory, riid ) ) )
    110         {
    111                 *ppobj = iface;
    112                 IClassFactory_AddRef(iface);
    113                 return S_OK;
    114         }
    115 
    116         return E_NOINTERFACE;
     107    ICOM_THIS(IClassFactoryImpl,iface);
     108
     109    TRACE("(%p)->(%p,%p)\n",This,riid,ppobj);
     110    if ( ( IsEqualGUID( &IID_IUnknown, riid ) ) ||
     111         ( IsEqualGUID( &IID_IClassFactory, riid ) ) )
     112    {
     113        *ppobj = iface;
     114        IClassFactory_AddRef(iface);
     115        return S_OK;
     116    }
     117
     118    return E_NOINTERFACE;
    117119}
    118120
    119121static ULONG WINAPI IClassFactory_fnAddRef(LPCLASSFACTORY iface)
    120122{
    121         ICOM_THIS(IClassFactoryImpl,iface);
    122 
    123         TRACE("(%p)->()\n",This);
    124 
    125         return ++(This->ref);
     123    ICOM_THIS(IClassFactoryImpl,iface);
     124
     125    TRACE("(%p)->()\n",This);
     126
     127    return ++(This->ref);
    126128}
    127129
    128130static ULONG WINAPI IClassFactory_fnRelease(LPCLASSFACTORY iface)
    129131{
    130         ICOM_THIS(IClassFactoryImpl,iface);
    131 
    132         TRACE("(%p)->()\n",This);
    133         if ( (--(This->ref)) > 0 )
    134                 return This->ref;
    135 
    136         QUARTZ_FreeObj(This);
    137         return 0;
     132    ICOM_THIS(IClassFactoryImpl,iface);
     133
     134    TRACE("(%p)->()\n",This);
     135    if ( (--(This->ref)) > 0 )
     136        return This->ref;
     137
     138    QUARTZ_FreeObj(This);
     139    return 0;
    138140}
    139141
    140142static HRESULT WINAPI IClassFactory_fnCreateInstance(LPCLASSFACTORY iface,LPUNKNOWN pOuter,REFIID riid,LPVOID *ppobj)
    141143{
    142         ICOM_THIS(IClassFactoryImpl,iface);
    143         HRESULT hr;
    144         IUnknown*       punk;
    145 
    146         TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);
    147 
    148         if ( ppobj == NULL )
    149                 return E_POINTER;
    150         if ( pOuter != NULL && !IsEqualGUID( riid, &IID_IUnknown ) )
    151                 return CLASS_E_NOAGGREGATION;
    152 
    153         *ppobj = NULL;
    154 
    155         hr = (*This->pEntry->pCreateIUnk)(pOuter,(void**)&punk);
    156         if ( hr != S_OK )
    157                 return hr;
    158 
    159         hr = IUnknown_QueryInterface(punk,riid,ppobj);
    160         IUnknown_Release(punk);
    161 
    162         return hr;
     144    ICOM_THIS(IClassFactoryImpl,iface);
     145    HRESULT hr;
     146    IUnknown*   punk;
     147
     148    TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);
     149
     150    if ( ppobj == NULL )
     151        return E_POINTER;
     152    if ( pOuter != NULL && !IsEqualGUID( riid, &IID_IUnknown ) )
     153        return CLASS_E_NOAGGREGATION;
     154
     155    *ppobj = NULL;
     156
     157    hr = (*This->pEntry->pCreateIUnk)(pOuter,(void**)&punk);
     158    if ( hr != S_OK )
     159        return hr;
     160
     161    hr = IUnknown_QueryInterface(punk,riid,ppobj);
     162    IUnknown_Release(punk);
     163
     164    return hr;
    163165}
    164166
    165167static HRESULT WINAPI IClassFactory_fnLockServer(LPCLASSFACTORY iface,BOOL dolock)
    166168{
    167         ICOM_THIS(IClassFactoryImpl,iface);
    168         HRESULT hr;
    169 
    170         FIXME("(%p)->(%d),stub!\n",This,dolock);
    171         if (dolock)
    172                 hr = IClassFactory_AddRef(iface);
    173         else
    174                 hr = IClassFactory_Release(iface);
    175 
    176         return hr;
     169    ICOM_THIS(IClassFactoryImpl,iface);
     170    HRESULT hr;
     171
     172    FIXME("(%p)->(%d),stub!\n",This,dolock);
     173    if (dolock)
     174        hr = IClassFactory_AddRef(iface);
     175    else
     176        hr = IClassFactory_Release(iface);
     177
     178    return hr;
    177179}
    178180
     
    181183static HRESULT IClassFactory_Alloc( const CLSID* pclsid, void** ppobj )
    182184{
    183         const QUARTZ_CLASSENTRY*        pEntry;
    184         IClassFactoryImpl*      pImpl;
    185 
    186         TRACE( "(%s,%p)\n", debugstr_guid(pclsid), ppobj );
    187 
    188         pEntry = QUARTZ_ClassList;
    189         while ( pEntry->pclsid != NULL )
    190         {
    191                 if ( IsEqualGUID( pclsid, pEntry->pclsid ) )
    192                         goto found;
    193         }
    194 
    195         return CLASS_E_CLASSNOTAVAILABLE;
     185    const QUARTZ_CLASSENTRY*    pEntry;
     186    IClassFactoryImpl*  pImpl;
     187
     188    TRACE( "(%s,%p)\n", debugstr_guid(pclsid), ppobj );
     189
     190    pEntry = QUARTZ_ClassList;
     191    while ( pEntry->pclsid != NULL )
     192    {
     193        if ( IsEqualGUID( pclsid, pEntry->pclsid ) )
     194            goto found;
     195    }
     196
     197    return CLASS_E_CLASSNOTAVAILABLE;
    196198found:
    197         pImpl = (IClassFactoryImpl*)QUARTZ_AllocObj( sizeof(IClassFactoryImpl) );
    198         if ( pImpl == NULL )
    199                 return E_OUTOFMEMORY;
    200 
    201         ICOM_VTBL(pImpl) = &iclassfact;
    202         pImpl->ref = 1;
    203         pImpl->pEntry = pEntry;
    204 
    205         *ppobj = (void*)pImpl;
    206         return S_OK;
    207 }
    208 
    209 
    210 /***********************************************************************
    211  *              QUARTZ_InitProcess (internal)
     199    pImpl = (IClassFactoryImpl*)QUARTZ_AllocObj( sizeof(IClassFactoryImpl) );
     200    if ( pImpl == NULL )
     201        return E_OUTOFMEMORY;
     202
     203    ICOM_VTBL(pImpl) = &iclassfact;
     204    pImpl->ref = 1;
     205    pImpl->pEntry = pEntry;
     206
     207    *ppobj = (void*)pImpl;
     208    return S_OK;
     209}
     210
     211
     212/***********************************************************************
     213 *      QUARTZ_InitProcess (internal)
    212214 */
    213215static BOOL QUARTZ_InitProcess( void )
    214216{
    215         TRACE("()\n");
    216 
    217         dwClassObjRef = 0;
    218         hDLLHeap = (HANDLE)NULL;
    219         InitializeCriticalSection( &csHeap );
    220 
    221         hDLLHeap = HeapCreate( 0, 0x10000, 0 );
    222         if ( hDLLHeap == (HANDLE)NULL )
    223                 return FALSE;
    224 
    225         return TRUE;
    226 }
    227 
    228 /***********************************************************************
    229  *              QUARTZ_UninitProcess (internal)
     217    TRACE("()\n");
     218
     219    dwClassObjRef = 0;
     220    hDLLHeap = (HANDLE)NULL;
     221    InitializeCriticalSection( &csHeap );
     222
     223    hDLLHeap = HeapCreate( 0, 0x10000, 0 );
     224    if ( hDLLHeap == (HANDLE)NULL )
     225        return FALSE;
     226
     227    return TRUE;
     228}
     229
     230/***********************************************************************
     231 *      QUARTZ_UninitProcess (internal)
    230232 */
    231233static void QUARTZ_UninitProcess( void )
    232234{
    233         TRACE("()\n");
    234 
    235         if ( dwClassObjRef != 0 )
    236                 ERR( "you must release some objects allocated from quartz.\n" );
    237         if ( hDLLHeap != (HANDLE)NULL )
    238         {
    239                 HeapDestroy( hDLLHeap );
    240                 hDLLHeap = (HANDLE)NULL;
    241         }
    242         DeleteCriticalSection( &csHeap );
    243 }
    244 
    245 /***********************************************************************
    246  *              QUARTZ_DllMain
     235    TRACE("()\n");
     236
     237    if ( dwClassObjRef != 0 )
     238        ERR( "you must release some objects allocated from quartz.\n" );
     239    if ( hDLLHeap != (HANDLE)NULL )
     240    {
     241        HeapDestroy( hDLLHeap );
     242        hDLLHeap = (HANDLE)NULL;
     243    }
     244    DeleteCriticalSection( &csHeap );
     245}
     246
     247/***********************************************************************
     248 *      QUARTZ_DllMain
    247249 */
    248250BOOL WINAPI QUARTZ_DllMain(
    249         HINSTANCE hInstDLL,
    250         DWORD fdwReason,
    251         LPVOID lpvReserved )
    252 {
    253         switch ( fdwReason )
    254         {
    255         case DLL_PROCESS_ATTACH:
    256                 if ( !QUARTZ_InitProcess() )
    257                         return FALSE;
    258                 break;
    259         case DLL_PROCESS_DETACH:
    260                 QUARTZ_UninitProcess();
    261                 break;
    262         case DLL_THREAD_ATTACH:
    263                 break;
    264         case DLL_THREAD_DETACH:
    265                 break;
    266         }
    267 
    268         return TRUE;
    269 }
    270 
    271 
    272 /***********************************************************************
    273  *              DllCanUnloadNow (QUARTZ.@)
     251    HINSTANCE hInstDLL,
     252    DWORD fdwReason,
     253    LPVOID lpvReserved )
     254{
     255    switch ( fdwReason )
     256    {
     257    case DLL_PROCESS_ATTACH:
     258        if ( !QUARTZ_InitProcess() )
     259            return FALSE;
     260        break;
     261    case DLL_PROCESS_DETACH:
     262        QUARTZ_UninitProcess();
     263        break;
     264    case DLL_THREAD_ATTACH:
     265        break;
     266    case DLL_THREAD_DETACH:
     267        break;
     268    }
     269
     270    return TRUE;
     271}
     272
     273
     274/***********************************************************************
     275 *      DllCanUnloadNow (QUARTZ.@)
    274276 *
    275277 * RETURNS
     
    279281HRESULT WINAPI QUARTZ_DllCanUnloadNow(void)
    280282{
    281         HRESULT hr;
    282 
    283         EnterCriticalSection( &csHeap );
    284         hr = ( dwClassObjRef == 0 ) ? S_OK : S_FALSE;
    285         LeaveCriticalSection( &csHeap );
    286 
    287         return hr;
    288 }
    289 
    290 /***********************************************************************
    291  *              DllGetClassObject (QUARTZ.@)
     283    HRESULT hr;
     284
     285    EnterCriticalSection( &csHeap );
     286    hr = ( dwClassObjRef == 0 ) ? S_OK : S_FALSE;
     287    LeaveCriticalSection( &csHeap );
     288
     289    return hr;
     290}
     291
     292/***********************************************************************
     293 *      DllGetClassObject (QUARTZ.@)
    292294 */
    293295HRESULT WINAPI QUARTZ_DllGetClassObject(
    294                 const CLSID* pclsid,const IID* piid,void** ppv)
    295 {
    296         *ppv = NULL;
    297         if ( IsEqualCLSID( &IID_IUnknown, piid ) ||
    298              IsEqualCLSID( &IID_IClassFactory, piid ) )
    299         {
    300                 return IClassFactory_Alloc( pclsid, ppv );
    301         }
    302 
    303         return CLASS_E_CLASSNOTAVAILABLE;
    304 }
    305 
    306 /***********************************************************************
    307  *              DllRegisterServer (QUARTZ.@)
     296        const CLSID* pclsid,const IID* piid,void** ppv)
     297{
     298    *ppv = NULL;
     299    if ( IsEqualCLSID( &IID_IUnknown, piid ) ||
     300         IsEqualCLSID( &IID_IClassFactory, piid ) )
     301    {
     302        return IClassFactory_Alloc( pclsid, ppv );
     303    }
     304
     305    return CLASS_E_CLASSNOTAVAILABLE;
     306}
     307
     308/***********************************************************************
     309 *      DllRegisterServer (QUARTZ.@)
    308310 */
    309311
    310312HRESULT WINAPI QUARTZ_DllRegisterServer( void )
    311313{
    312         FIXME( "(): stub\n" );
    313         return E_FAIL;
    314 }
    315 
    316 /***********************************************************************
    317  *              DllUnregisterServer (QUARTZ.@)
     314    FIXME( "(): stub\n" );
     315    return E_FAIL;
     316}
     317
     318/***********************************************************************
     319 *      DllUnregisterServer (QUARTZ.@)
    318320 */
    319321
    320322HRESULT WINAPI QUARTZ_DllUnregisterServer( void )
    321323{
    322         FIXME( "(): stub\n" );
    323         return E_FAIL;
    324 }
    325 
     324    FIXME( "(): stub\n" );
     325    return E_FAIL;
     326}
     327
  • trunk/src/quartz/memalloc.c

    r6578 r6649  
     1/* $Id: memalloc.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */
    12/*
    23 * Implementation of CLSID_MemoryAllocator.
     
    3233HRESULT QUARTZ_CreateMemoryAllocator(IUnknown* punkOuter,void** ppobj)
    3334{
    34         CMemoryAllocator*       pma;
     35    CMemoryAllocator*   pma;
    3536
    36         TRACE("(%p,%p)\n",punkOuter,ppobj);
     37    TRACE("(%p,%p)\n",punkOuter,ppobj);
    3738
    38         pma = (CMemoryAllocator*)QUARTZ_AllocObj( sizeof(CMemoryAllocator) );
    39         if ( pma == NULL )
    40                 return E_OUTOFMEMORY;
     39    pma = (CMemoryAllocator*)QUARTZ_AllocObj( sizeof(CMemoryAllocator) );
     40    if ( pma == NULL )
     41        return E_OUTOFMEMORY;
    4142
    42         QUARTZ_IUnkInit( &pma->unk, punkOuter );
    43         CMemoryAllocator_InitIMemAllocator( pma );
     43    QUARTZ_IUnkInit( &pma->unk, punkOuter );
     44    CMemoryAllocator_InitIMemAllocator( pma );
    4445
    45         pma->unk.pEntries = IFEntries;
    46         pma->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
     46    pma->unk.pEntries = IFEntries;
     47    pma->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
    4748
    48         *ppobj = (void*)(&pma->unk);
     49    *ppobj = (void*)(&pma->unk);
    4950
    50         return S_OK;
     51    return S_OK;
    5152}
  • trunk/src/quartz/sysclock.c

    r6578 r6649  
     1/* $Id: sysclock.c,v 1.3 2001-09-05 13:36:38 bird Exp $ */
    12/*
    23 * Implementation of CLSID_SystemClock.
     
    3233HRESULT QUARTZ_CreateSystemClock(IUnknown* punkOuter,void** ppobj)
    3334{
    34         CSystemClock*   psc;
     35    CSystemClock*   psc;
    3536
    36         TRACE("(%p,%p)\n",punkOuter,ppobj);
     37    TRACE("(%p,%p)\n",punkOuter,ppobj);
    3738
    38         psc = (CSystemClock*)QUARTZ_AllocObj( sizeof(CSystemClock) );
    39         if ( psc == NULL )
    40                 return E_OUTOFMEMORY;
     39    psc = (CSystemClock*)QUARTZ_AllocObj( sizeof(CSystemClock) );
     40    if ( psc == NULL )
     41        return E_OUTOFMEMORY;
    4142
    42         QUARTZ_IUnkInit( &psc->unk, punkOuter );
    43         CSystemClock_InitIReferenceClock( psc );
     43    QUARTZ_IUnkInit( &psc->unk, punkOuter );
     44    CSystemClock_InitIReferenceClock( psc );
    4445
    45         psc->unk.pEntries = IFEntries;
    46         psc->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
     46    psc->unk.pEntries = IFEntries;
     47    psc->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);
    4748
    48         *ppobj = (void*)(&psc->unk);
     49    *ppobj = (void*)(&psc->unk);
    4950
    50         return S_OK;
     51    return S_OK;
    5152}
Note: See TracChangeset for help on using the changeset viewer.