Changeset 6649 for trunk/src


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

Added $Id:$ keyword.

Location:
trunk/src
Files:
36 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}
  • trunk/src/riched32/initriched32.cpp

    r6588 r6649  
     1/* $Id: initriched32.cpp,v 1.2 2001-09-05 13:37:19 bird Exp $ */
    12/*
    23 * DLL entry point
     
    5253   {
    5354   case DLL_PROCESS_ATTACH:
    54         return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     55    return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
    5556
    5657   case DLL_THREAD_ATTACH:
    5758   case DLL_THREAD_DETACH:
    58         return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     59    return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
    5960
    6061   case DLL_PROCESS_DETACH:
    61         ret = RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
    62         ctordtorTerm();
     62    ret = RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     63    ctordtorTerm();
    6364        return ret;
    6465   }
     
    8788      case 0 :
    8889         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    89         dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab);
    90          if(dllHandle == 0) 
    91                 return 0UL;
     90    dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab);
     91         if(dllHandle == 0)
     92        return 0UL;
    9293
    9394         break;
    9495      case 1 :
    9596         if(dllHandle) {
    96                 UnregisterLxDll(dllHandle);
     97        UnregisterLxDll(dllHandle);
    9798         }
    9899         break;
  • trunk/src/riched32/initterm.cpp

    r6588 r6649  
     1/* $Id: initterm.cpp,v 1.6 2001-09-05 13:37:19 bird Exp $ */
    12/*
    23 * DLL entry point
  • trunk/src/rpcrt4/initrpcrt4.cpp

    r6401 r6649  
     1/* $Id: initrpcrt4.cpp,v 1.3 2001-09-05 13:37:51 bird Exp $ */
    12/*
    23 * DLL entry point
     
    6465   switch (ulFlag) {
    6566      case 0 :
    66         dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&rpcrt4_PEResTab);
    67          if(dllHandle == 0) 
    68                 return 0UL;
     67    dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&rpcrt4_PEResTab);
     68         if(dllHandle == 0)
     69        return 0UL;
    6970
    70         //SvL: Must be done here as the socket calls trash FS!
    71          /* Init the Uuid subsystem */
    72          UuidInit();
     71    //SvL: Must be done here as the socket calls trash FS!
     72     /* Init the Uuid subsystem */
     73     UuidInit();
    7374
    7475         break;
     
    7677      case 1 :
    7778         if(dllHandle) {
    78                 UnregisterLxDll(dllHandle);
     79        UnregisterLxDll(dllHandle);
    7980         }
    8081         break;
  • trunk/src/rpcrt4/initterm.cpp

    r6375 r6649  
     1/* $Id: initterm.cpp,v 1.7 2001-09-05 13:37:51 bird Exp $ */
    12/*
    23 * DLL entry point
  • trunk/src/setupapi/devinst.c

    r4989 r6649  
     1/* $Id: devinst.c,v 1.2 2001-09-05 13:38:23 bird Exp $ */
    12/*
    23 * SetupAPI device installer
     
    1213
    1314/***********************************************************************
    14  *              DiGetClassDevs (SETUPX.304)
     15 *      DiGetClassDevs (SETUPX.304)
    1516 * Return a list of installed system devices.
    1617 * Uses HKLM\\ENUM to list devices.
  • trunk/src/setupapi/infparse.c

    r4989 r6649  
     1/* $Id: infparse.c,v 1.2 2001-09-05 13:38:23 bird Exp $ */
    12/*
    23 * SetupX .inf file parsing functions
     
    2930
    3031    if (!lphInf)
    31         return IP_ERROR;
     32    return IP_ERROR;
    3233
    3334    /* this could be improved by checking for already freed handles */
    34     if (IP_curr_handle == 0xffff) 
    35         return ERR_IP_OUT_OF_HANDLES;
     35    if (IP_curr_handle == 0xffff)
     36    return ERR_IP_OUT_OF_HANDLES;
    3637
    3738    if (hFile != HFILE_ERROR)
    3839    {
    39         InfList = HeapReAlloc(GetProcessHeap(), 0, InfList, InfNumEntries+1);
    40         InfList[InfNumEntries].hInf = IP_curr_handle++;
    41         InfList[InfNumEntries].hInfFile = hFile;
    42         InfList[InfNumEntries].lpInfFileName = HeapAlloc( GetProcessHeap(), 0,
     40    InfList = HeapReAlloc(GetProcessHeap(), 0, InfList, InfNumEntries+1);
     41    InfList[InfNumEntries].hInf = IP_curr_handle++;
     42    InfList[InfNumEntries].hInfFile = hFile;
     43    InfList[InfNumEntries].lpInfFileName = HeapAlloc( GetProcessHeap(), 0,
    4344                                                          strlen(lpInfFileName)+1);
    4445        strcpy( InfList[InfNumEntries].lpInfFileName, lpInfFileName );
    4546        *lphInf = InfList[InfNumEntries].hInf;
    46         InfNumEntries++;
    47         TRACE("ret handle %d.\n", *lphInf);
    48         return OK;
     47    InfNumEntries++;
     48    TRACE("ret handle %d.\n", *lphInf);
     49    return OK;
    4950    }
    5051    *lphInf = 0xffff;
     
    5758
    5859    for (n=0; n < InfNumEntries; n++)
    59         if (InfList[n].hInf == hInf)
    60         {
    61             *ret = n;
    62             return TRUE;
    63         }
     60    if (InfList[n].hInf == hInf)
     61    {
     62        *ret = n;
     63        return TRUE;
     64    }
    6465    return FALSE;
    6566}
    66        
     67
    6768
    6869LPCSTR IP_GetFileName(HINF16 hInf)
     
    7172    if (IP_FindInf(hInf, &n))
    7273    {
    73         return InfList[n].lpInfFileName;
     74    return InfList[n].lpInfFileName;
    7475    }
    7576    return NULL;
     
    8485    if (IP_FindInf(hInf, &n))
    8586    {
    86         _lclose(InfList[n].hInfFile);
    87         HeapFree(GetProcessHeap(), 0, InfList[n].lpInfFileName);
    88         for (i=n; i < InfNumEntries-1; i++)
    89             InfList[i] = InfList[i+1];
    90         InfNumEntries--;
    91         InfList = HeapReAlloc(GetProcessHeap(), 0, InfList, InfNumEntries);
    92         res = OK;
     87    _lclose(InfList[n].hInfFile);
     88    HeapFree(GetProcessHeap(), 0, InfList[n].lpInfFileName);
     89    for (i=n; i < InfNumEntries-1; i++)
     90        InfList[i] = InfList[i+1];
     91    InfNumEntries--;
     92    InfList = HeapReAlloc(GetProcessHeap(), 0, InfList, InfNumEntries);
     93    res = OK;
    9394    }
    9495    return res;
     
    9697
    9798/***********************************************************************
    98  *              IpOpen16
     99 *      IpOpen16
    99100 *
    100101 */
     
    106107
    107108/***********************************************************************
    108  *              IpClose16
     109 *      IpClose16
    109110 */
    110111RETERR16 WINAPI IpClose16(HINF16 hInf)
     
    114115
    115116/***********************************************************************
    116  *              IpGetProfileString16
     117 *      IpGetProfileString16
    117118 */
    118 RETERR16 WINAPI IpGetProfileString16(HINF16 hInf, LPCSTR section, LPCSTR entry, LPSTR buffer, WORD buflen) 
     119RETERR16 WINAPI IpGetProfileString16(HINF16 hInf, LPCSTR section, LPCSTR entry, LPSTR buffer, WORD buflen)
    119120{
    120121    TRACE("'%s': section '%s' entry '%s'\n", IP_GetFileName(hInf), section, entry);
  • trunk/src/setupapi/setupx_main.c

    r4989 r6649  
     1/* $Id: setupx_main.c,v 1.2 2001-09-05 13:38:23 bird Exp $ */
    12/*
    23 *      SETUPX library
     
    2627 *
    2728 * SETUPX consists of several parts with the following acronyms/prefixes:
    28  * Di   device installer (devinst.c ?)
    29  * Gen  generic installer (geninst.c ?)
    30  * Ip   .INF parsing (infparse.c)
    31  * LDD  logical device descriptor (ldd.c ?)
    32  * LDID logical device ID
     29 * Di   device installer (devinst.c ?)
     30 * Gen  generic installer (geninst.c ?)
     31 * Ip   .INF parsing (infparse.c)
     32 * LDD  logical device descriptor (ldd.c ?)
     33 * LDID logical device ID
    3334 * SU   setup (setup.c ?)
    34  * Tp   text processing (textproc.c ?)
    35  * Vcp  virtual copy module (vcp.c ?)
     35 * Tp   text processing (textproc.c ?)
     36 * Vcp  virtual copy module (vcp.c ?)
    3637 * ...
    3738 *
     
    5556
    5657/***********************************************************************
    57  *              SURegOpenKey
     58 *      SURegOpenKey
    5859 */
    5960DWORD WINAPI SURegOpenKey( HKEY hkey, LPCSTR lpszSubKey, LPHKEY retkey )
     
    6465
    6566/***********************************************************************
    66  *              SURegQueryValueEx
     67 *      SURegQueryValueEx
    6768 */
    6869DWORD WINAPI SURegQueryValueEx( HKEY hkey, LPSTR lpszValueName,
     
    9495    while (1)
    9596    {
    96         /* find beginning of real substring */
    97         while ( (*p == ' ') || (*p == '\t') || (*p == '"') ) p++;
    98 
    99         /* find end of real substring */
    100         q = p;
    101         while ( (*q)
    102              && (*q != ' ') && (*q != '\t') && (*q != '"')
    103              && (*q != ';') && (*q != delimiter) ) q++;
    104         if (q == p)
    105             break;
    106         len = (int)q - (int)p;
    107 
    108         /* alloc entry for new substring in steps of 32 units and copy over */
    109         if (count % 32 == 0)
    110         { /* 1 for count field + current count + 32 */
    111             res = HeapReAlloc(GetProcessHeap(), 0, res, (1+count+32)*sizeof(LPSTR));
    112         }
    113         *(res+1+count) = HeapAlloc(GetProcessHeap(), 0, len+1);
    114         strncpy(*(res+1+count), p, len);
    115         (*(res+1+count))[len] = '\0';
    116         count++;
    117 
    118         /* we are still within last substring (before delimiter),
    119         * so get out of it */
    120         while ((*q) && (*q != ';') && (*q != delimiter)) q++;
    121         if ((!*q) || (*q == ';'))
    122             break;
    123         p = q+1;
    124     }
    125    
     97    /* find beginning of real substring */
     98    while ( (*p == ' ') || (*p == '\t') || (*p == '"') ) p++;
     99
     100    /* find end of real substring */
     101    q = p;
     102    while ( (*q)
     103         && (*q != ' ') && (*q != '\t') && (*q != '"')
     104         && (*q != ';') && (*q != delimiter) ) q++;
     105    if (q == p)
     106        break;
     107    len = (int)q - (int)p;
     108
     109    /* alloc entry for new substring in steps of 32 units and copy over */
     110    if (count % 32 == 0)
     111    { /* 1 for count field + current count + 32 */
     112        res = HeapReAlloc(GetProcessHeap(), 0, res, (1+count+32)*sizeof(LPSTR));
     113    }
     114    *(res+1+count) = HeapAlloc(GetProcessHeap(), 0, len+1);
     115    strncpy(*(res+1+count), p, len);
     116    (*(res+1+count))[len] = '\0';
     117    count++;
     118
     119    /* we are still within last substring (before delimiter),
     120    * so get out of it */
     121    while ((*q) && (*q != ';') && (*q != delimiter)) q++;
     122    if ((!*q) || (*q == ';'))
     123        break;
     124    p = q+1;
     125    }
     126
    126127    /* put number of entries at beginning of list */
    127128    *(DWORD *)res = count;
     
    136137
    137138    for (n=0; n < count; n++)
    138         HeapFree(GetProcessHeap(), 0, *pStrings++);
     139    HeapFree(GetProcessHeap(), 0, *pStrings++);
    139140
    140141    HeapFree(GetProcessHeap(), 0, substr);
     
    163164 *        Hmm, but on the other hand SETUPX_GetSubStrings() will probably
    164165 *        soon be replaced by InitSubstrData() etc. anyway.
    165  * 
     166 *
    166167 */
    167168static BOOL SETUPX_LookupRegistryString(LPSTR regstr, LPSTR buffer, DWORD buflen)
     
    181182    for (n=0; n < 5; n++)
    182183    {
    183         q = strchr(p, ',');
    184         if (!q)
    185         {
    186             if (n == 4)
    187                 q = p+strlen(p);
    188             else
    189                 return FALSE;
    190         }
    191         next = q+1;
    192         if (q < regstr)
     184    q = strchr(p, ',');
     185    if (!q)
     186    {
     187        if (n == 4)
     188        q = p+strlen(p);
     189        else
     190        return FALSE;
     191    }
     192    next = q+1;
     193    if (q < regstr)
    193194            return FALSE;
    194195        SETUPX_IsolateSubString(&p, &q);
     
    197198        strncpy(items[n], p, len);
    198199        items[n][len] = '\0';
    199         p = next;
     200    p = next;
    200201    }
    201202    TRACE("got '%s','%s','%s','%s','%s'\n",
    202                         items[0], items[1], items[2], items[3], items[4]);
    203    
     203            items[0], items[1], items[2], items[3], items[4]);
     204
    204205    /* check root key */
    205206    if (!strcasecmp(items[0], "HKCR"))
    206         hkey = HKEY_CLASSES_ROOT;
     207    hkey = HKEY_CLASSES_ROOT;
    207208    else
    208209    if (!strcasecmp(items[0], "HKCU"))
    209         hkey = HKEY_CURRENT_USER;
     210    hkey = HKEY_CURRENT_USER;
    210211    else
    211212    if (!strcasecmp(items[0], "HKLM"))
    212         hkey = HKEY_LOCAL_MACHINE;
     213    hkey = HKEY_LOCAL_MACHINE;
    213214    else
    214215    if (!strcasecmp(items[0], "HKU"))
    215         hkey = HKEY_USERS;
     216    hkey = HKEY_USERS;
    216217    else
    217218    { /* HKR ? -> relative to key passed to GenInstallEx */
    218         FIXME("unsupported regkey '%s'\n", items[0]);
     219    FIXME("unsupported regkey '%s'\n", items[0]);
    219220        goto regfailed;
    220221    }
     
    224225
    225226    if (RegQueryValueExA(hsubkey, items[2], NULL, &dwType, buffer, &buflen)
    226                 != ERROR_SUCCESS)
     227        != ERROR_SUCCESS)
    227228        goto regfailed;
    228229    goto done;
     
    234235        HeapFree(heap, 0, items[n]);
    235236    if (buffer)
    236         TRACE("return '%s'\n", buffer);
     237    TRACE("return '%s'\n", buffer);
    237238    return TRUE;
    238239}
     
    244245
    245246    do {
    246         buf = HeapReAlloc(GetProcessHeap(), 0, buf, len);
    247         res = GetPrivateProfileStringA(NULL, NULL, NULL, buf, len, filename);
    248         len *= 2;
     247    buf = HeapReAlloc(GetProcessHeap(), 0, buf, len);
     248    res = GetPrivateProfileStringA(NULL, NULL, NULL, buf, len, filename);
     249    len *= 2;
    249250    } while ((!res) && (len < 1048576));
    250251    if (!res)
    251252    {
    252         HeapFree(GetProcessHeap(), 0, buf);
    253         return NULL;
     253    HeapFree(GetProcessHeap(), 0, buf);
     254    return NULL;
    254255    }
    255256    return buf;
     
    262263
    263264    do {
    264         buf = HeapReAlloc(GetProcessHeap(), 0, buf, len);
    265         res = GetPrivateProfileSectionA(section, buf, len, filename);
    266         len *= 2;
     265    buf = HeapReAlloc(GetProcessHeap(), 0, buf, len);
     266    res = GetPrivateProfileSectionA(section, buf, len, filename);
     267    len *= 2;
    267268    } while ((!res) && (len < 1048576));
    268269    if (!res)
    269270    {
    270         HeapFree(GetProcessHeap(), 0, buf);
    271         return NULL;
     271    HeapFree(GetProcessHeap(), 0, buf);
     272    return NULL;
    272273    }
    273274    return buf;
     
    276277
    277278/***********************************************************************
    278  *              InstallHinfSection
     279 *      InstallHinfSection
    279280 *
    280281 * hwnd = parent window
     
    283284 * Here "DefaultInstall" is the .inf file section to be installed (optional).
    284285 * The 132 value is made of the HOW_xxx flags and sometimes 128 (-> setupx16.h).
    285  * 
     286 *
    286287 * nCmdShow = nCmdShow of CreateProcess
    287288 */
     
    297298    HMODULE hMod;
    298299    MSGBOX_PROC pMessageBoxA;
    299    
     300
    300301    TRACE("(%04x, %04x, %s, %d);\n", hwnd, hinst, lpszCmdLine, nCmdShow);
    301    
     302
    302303    pSub = SETUPX_GetSubStrings((LPSTR)lpszCmdLine, ' ');
    303304
    304305    count = *(DWORD *)pSub;
    305306    if (count < 2) /* invalid number of arguments ? */
    306         goto end;
     307    goto end;
    307308    if (IpOpen16(*(pSub+count), &hInf) != OK)
    308309    {
    309         res = ERROR_FILE_NOT_FOUND; /* yes, correct */
    310         goto end;
     310    res = ERROR_FILE_NOT_FOUND; /* yes, correct */
     311    goto end;
    311312    }
    312313    if (GenInstall16(hInf, *(pSub+count-2), GENINSTALL_DO_ALL) != OK)
    313         goto end;
     314    goto end;
    314315    wFlags = atoi(*(pSub+count-1)) & ~128;
    315316    switch (wFlags)
    316317    {
    317         case HOW_ALWAYS_SILENT_REBOOT:
    318         case HOW_SILENT_REBOOT:
    319             reboot = TRUE;
    320             break;
    321         case HOW_ALWAYS_PROMPT_REBOOT:
    322         case HOW_PROMPT_REBOOT:
    323             if ((hMod = GetModuleHandleA("user32.dll")))
    324             {
    325               if ((pMessageBoxA = (MSGBOX_PROC)GetProcAddress( hMod, "MessageBoxA" )))
    326               {
    327                  
    328                 if (pMessageBoxA(hwnd, "You must restart Wine before the new settings will take effect.\n\nDo you want to exit Wine now ?", "Systems Settings Change", MB_YESNO|MB_ICONQUESTION) == IDYES)
    329                   reboot = TRUE;
    330               }
    331             }
    332             break;
    333         default:
    334             ERR("invalid flags %d !\n", wFlags);
    335             goto end;
    336     }
    337    
     318    case HOW_ALWAYS_SILENT_REBOOT:
     319    case HOW_SILENT_REBOOT:
     320        reboot = TRUE;
     321        break;
     322    case HOW_ALWAYS_PROMPT_REBOOT:
     323    case HOW_PROMPT_REBOOT:
     324        if ((hMod = GetModuleHandleA("user32.dll")))
     325        {
     326          if ((pMessageBoxA = (MSGBOX_PROC)GetProcAddress( hMod, "MessageBoxA" )))
     327          {
     328
     329            if (pMessageBoxA(hwnd, "You must restart Wine before the new settings will take effect.\n\nDo you want to exit Wine now ?", "Systems Settings Change", MB_YESNO|MB_ICONQUESTION) == IDYES)
     330          reboot = TRUE;
     331          }
     332        }
     333        break;
     334    default:
     335        ERR("invalid flags %d !\n", wFlags);
     336        goto end;
     337    }
     338
    338339    res = OK;
    339340end:
     
    342343    if (reboot)
    343344    {
    344         /* FIXME: we should have a means of terminating all wine + wineserver */
    345         MESSAGE("Program or user told me to restart. Exiting Wine...\n");
    346         ExitProcess(1);
     345    /* FIXME: we should have a means of terminating all wine + wineserver */
     346    MESSAGE("Program or user told me to restart. Exiting Wine...\n");
     347    ExitProcess(1);
    347348    }
    348349
     
    359360{
    360361    { /* 0 (LDID_NULL) -- not defined */
    361         NULL,
    362         NULL
     362    NULL,
     363    NULL
    363364    },
    364365    { /* 1 (LDID_SRCPATH) = source of installation. hmm, what to do here ? */
    365         "SourcePath", /* hmm, does SETUPX have to care about updating it ?? */
    366         NULL
     366    "SourcePath", /* hmm, does SETUPX have to care about updating it ?? */
     367    NULL
    367368    },
    368369    { /* 2 (LDID_SETUPTEMP) = setup temp dir */
    369         "SetupTempDir",
    370         NULL
     370    "SetupTempDir",
     371    NULL
    371372    },
    372373    { /* 3 (LDID_UNINSTALL) = uninstall backup dir */
    373         "UninstallDir",
    374         NULL
     374    "UninstallDir",
     375    NULL
    375376    },
    376377    { /* 4 (LDID_BACKUP) = backup dir */
    377         "BackupDir",
    378         NULL
     378    "BackupDir",
     379    NULL
    379380    },
    380381    { /* 5 (LDID_SETUPSCRATCH) = setup scratch dir */
    381         "SetupScratchDir",
    382         NULL
     382    "SetupScratchDir",
     383    NULL
    383384    },
    384385    { /* 6 -- not defined */
    385         NULL,
    386         NULL
     386    NULL,
     387    NULL
    387388    },
    388389    { /* 7 -- not defined */
    389         NULL,
    390         NULL
     390    NULL,
     391    NULL
    391392    },
    392393    { /* 8 -- not defined */
    393         NULL,
    394         NULL
     394    NULL,
     395    NULL
    395396    },
    396397    { /* 9 -- not defined */
    397         NULL,
    398         NULL
     398    NULL,
     399    NULL
    399400    },
    400401    { /* 10 (LDID_WIN) = windows dir */
    401         "WinDir",
     402    "WinDir",
    402403        ""
    403404    },
    404405    { /* 11 (LDID_SYS) = system dir */
    405         "SysDir",
    406         NULL /* call GetSystemDirectory() instead */
     406    "SysDir",
     407    NULL /* call GetSystemDirectory() instead */
    407408    },
    408409    { /* 12 (LDID_IOS) = IOSubSys dir */
    409410        NULL, /* FIXME: registry string ? */
    410         "SYSTEM\\IOSUBSYS"
     411    "SYSTEM\\IOSUBSYS"
    411412    },
    412413    { /* 13 (LDID_CMD) = COMMAND dir */
    413         NULL, /* FIXME: registry string ? */
    414         "COMMAND"
     414    NULL, /* FIXME: registry string ? */
     415    "COMMAND"
    415416    },
    416417    { /* 14 (LDID_CPL) = control panel dir */
    417         NULL,
    418         ""
     418    NULL,
     419    ""
    419420    },
    420421    { /* 15 (LDID_PRINT) = windows printer dir */
    421         NULL,
    422         "SYSTEM" /* correct ?? */
     422    NULL,
     423    "SYSTEM" /* correct ?? */
    423424    },
    424425    { /* 16 (LDID_MAIL) = destination mail dir */
    425         NULL,
    426         ""
     426    NULL,
     427    ""
    427428    },
    428429    { /* 17 (LDID_INF) = INF dir */
    429         "SetupScratchDir", /* correct ? */
    430         "INF"
     430    "SetupScratchDir", /* correct ? */
     431    "INF"
    431432    },
    432433    { /* 18 (LDID_HELP) = HELP dir */
    433         NULL, /* ??? */
    434         "HELP"
     434    NULL, /* ??? */
     435    "HELP"
    435436    },
    436437    { /* 19 (LDID_WINADMIN) = Admin dir */
    437         "WinAdminDir",
    438         ""
     438    "WinAdminDir",
     439    ""
    439440    },
    440441    { /* 20 (LDID_FONTS) = Fonts dir */
    441         NULL, /* ??? */
    442         "FONTS"
     442    NULL, /* ??? */
     443    "FONTS"
    443444    },
    444445    { /* 21 (LDID_VIEWERS) = Viewers */
    445         NULL, /* ??? */
    446         "SYSTEM\\VIEWERS"
     446    NULL, /* ??? */
     447    "SYSTEM\\VIEWERS"
    447448    },
    448449    { /* 22 (LDID_VMM32) = VMM32 dir */
    449         NULL, /* ??? */
    450         "SYSTEM\\VMM32"
     450    NULL, /* ??? */
     451    "SYSTEM\\VMM32"
    451452    },
    452453    { /* 23 (LDID_COLOR) = ICM dir */
    453         "ICMPath",
    454         "SYSTEM\\COLOR"
     454    "ICMPath",
     455    "SYSTEM\\COLOR"
    455456    },
    456457    { /* 24 (LDID_APPS) = root of boot drive ? */
    457         "AppsDir",
    458         "C:\\"
     458    "AppsDir",
     459    "C:\\"
    459460    },
    460461    { /* 25 (LDID_SHARED) = shared dir */
    461         "SharedDir",
    462         ""
     462    "SharedDir",
     463    ""
    463464    },
    464465    { /* 26 (LDID_WINBOOT) = Windows boot dir */
    465         "WinBootDir",
    466         ""
     466    "WinBootDir",
     467    ""
    467468    },
    468469    { /* 27 (LDID_MACHINE) = machine specific files */
    469         "MachineDir",
    470         NULL
     470    "MachineDir",
     471    NULL
    471472    },
    472473    { /* 28 (LDID_HOST_WINBOOT) = Host Windows boot dir */
    473         "HostWinBootDir",
    474         NULL
     474    "HostWinBootDir",
     475    NULL
    475476    },
    476477    { /* 29 -- not defined */
    477         NULL,
    478         NULL
     478    NULL,
     479    NULL
    479480    },
    480481    { /* 30 (LDID_BOOT) = Root of boot drive */
    481         "BootDir",
    482         NULL
     482    "BootDir",
     483    NULL
    483484    },
    484485    { /* 31 (LDID_BOOT_HOST) = Root of boot drive host */
    485         "BootHost",
    486         NULL
     486    "BootHost",
     487    NULL
    487488    },
    488489    { /* 32 (LDID_OLD_WINBOOT) = subdir of root */
    489         "OldWinBootDir",
    490         NULL
     490    "OldWinBootDir",
     491    NULL
    491492    },
    492493    { /* 33 (LDID_OLD_WIN) = old win dir */
    493         "OldWinDir",
    494         NULL
     494    "OldWinDir",
     495    NULL
    495496    }
    496497    /* the rest (34-38) isn't too interesting, so I'll forget about it */
    497498};
    498499
    499 /* 
     500/*
    500501 * LDD  == Logical Device Descriptor
    501502 * LDID == Logical Device ID
     
    527528    for (n=0; n < sizeof(LDID_Data)/sizeof(LDID_DATA); n++)
    528529    {
    529         buffer[0] = '\0';
    530 
    531         len = MAX_PATH;
    532         if ( (hKey) && (LDID_Data[n].RegValName)
    533         &&   (RegQueryValueExA(hKey, LDID_Data[n].RegValName,
    534                 NULL, &type, buffer, &len) == ERROR_SUCCESS)
    535         &&   (type == REG_SZ) )
    536         {
    537             TRACE("found value '%s' for LDID %d\n", buffer, n);
    538         }
    539         else
     530    buffer[0] = '\0';
     531
     532    len = MAX_PATH;
     533    if ( (hKey) && (LDID_Data[n].RegValName)
     534    &&   (RegQueryValueExA(hKey, LDID_Data[n].RegValName,
     535        NULL, &type, buffer, &len) == ERROR_SUCCESS)
     536    &&   (type == REG_SZ) )
     537    {
     538        TRACE("found value '%s' for LDID %d\n", buffer, n);
     539    }
     540    else
    540541        switch(n)
    541         {
    542             case LDID_SRCPATH:
    543                 FIXME("LDID_SRCPATH: what exactly do we have to do here ?\n");
    544                 strcpy(buffer, "X:\\FIXME");
    545                 break;
    546             case LDID_SYS:
    547                 GetSystemDirectoryA(buffer, MAX_PATH);
    548                 break;
    549             case LDID_APPS:
    550             case LDID_MACHINE:
    551             case LDID_HOST_WINBOOT:
    552             case LDID_BOOT:
    553             case LDID_BOOT_HOST:
    554                 strcpy(buffer, "C:\\");
    555                 break;
    556             default:
    557                 if (LDID_Data[n].StdString)
    558                 {
    559                     DWORD len = GetWindowsDirectoryA(buffer, MAX_PATH);
    560                     LPSTR p;
    561                     p = buffer + len;
    562                     *p++ = '\\';
    563                     strcpy(p, LDID_Data[n].StdString);
    564                 }
    565                 break;
    566         }
    567         if (buffer[0])
    568         {
    569             INIT_LDD(ldd, n);
    570             ldd.pszPath = buffer;
    571             TRACE("LDID %d -> '%s'\n", ldd.ldid, ldd.pszPath);
    572             CtlSetLdd16(&ldd);
    573         }
     542    {
     543        case LDID_SRCPATH:
     544        FIXME("LDID_SRCPATH: what exactly do we have to do here ?\n");
     545        strcpy(buffer, "X:\\FIXME");
     546        break;
     547        case LDID_SYS:
     548            GetSystemDirectoryA(buffer, MAX_PATH);
     549        break;
     550        case LDID_APPS:
     551        case LDID_MACHINE:
     552        case LDID_HOST_WINBOOT:
     553        case LDID_BOOT:
     554        case LDID_BOOT_HOST:
     555        strcpy(buffer, "C:\\");
     556        break;
     557        default:
     558        if (LDID_Data[n].StdString)
     559        {
     560            DWORD len = GetWindowsDirectoryA(buffer, MAX_PATH);
     561            LPSTR p;
     562            p = buffer + len;
     563            *p++ = '\\';
     564            strcpy(p, LDID_Data[n].StdString);
     565        }
     566        break;
     567        }
     568    if (buffer[0])
     569    {
     570        INIT_LDD(ldd, n);
     571        ldd.pszPath = buffer;
     572        TRACE("LDID %d -> '%s'\n", ldd.ldid, ldd.pszPath);
     573        CtlSetLdd16(&ldd);
     574    }
    574575    }
    575576    if (hKey) RegCloseKey(hKey);
    576577}
    577        
    578 /***********************************************************************
    579  * CtlDelLdd            (SETUPX.37)
     578
     579/***********************************************************************
     580 * CtlDelLdd        (SETUPX.37)
    580581 *
    581582 * RETURN
     
    589590
    590591    if (!std_LDDs_done)
    591         SETUPX_CreateStandardLDDs();
     592    SETUPX_CreateStandardLDDs();
    592593
    593594    if (ldid < LDID_ASSIGN_START)
    594         return ERR_VCP_LDDINVALID;
     595    return ERR_VCP_LDDINVALID;
    595596
    596597    pCurr = pFirstLDD;
     
    598599    while ((pCurr != NULL) && (ldid > pCurr->pldd->ldid))
    599600    {
    600         pPrev = pCurr;
    601         pCurr = pCurr->next;
     601    pPrev = pCurr;
     602    pCurr = pCurr->next;
    602603    }
    603604    if ( (pCurr == NULL) /* hit end of list */
    604605      || (ldid != pCurr->pldd->ldid) )
    605         return ERR_VCP_LDDFIND; /* correct ? */
     606    return ERR_VCP_LDDFIND; /* correct ? */
    606607
    607608    /* ok, found our victim: eliminate it */
    608609
    609610    if (pPrev)
    610         pPrev->next = pCurr->next;
     611    pPrev->next = pCurr->next;
    611612
    612613    if (pCurr == pFirstLDD)
    613         pFirstLDD = NULL;
     614    pFirstLDD = NULL;
    614615    HeapFree(GetProcessHeap(), 0, pCurr);
    615    
     616
    616617    return OK;
    617618}
    618619
    619620/***********************************************************************
    620  *              CtlDelLdd (SETUPX.37)
     621 *      CtlDelLdd (SETUPX.37)
    621622 */
    622623RETERR16 WINAPI CtlDelLdd16(LOGDISKID16 ldid)
     
    627628
    628629/***********************************************************************
    629  * CtlFindLdd           (SETUPX.35)
     630 * CtlFindLdd       (SETUPX.35)
    630631 *
    631632 * doesn't check pldd ptr validity: crash (W98SE)
     
    634635 *   ERR_VCP_LDDINVALID if pldd->cbSize != structsize
    635636 *   1 in all other cases ??
    636  * 
     637 *
    637638 */
    638639RETERR16 WINAPI CtlFindLdd16(LPLOGDISKDESC pldd)
     
    641642
    642643    TRACE("(%p)\n", pldd);
    643    
     644
    644645    if (!std_LDDs_done)
    645         SETUPX_CreateStandardLDDs();
     646    SETUPX_CreateStandardLDDs();
    646647
    647648    if (pldd->cbSize != sizeof(LOGDISKDESC_S))
     
    652653    while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid))
    653654    {
    654         pPrev = pCurr;
    655         pCurr = pCurr->next;
     655    pPrev = pCurr;
     656    pCurr = pCurr->next;
    656657    }
    657658    if ( (pCurr == NULL) /* hit end of list */
    658659      || (pldd->ldid != pCurr->pldd->ldid) )
    659         return ERR_VCP_LDDFIND; /* correct ? */
     660    return ERR_VCP_LDDFIND; /* correct ? */
    660661
    661662    memcpy(pldd, pCurr->pldd, pldd->cbSize);
    662663    /* hmm, we probably ought to strcpy() the string ptrs here */
    663    
     664
    664665    return 1; /* what is this ?? */
    665666}
    666667
    667668/***********************************************************************
    668  * CtlSetLdd                    (SETUPX.33)
     669 * CtlSetLdd            (SETUPX.33)
    669670 *
    670671 * Set an LDD entry.
     
    684685
    685686    if (!std_LDDs_done)
    686         SETUPX_CreateStandardLDDs();
     687    SETUPX_CreateStandardLDDs();
    687688
    688689    if (pldd->cbSize != sizeof(LOGDISKDESC_S))
    689         return ERR_VCP_LDDINVALID;
     690    return ERR_VCP_LDDINVALID;
    690691
    691692    heap = GetProcessHeap();
     
    694695    while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid))
    695696    {
    696         pPrev = pCurr;
    697         pCurr = pCurr->next;
     697    pPrev = pCurr;
     698    pCurr = pCurr->next;
    698699    }
    699700    if (pCurr == NULL) /* hit end of list */
    700701    {
    701         is_new = TRUE;
     702    is_new = TRUE;
    702703        pCurr = HeapAlloc(heap, 0, sizeof(LDD_LIST));
    703704        pCurr->pldd = HeapAlloc(heap, 0, sizeof(LOGDISKDESC_S));
     
    708709    {
    709710        pCurrLDD = pCurr->pldd;
    710         if (pCurrLDD->pszPath)          HeapFree(heap, 0, pCurrLDD->pszPath);
    711         if (pCurrLDD->pszVolLabel)      HeapFree(heap, 0, pCurrLDD->pszVolLabel);
    712         if (pCurrLDD->pszDiskName)      HeapFree(heap, 0, pCurrLDD->pszDiskName);
     711    if (pCurrLDD->pszPath)      HeapFree(heap, 0, pCurrLDD->pszPath);
     712    if (pCurrLDD->pszVolLabel)  HeapFree(heap, 0, pCurrLDD->pszVolLabel);
     713    if (pCurrLDD->pszDiskName)  HeapFree(heap, 0, pCurrLDD->pszDiskName);
    713714    }
    714715
     
    716717
    717718    if (pldd->pszPath)
    718         pCurrLDD->pszPath       = HEAP_strdupA(heap, 0, pldd->pszPath);
     719        pCurrLDD->pszPath   = HEAP_strdupA(heap, 0, pldd->pszPath);
    719720    if (pldd->pszVolLabel)
    720         pCurrLDD->pszVolLabel   = HEAP_strdupA(heap, 0, pldd->pszVolLabel);
     721    pCurrLDD->pszVolLabel   = HEAP_strdupA(heap, 0, pldd->pszVolLabel);
    721722    if (pldd->pszDiskName)
    722         pCurrLDD->pszDiskName   = HEAP_strdupA(heap, 0, pldd->pszDiskName);
     723    pCurrLDD->pszDiskName   = HEAP_strdupA(heap, 0, pldd->pszDiskName);
    723724
    724725    if (is_new) /* link into list */
    725726    {
    726727        if (pPrev)
    727         {
    728             pCurr->next = pPrev->next;
     728    {
     729        pCurr->next = pPrev->next;
    729730            pPrev->next = pCurr;
    730         }
    731         if (!pFirstLDD)
    732             pFirstLDD = pCurr;
    733     }
    734    
     731    }
     732    if (!pFirstLDD)
     733        pFirstLDD = pCurr;
     734    }
     735
    735736    return OK;
    736737}
     
    738739
    739740/***********************************************************************
    740  * CtlAddLdd            (SETUPX.36)
     741 * CtlAddLdd        (SETUPX.36)
    741742 *
    742743 * doesn't check pldd ptr validity: crash (W98SE)
     
    751752
    752753/***********************************************************************
    753  * CtlGetLdd            (SETUPX.34)
     754 * CtlGetLdd        (SETUPX.34)
    754755 *
    755756 * doesn't check pldd ptr validity: crash (W98SE)
     
    758759 * RETURN
    759760 *   ERR_VCP_LDDINVALID if pldd->cbSize != structsize
    760  * 
     761 *
    761762 */
    762763static RETERR16 SETUPX_GetLdd(LPLOGDISKDESC pldd)
     
    765766
    766767    if (!std_LDDs_done)
    767         SETUPX_CreateStandardLDDs();
     768    SETUPX_CreateStandardLDDs();
    768769
    769770    if (pldd->cbSize != sizeof(LOGDISKDESC_S))
     
    774775    while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid))
    775776    {
    776         pPrev = pCurr;
    777         pCurr = pCurr->next;
     777    pPrev = pCurr;
     778    pCurr = pCurr->next;
    778779    }
    779780    if (pCurr == NULL) /* hit end of list */
    780         return ERR_VCP_LDDFIND; /* correct ? */
     781    return ERR_VCP_LDDFIND; /* correct ? */
    781782
    782783    memcpy(pldd, pCurr->pldd, pldd->cbSize);
     
    795796
    796797/***********************************************************************
    797  *              CtlGetLddPath           (SETUPX.38)
     798 *      CtlGetLddPath       (SETUPX.38)
    798799 *
    799800 * Gets the path of an LDD.
     
    809810    if (szPath)
    810811    {
    811         LOGDISKDESC_S ldd;
    812         INIT_LDD(ldd, ldid);
    813         if (CtlFindLdd16(&ldd) == ERR_VCP_LDDFIND)
    814             return ERR_VCP_LDDUNINIT;
    815         SETUPX_GetLdd(&ldd);
     812    LOGDISKDESC_S ldd;
     813    INIT_LDD(ldd, ldid);
     814    if (CtlFindLdd16(&ldd) == ERR_VCP_LDDFIND)
     815        return ERR_VCP_LDDUNINIT;
     816    SETUPX_GetLdd(&ldd);
    816817        strcpy(szPath, ldd.pszPath);
    817         TRACE("ret '%s' for LDID %d\n", szPath, ldid);
     818    TRACE("ret '%s' for LDID %d\n", szPath, ldid);
    818819    }
    819820    return OK;
     
    821822
    822823/***********************************************************************
    823  *              CtlSetLddPath           (SETUPX.508)
     824 *      CtlSetLddPath       (SETUPX.508)
    824825 *
    825826 * Sets the path of an LDD.
     
    830831    LOGDISKDESC_S ldd;
    831832    TRACE("(%d, '%s');\n", ldid, szPath);
    832    
     833
    833834    INIT_LDD(ldd, ldid);
    834835    ldd.pszPath = szPath;
     
    847848 * -- registry lookup -->
    848849 * C:\Program Files (or C:\ if not found in registry)
    849  * 
     850 *
    850851 * FIXME:
    851852 * - maybe we ought to add a caching array for speed ? - I don't care :)
     
    853854 *   LDIDs for both install and removal sections.
    854855 * - probably the whole function can be removed as installers add that on their
    855  *   own 
     856 *   own
    856857 */
    857858static BOOL SETUPX_AddCustomLDID(int ldid, INT16 hInf)
     
    869870    if (!(sectionbuf = SETUPX_GetSections(filename)))
    870871    {
    871         ERR("couldn't get sections !\n");
    872         return FALSE;
     872    ERR("couldn't get sections !\n");
     873    return FALSE;
    873874    }
    874875    for (pSec=sectionbuf; *pSec; pSec += strlen(pSec)+1)
    875876    {
    876         if (!(entrybuf = SETUPX_GetSectionEntries(filename, pSec)))
    877         {
    878             ERR("couldn't get section entries !\n");
    879             goto end;
    880         }
    881         for (pEnt=entrybuf; *pEnt; pEnt += strlen(pEnt)+1)
    882         {
    883             if (strstr(pEnt, ldidstr))
    884             {
    885                 pEqual = strchr(pEnt, '=');
    886                 if (!pEqual) /* crippled entry ?? */
    887                     continue;
    888 
    889                 /* make sure we found the LDID on left side of the equation */
    890                 if (pEnt+strlen(ldidstr) <= pEqual)
    891                 { /* found */
    892 
    893                     /* but we don't want entries in the strings section */
    894                     if (!strcasecmp(pSec, "Strings"))
    895                         goto next_section;
    896                     p = pEqual+1;
    897                     goto found;
    898                 }
    899             }
    900         }
     877    if (!(entrybuf = SETUPX_GetSectionEntries(filename, pSec)))
     878    {
     879        ERR("couldn't get section entries !\n");
     880        goto end;
     881    }
     882    for (pEnt=entrybuf; *pEnt; pEnt += strlen(pEnt)+1)
     883    {
     884        if (strstr(pEnt, ldidstr))
     885        {
     886        pEqual = strchr(pEnt, '=');
     887        if (!pEqual) /* crippled entry ?? */
     888            continue;
     889
     890        /* make sure we found the LDID on left side of the equation */
     891        if (pEnt+strlen(ldidstr) <= pEqual)
     892        { /* found */
     893
     894            /* but we don't want entries in the strings section */
     895            if (!strcasecmp(pSec, "Strings"))
     896            goto next_section;
     897            p = pEqual+1;
     898            goto found;
     899        }
     900        }
     901    }
    901902next_section:
    902903    }
     
    907908    if (*(DWORD *)pSub > 2)
    908909    {
    909         ERR("malformed entry '%s' ?\n", p);
    910         goto end;
     910    ERR("malformed entry '%s' ?\n", p);
     911    goto end;
    911912    }
    912913    TRACE("found section '%s'\n", *(pSub+1));
     
    916917    if (!(regsectionbuf = SETUPX_GetSectionEntries(filename, *(pSub+1))))
    917918    {
    918         ERR("couldn't get registry section entries !\n");
    919         goto end;
     919    ERR("couldn't get registry section entries !\n");
     920    goto end;
    920921    }
    921922    /* sectionbuf is > 1024 bytes anyway, so use it */
     
    928929end:
    929930    SETUPX_FreeSubStrings(pSub);
    930     if (sectionbuf)     HeapFree(GetProcessHeap(), 0, sectionbuf);
    931     if (entrybuf)       HeapFree(GetProcessHeap(), 0, entrybuf);
    932     if (regsectionbuf)  HeapFree(GetProcessHeap(), 0, regsectionbuf);
     931    if (sectionbuf) HeapFree(GetProcessHeap(), 0, sectionbuf);
     932    if (entrybuf)   HeapFree(GetProcessHeap(), 0, entrybuf);
     933    if (regsectionbuf)  HeapFree(GetProcessHeap(), 0, regsectionbuf);
    933934    return ret;
    934935}
     
    947948    if (CtlFindLdd16(&ldd) == ERR_VCP_LDDFIND)
    948949    {
    949         /* hmm, it seems the installers already do the work for us
    950         * (by calling CtlSetLddPath) that SETUPX_AddCustomLDID
    951         * is supposed to do. Grmbl ;-)
    952         * Well, I'll leave it here anyway, but print error... */
    953         ERR("hmm, LDID %d not registered yet !?\n", ldid);
    954         handled = SETUPX_AddCustomLDID(ldid, hInf);
     950    /* hmm, it seems the installers already do the work for us
     951    * (by calling CtlSetLddPath) that SETUPX_AddCustomLDID
     952    * is supposed to do. Grmbl ;-)
     953    * Well, I'll leave it here anyway, but print error... */
     954    ERR("hmm, LDID %d not registered yet !?\n", ldid);
     955    handled = SETUPX_AddCustomLDID(ldid, hInf);
    955956    }
    956957    else
    957         handled = TRUE;
    958    
     958    handled = TRUE;
     959
    959960    SETUPX_GetLdd(&ldd);
    960    
     961
    961962    if (!handled)
    962963    {
    963964        FIXME("What is LDID %d ??\n", ldid);
    964         *p = "LDID_FIXME";
     965    *p = "LDID_FIXME";
    965966    }
    966967    else
    967         *p = ldd.pszPath;
     968    *p = ldd.pszPath;
    968969
    969970    return handled;
     
    971972
    972973/***********************************************************************
    973  *              GenFormStrWithoutPlaceHolders
     974 *      GenFormStrWithoutPlaceHolders
    974975 *
    975976 * ought to be pretty much implemented, I guess...
     
    980981    LPSTR pDst = szDst, p, pPHBegin;
    981982    int count;
    982    
     983
    983984    TRACE("(%p, '%s', %04x);\n", szDst, szSrc, hInf);
    984985    while (pSrc < pSrcEnd)
    985986    {
    986         p = strchr(pSrc, '%');
    987         if (p)
    988         {
    989             count = (int)p - (int)pSrc;
    990             strncpy(pDst, pSrc, count);
    991             pSrc += count;
    992             pDst += count;
    993             pPHBegin = p+1;
    994             p = strchr(pPHBegin, '%');
    995             if (p)
    996             {
    997                 char placeholder[80]; /* that really ought to be enough ;) */
    998                 int ldid;
    999                 BOOL done = TRUE;
    1000                 count = (int)p - (int)pPHBegin;
    1001                 strncpy(placeholder, pPHBegin, count);
    1002                 placeholder[count] = '\0';
    1003                 ldid = atoi(placeholder);
    1004                 if (ldid)
    1005                 {
    1006                     LPSTR p;
    1007                     done = SETUPX_IP_TranslateLDID(ldid, &p, hInf);
    1008                     strcpy(pDst, p);
    1009                     if (done)
    1010                         pDst += strlen(pDst);
    1011                 }
    1012                 else
    1013                 { /* hmm, string placeholder. Need to look up
    1014                      in the [strings] section of the hInf */
    1015                     DWORD ret;
    1016                     char buf[256]; /* long enough ? */
    1017                    
    1018                     ret = GetPrivateProfileStringA("strings", placeholder, "",
    1019                                         buf, 256, IP_GetFileName(hInf));
    1020                     if (ret)
    1021                     {
    1022                         strcpy(pDst, buf);
    1023                         pDst += strlen(buf);
    1024                     }
    1025                     else
    1026                     {
    1027                         ERR("placeholder string '%s' not found !\n", placeholder);
    1028                         done = FALSE;
    1029                     }
    1030                 }
    1031                 if (!done)
    1032                 { /* copy raw placeholder string over */
    1033                     count = (int)p - (int)pPHBegin + 2;
    1034                     strncpy(pDst, pPHBegin-1, count);
    1035                     pDst += count;
    1036                    
    1037                 }
    1038                 pSrc = p+1;
    1039                 continue;
    1040             }
    1041         }
    1042 
    1043         /* copy the remaining source string over */
    1044         strncpy(pDst, pSrc, (int)pSrcEnd - (int)pSrc + 1);
    1045         break;
     987    p = strchr(pSrc, '%');
     988    if (p)
     989    {
     990        count = (int)p - (int)pSrc;
     991        strncpy(pDst, pSrc, count);
     992        pSrc += count;
     993        pDst += count;
     994        pPHBegin = p+1;
     995        p = strchr(pPHBegin, '%');
     996        if (p)
     997        {
     998        char placeholder[80]; /* that really ought to be enough ;) */
     999        int ldid;
     1000        BOOL done = TRUE;
     1001        count = (int)p - (int)pPHBegin;
     1002        strncpy(placeholder, pPHBegin, count);
     1003        placeholder[count] = '\0';
     1004        ldid = atoi(placeholder);
     1005        if (ldid)
     1006        {
     1007            LPSTR p;
     1008            done = SETUPX_IP_TranslateLDID(ldid, &p, hInf);
     1009            strcpy(pDst, p);
     1010            if (done)
     1011            pDst += strlen(pDst);
     1012        }
     1013        else
     1014        { /* hmm, string placeholder. Need to look up
     1015             in the [strings] section of the hInf */
     1016            DWORD ret;
     1017            char buf[256]; /* long enough ? */
     1018
     1019            ret = GetPrivateProfileStringA("strings", placeholder, "",
     1020                        buf, 256, IP_GetFileName(hInf));
     1021            if (ret)
     1022            {
     1023            strcpy(pDst, buf);
     1024            pDst += strlen(buf);
     1025            }
     1026            else
     1027            {
     1028                ERR("placeholder string '%s' not found !\n", placeholder);
     1029            done = FALSE;
     1030            }
     1031        }
     1032        if (!done)
     1033        { /* copy raw placeholder string over */
     1034            count = (int)p - (int)pPHBegin + 2;
     1035            strncpy(pDst, pPHBegin-1, count);
     1036            pDst += count;
     1037
     1038        }
     1039        pSrc = p+1;
     1040        continue;
     1041        }
     1042    }
     1043
     1044    /* copy the remaining source string over */
     1045    strncpy(pDst, pSrc, (int)pSrcEnd - (int)pSrc + 1);
     1046    break;
    10461047    }
    10471048    TRACE("ret '%s'\n", szDst);
     
    10491050
    10501051/***********************************************************************
    1051  *              VcpOpen
     1052 *      VcpOpen
    10521053 *
    10531054 * No idea what to do here.
     
    10601061
    10611062/***********************************************************************
    1062  *              VcpClose
     1063 *      VcpClose
    10631064 *
    10641065 * Is fl related to VCPDISKINFO.fl ?
     
    10911092    for (n=0; n < *(DWORD *)pSub; n++)
    10921093    {
    1093         pCopyEntry = *(pSub+1+n);
    1094         if (*pCopyEntry == '@')
    1095         {
    1096             ERR("single file not handled yet !\n");
    1097             continue;
    1098         }
    1099 
    1100         /* get source directory for that entry */
    1101         INIT_LDD(ldd, LDID_SRCPATH);
    1102         SETUPX_GetLdd(&ldd);
    1103         pSrcDir = ldd.pszPath;
    1104        
     1094    pCopyEntry = *(pSub+1+n);
     1095    if (*pCopyEntry == '@')
     1096    {
     1097        ERR("single file not handled yet !\n");
     1098        continue;
     1099    }
     1100
     1101    /* get source directory for that entry */
     1102    INIT_LDD(ldd, LDID_SRCPATH);
     1103    SETUPX_GetLdd(&ldd);
     1104    pSrcDir = ldd.pszPath;
     1105
    11051106        /* get destination directory for that entry */
    1106         if (!(GetPrivateProfileStringA("DestinationDirs", pCopyEntry, "",
    1107                                         pDestStr, sizeof(pDestStr), filename)))
    1108             continue;
    1109 
    1110         /* translate destination dir if given as LDID */
    1111         ldid = atoi(pDestStr);
    1112         if (ldid)
    1113         {
    1114             if (!(SETUPX_IP_TranslateLDID(ldid, &pDstDir, hInf)))
    1115                 continue;
    1116         }
    1117         else
    1118             pDstDir = pDestStr;
    1119        
    1120         /* now that we have the destination dir, iterate over files to copy */
    1121         pFileEntries = SETUPX_GetSectionEntries(filename, pCopyEntry);
     1107    if (!(GetPrivateProfileStringA("DestinationDirs", pCopyEntry, "",
     1108                    pDestStr, sizeof(pDestStr), filename)))
     1109        continue;
     1110
     1111    /* translate destination dir if given as LDID */
     1112    ldid = atoi(pDestStr);
     1113    if (ldid)
     1114    {
     1115        if (!(SETUPX_IP_TranslateLDID(ldid, &pDstDir, hInf)))
     1116        continue;
     1117    }
     1118    else
     1119        pDstDir = pDestStr;
     1120
     1121    /* now that we have the destination dir, iterate over files to copy */
     1122    pFileEntries = SETUPX_GetSectionEntries(filename, pCopyEntry);
    11221123        for (p=pFileEntries; *p; p +=strlen(p)+1)
    1123         {
    1124             pSubFile = SETUPX_GetSubStrings(p, ',');
    1125             pSrcFile = *(pSubFile+1);
    1126             pDstFile = (*(DWORD *)pSubFile > 1) ? *(pSubFile+2) : pSrcFile;
    1127             TRACE("copying file '%s\\%s' to '%s\\%s'\n", pSrcDir, pSrcFile, pDstDir, pDstFile);
    1128             if (*(DWORD *)pSubFile > 2)
    1129             {
    1130                 WORD flag;
    1131                 if ((flag = atoi(*(pSubFile+3)))) /* ah, flag */
    1132                 {
    1133                     if (flag & 0x2c)
    1134                     FIXME("VNLP_xxx flag %d not handled yet.\n", flag);
    1135                 }
    1136                 else
    1137                     FIXME("temp file name '%s' given. Need to register in wininit.ini !\n", *(pSubFile+3)); /* strong guess that this is VcpQueueCopy() */
    1138             }
    1139             SETUPX_FreeSubStrings(pSubFile);
    1140             /* we don't copy ANYTHING yet ! (I'm too lazy and want to verify
    1141              * this first before destroying whole partitions ;-) */
    1142         }
    1143     }
    1144            
     1124    {
     1125        pSubFile = SETUPX_GetSubStrings(p, ',');
     1126        pSrcFile = *(pSubFile+1);
     1127        pDstFile = (*(DWORD *)pSubFile > 1) ? *(pSubFile+2) : pSrcFile;
     1128        TRACE("copying file '%s\\%s' to '%s\\%s'\n", pSrcDir, pSrcFile, pDstDir, pDstFile);
     1129        if (*(DWORD *)pSubFile > 2)
     1130        {
     1131        WORD flag;
     1132        if ((flag = atoi(*(pSubFile+3)))) /* ah, flag */
     1133        {
     1134            if (flag & 0x2c)
     1135            FIXME("VNLP_xxx flag %d not handled yet.\n", flag);
     1136        }
     1137        else
     1138            FIXME("temp file name '%s' given. Need to register in wininit.ini !\n", *(pSubFile+3)); /* strong guess that this is VcpQueueCopy() */
     1139        }
     1140        SETUPX_FreeSubStrings(pSubFile);
     1141        /* we don't copy ANYTHING yet ! (I'm too lazy and want to verify
     1142         * this first before destroying whole partitions ;-) */
     1143    }
     1144    }
     1145
    11451146    return res;
    11461147}
    11471148
    11481149/***********************************************************************
    1149  *              GenInstall
     1150 *      GenInstall
    11501151 *
    11511152 * general install function for .INF file sections
    11521153 *
    11531154 * This is not perfect - patch whenever you can !
    1154  * 
     1155 *
    11551156 * wFlags == GENINSTALL_DO_xxx
    11561157 * e.g. NetMeeting:
     
    11691170    if (!pEntries)
    11701171    {
    1171         ERR("couldn't find entries for section '%s' !\n", szInstallSection);
    1172         return ERR_IP_SECT_NOT_FOUND;
     1172    ERR("couldn't find entries for section '%s' !\n", szInstallSection);
     1173    return ERR_IP_SECT_NOT_FOUND;
    11731174    }
    11741175    for (p=pEntries; *p; p +=strlen(p)+1)
    11751176    {
    1176         pEnd = strchr(p, '=');
    1177         if (!pEnd) continue;
    1178         pSub = SETUPX_GetSubStrings(pEnd+1, ','); /* split entries after the '=' */
    1179         SETUPX_IsolateSubString(&p, &pEnd);
    1180         len = (int)pEnd - (int)p;
    1181 
    1182         if (wFlags & GENINSTALL_DO_FILES)
    1183         {
    1184             if (!strncasecmp(p, "CopyFiles", len))
    1185             {
    1186                 SETUPX_CopyFiles(pSub, hInfFile);
    1187                 continue;
    1188             }
     1177    pEnd = strchr(p, '=');
     1178    if (!pEnd) continue;
     1179    pSub = SETUPX_GetSubStrings(pEnd+1, ','); /* split entries after the '=' */
     1180    SETUPX_IsolateSubString(&p, &pEnd);
     1181    len = (int)pEnd - (int)p;
     1182
     1183    if (wFlags & GENINSTALL_DO_FILES)
     1184    {
     1185        if (!strncasecmp(p, "CopyFiles", len))
     1186        {
     1187            SETUPX_CopyFiles(pSub, hInfFile);
     1188        continue;
     1189        }
    11891190#if IMPLEMENT_THAT
    1190             else
    1191             if (!strncasecmp(p, "DelFiles", len))
    1192             {
    1193                 SETUPX_DelFiles(filename, szInstallSection, pSub);
    1194                 continue;
    1195             }
     1191        else
     1192        if (!strncasecmp(p, "DelFiles", len))
     1193        {
     1194            SETUPX_DelFiles(filename, szInstallSection, pSub);
     1195        continue;
     1196        }
    11961197#endif
    1197         }
    1198         if (wFlags & GENINSTALL_DO_INI)
    1199         {
     1198    }
     1199    if (wFlags & GENINSTALL_DO_INI)
     1200    {
    12001201#if IMPLEMENT_THAT
    1201             if (!strncasecmp(p, "UpdateInis", len))
    1202             {
    1203                 SETUPX_UpdateInis(filename, szInstallSection, pSub);
    1204                 continue;
    1205             }
     1202        if (!strncasecmp(p, "UpdateInis", len))
     1203        {
     1204            SETUPX_UpdateInis(filename, szInstallSection, pSub);
     1205        continue;
     1206        }
    12061207#endif
    1207         }
    1208         if (wFlags & GENINSTALL_DO_REG)
    1209         {
     1208    }
     1209    if (wFlags & GENINSTALL_DO_REG)
     1210    {
    12101211#if IMPLEMENT_THAT
    1211             /* probably use SUReg*() functions here */
    1212             if (!strncasecmp(p, "AddReg", len))
    1213             {
    1214                 SETUPX_AddReg(filename, szInstallSection, pSub);
    1215                 continue;
    1216             }
    1217             else
    1218             if (!strncasecmp(p, "DelReg", len))
    1219             {
    1220                 SETUPX_DelReg(filename, szInstallSection, pSub);
    1221                 continue;
    1222             }
     1212        /* probably use SUReg*() functions here */
     1213        if (!strncasecmp(p, "AddReg", len))
     1214        {
     1215            SETUPX_AddReg(filename, szInstallSection, pSub);
     1216        continue;
     1217        }
     1218        else
     1219        if (!strncasecmp(p, "DelReg", len))
     1220        {
     1221            SETUPX_DelReg(filename, szInstallSection, pSub);
     1222        continue;
     1223        }
    12231224#endif
    1224         }
    1225        
    1226         SETUPX_FreeSubStrings(pSub);
     1225    }
     1226
     1227    SETUPX_FreeSubStrings(pSub);
    12271228    }
    12281229    HeapFree(GetProcessHeap(), 0, pEntries);
  • trunk/src/setupapi/stubs.c

    r4989 r6649  
    11/* -*- tab-width: 8; c-basic-offset: 8 -*- */
     2/* $Id: stubs.c,v 1.2 2001-09-05 13:38:24 bird Exp $ */
    23/*
    34 * SetupAPI stubs
     
    1617
    1718/***********************************************************************
    18  *              SetupCloseFileQueue
     19 *      SetupCloseFileQueue
    1920 */
    2021VOID WINAPI SetupCloseFileQueue(HSPFILEQ QueueHandle)
    2122{
    22         FIXME("not implemented (setupapi.dll) \n");
    23 }
    24 
    25 /***********************************************************************
    26  *              SetupCommitFileQueueA
     23    FIXME("not implemented (setupapi.dll) \n");
     24}
     25
     26/***********************************************************************
     27 *      SetupCommitFileQueueA
    2728 */
    2829BOOL WINAPI SetupCommitFileQueueA(HWND Owner, HSPFILEQ QueueHandle,
    29                                   PSP_FILE_CALLBACK_A MsgHandler,
    30                                   PVOID Context)
    31 {
    32         FIXME("not implemented (setupapi.dll) \n");
    33         return FALSE;
    34 }
    35 
    36 /***********************************************************************
    37  *              SetupIterateCabinetA
     30                  PSP_FILE_CALLBACK_A MsgHandler,
     31                  PVOID Context)
     32{
     33    FIXME("not implemented (setupapi.dll) \n");
     34    return FALSE;
     35}
     36
     37/***********************************************************************
     38 *      SetupIterateCabinetA
    3839 */
    3940BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved,
    4041                                 PSP_FILE_CALLBACK_A MsgHandler, PVOID Context)
    4142{
    42         FIXME("not implemented (setupapi.dll) \n");
    43         return 0;
    44 }
    45 
    46 /***********************************************************************
    47  *              SetupIterateCabinetW
     43    FIXME("not implemented (setupapi.dll) \n");
     44    return 0;
     45}
     46
     47/***********************************************************************
     48 *      SetupIterateCabinetW
    4849 */
    4950BOOL WINAPI SetupIterateCabinetW(PWSTR CabinetFile, DWORD Reserved,
    50                                  PSP_FILE_CALLBACK_W MsgHandler, PVOID Context) 
    51 {
    52         FIXME("not implemented (setupapi.dll) \n");
    53         return 0;
    54 }
    55 
    56 
    57 /***********************************************************************
    58  *              SetupGetLineTextA
     51                                 PSP_FILE_CALLBACK_W MsgHandler, PVOID Context)
     52{
     53    FIXME("not implemented (setupapi.dll) \n");
     54    return 0;
     55}
     56
     57
     58/***********************************************************************
     59 *      SetupGetLineTextA
    5960 */
    6061BOOL WINAPI SetupGetLineTextA (PINFCONTEXT Context, HINF InfHandle,
     
    6263                        DWORD ReturnBufferSize, PDWORD RequiredSize)
    6364{
    64         FIXME("not implemented (setupapi.dll) \n");
    65         return 0;
    66 }
    67 
    68 /***********************************************************************
    69  *              SetupGetStringFieldA
    70  */
    71 BOOL WINAPI SetupGetStringFieldA(PINFCONTEXT Context, DWORD FieldIndex, 
     65    FIXME("not implemented (setupapi.dll) \n");
     66    return 0;
     67}
     68
     69/***********************************************************************
     70 *      SetupGetStringFieldA
     71 */
     72BOOL WINAPI SetupGetStringFieldA(PINFCONTEXT Context, DWORD FieldIndex,
    7273                                 LPSTR ReturnBuffer, DWORD ReturnBufferSize,
    7374                                 PDWORD RequiredSize)
    7475{
    75         FIXME("not implemented (setupapi.dll) \n");
    76         return 0;
    77 }
    78 
    79 
    80 /***********************************************************************
    81  *              SetupFindNextLine
     76    FIXME("not implemented (setupapi.dll) \n");
     77    return 0;
     78}
     79
     80
     81/***********************************************************************
     82 *      SetupFindNextLine
    8283 */
    8384BOOL WINAPI SetupFindNextLine (PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
    8485{
    85         FIXME("not implemented (setupapi.dll) \n");
    86         return 0;
    87 }
    88 
    89 
    90 /***********************************************************************
    91  *              SetupInitDefaultQueueCallback
     86    FIXME("not implemented (setupapi.dll) \n");
     87    return 0;
     88}
     89
     90
     91/***********************************************************************
     92 *      SetupInitDefaultQueueCallback
    9293 */
    9394PVOID WINAPI SetupInitDefaultQueueCallback(HWND OwnerWindow)
    9495{
    95         FIXME("not implemented (setupapi.dll) \n");
    96         return 0;
    97 }
    98 
    99 /***********************************************************************
    100  *              SetupInitDefaultQueueCallbackEx
     96    FIXME("not implemented (setupapi.dll) \n");
     97    return 0;
     98}
     99
     100/***********************************************************************
     101 *      SetupInitDefaultQueueCallbackEx
    101102 */
    102103PVOID WINAPI SetupInitDefaultQueueCallbackEx(HWND OwnerWindow,
    103                                              HWND AlternativeProgressWindow,
    104                                              UINT ProgressMessage,
    105                                              DWORD res1,
    106                                              PVOID res2)
    107 {
    108         FIXME("not implemented (setupapi.dll) \n");
    109         return 0;
    110 }
    111 
    112 /***********************************************************************
    113  *              SetupCloseInfFile
     104                         HWND AlternativeProgressWindow,
     105                         UINT ProgressMessage,
     106                         DWORD res1,
     107                         PVOID res2)
     108{
     109    FIXME("not implemented (setupapi.dll) \n");
     110    return 0;
     111}
     112
     113/***********************************************************************
     114 *      SetupCloseInfFile
    114115 */
    115116VOID WINAPI SetupCloseInfFile (HINF InfHandle)
    116117{
    117         FIXME("not implemented (setupapi.dll) \n");
    118 }
    119 
    120 
    121 /***********************************************************************
    122  *              SetupDefaultQueueCallbackA
     118    FIXME("not implemented (setupapi.dll) \n");
     119}
     120
     121
     122/***********************************************************************
     123 *      SetupDefaultQueueCallbackA
    123124 */
    124125UINT WINAPI SetupDefaultQueueCallbackA (PVOID Context, UINT Notification,
    125126                                        UINT Param1, UINT Param2)
    126127{
    127         FIXME("not implemented (setupapi.dll) \n");
    128         return 0;
    129 }
    130 
    131 
    132 /***********************************************************************
    133  *              SetupFindFirstLineA
     128    FIXME("not implemented (setupapi.dll) \n");
     129    return 0;
     130}
     131
     132
     133/***********************************************************************
     134 *      SetupFindFirstLineA
    134135 */
    135136BOOL WINAPI SetupFindFirstLineA (HINF InfHandle, PCSTR Section, PCSTR Key,
    136137                                 PINFCONTEXT Context)
    137138{
    138         FIXME("not implemented (setupapi.dll) \n");
    139         return 0;
    140 }
    141 
    142 /***********************************************************************
    143  *              SetupGetLineByIndexA
     139    FIXME("not implemented (setupapi.dll) \n");
     140    return 0;
     141}
     142
     143/***********************************************************************
     144 *      SetupGetLineByIndexA
    144145 */
    145146BOOL WINAPI SetupGetLineByIndexA (HINF InfHandle, PCSTR Section, DWORD Index,
    146147                                 PINFCONTEXT Context)
    147148{
    148         FIXME("not implemented (setupapi.dll) \n");
    149         return FALSE;
    150 }
    151 
    152 
    153 /***********************************************************************
    154  *              SetupInstallFromInfSectionA
     149    FIXME("not implemented (setupapi.dll) \n");
     150    return FALSE;
     151}
     152
     153
     154/***********************************************************************
     155 *      SetupInstallFromInfSectionA
    155156 */
    156157BOOL WINAPI SetupInstallFromInfSectionA (HWND Owner, HINF InfHandle, PCSTR SectionName,
     
    160161                                         PSP_DEVINFO_DATA DeviceInfoData)
    161162{
    162         FIXME("not implemented (setupapi.dll) \n");
    163         return 0;
    164 }
    165 
    166 /***********************************************************************
    167  *              SetupOpenAppendInfFileA
     163    FIXME("not implemented (setupapi.dll) \n");
     164    return 0;
     165}
     166
     167/***********************************************************************
     168 *      SetupOpenAppendInfFileA
    168169 */
    169170BOOL WINAPI SetupOpenAppendInfFileA (PCSTR FileName, HINF InfHandle,
    170                                     PUINT ErrorLine)
    171 {
    172         FIXME("not implemented (setupapi.dll) \n");
    173         return FALSE;
    174 }
    175 
    176 /***********************************************************************
    177  *              SetupOpenFileQueue
     171                    PUINT ErrorLine)
     172{
     173    FIXME("not implemented (setupapi.dll) \n");
     174    return FALSE;
     175}
     176
     177/***********************************************************************
     178 *      SetupOpenFileQueue
    178179 */
    179180HSPFILEQ WINAPI SetupOpenFileQueue (VOID)
    180181{
    181         FIXME("not implemented (setupapi.dll) \n");
    182         return (HSPFILEQ) INVALID_HANDLE_VALUE;
    183 }
    184 
    185 /***********************************************************************
    186  *              SetupOpenInfFileA
     182    FIXME("not implemented (setupapi.dll) \n");
     183    return (HSPFILEQ) INVALID_HANDLE_VALUE;
     184}
     185
     186/***********************************************************************
     187 *      SetupOpenInfFileA
    187188 */
    188189HINF WINAPI SetupOpenInfFileA (PCSTR FileName, PCSTR InfClass, DWORD InfStyle,
    189190                               PUINT ErrorLine)
    190191{
    191         FIXME("not implemented (setupapi.dll) \n");
    192         return 0;
    193 }
    194 
    195 /***********************************************************************
    196  *              SetupQueueCopyA
     192    FIXME("not implemented (setupapi.dll) \n");
     193    return 0;
     194}
     195
     196/***********************************************************************
     197 *      SetupQueueCopyA
    197198 */
    198199BOOL WINAPI SetupQueueCopyA (HSPFILEQ QueueHandle, PCSTR SourceRootPath, PCSTR SourcePath,
    199                              PCSTR SourceFileName, PCSTR SourceDescription, PCSTR SourceTagFile,
    200                              PCSTR TargetDirectory, PCSTR TargetFileName, DWORD CopyStyle)
    201 {
    202         FIXME("not implemented (setupapi.dll) \n");
    203         return FALSE;
    204 }
    205 
    206 /***********************************************************************
    207  *              SetupSetDirectoryIdA
     200                 PCSTR SourceFileName, PCSTR SourceDescription, PCSTR SourceTagFile,
     201                 PCSTR TargetDirectory, PCSTR TargetFileName, DWORD CopyStyle)
     202{
     203    FIXME("not implemented (setupapi.dll) \n");
     204    return FALSE;
     205}
     206
     207/***********************************************************************
     208 *      SetupSetDirectoryIdA
    208209 */
    209210BOOL WINAPI SetupSetDirectoryIdA (HINF InfHandle,
    210                                   DWORD Id,
    211                                   PCSTR Directory)
    212 {
    213         FIXME("not implemented (setupapi.dll) \n");
    214         return FALSE;
    215 }
    216 
    217 
    218 /***********************************************************************
    219  *              SetupTermDefaultQueueCallback
     211                  DWORD Id,
     212                  PCSTR Directory)
     213{
     214    FIXME("not implemented (setupapi.dll) \n");
     215    return FALSE;
     216}
     217
     218
     219/***********************************************************************
     220 *      SetupTermDefaultQueueCallback
    220221 */
    221222VOID WINAPI SetupTermDefaultQueueCallback (PVOID Callback)
    222223{
    223         FIXME("not implemented (setupapi.dll) \n");
    224 }
    225 
     224    FIXME("not implemented (setupapi.dll) \n");
     225}
     226
  • trunk/src/shdocvw/classinfo.c

    r4943 r6649  
     1/* $Id: classinfo.c,v 1.2 2001-09-05 13:39:11 bird Exp $ */
    12/*
    23 * Implementation of IProvideClassInfo interfaces for IE Web Browser control
     
    5657 */
    5758
    58 static ICOM_VTABLE(IProvideClassInfo) WBPCI_Vtbl = 
     59static ICOM_VTABLE(IProvideClassInfo) WBPCI_Vtbl =
    5960{
    6061    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     
    141142 */
    142143
    143 static ICOM_VTABLE(IProvideClassInfo2) WBPCI2_Vtbl = 
     144static ICOM_VTABLE(IProvideClassInfo2) WBPCI2_Vtbl =
    144145{
    145146    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
  • trunk/src/shdocvw/events.c

    r4943 r6649  
     1/* $Id: events.c,v 1.2 2001-09-05 13:39:11 bird Exp $ */
    12/*
    23 * Implementation of event-related interfaces for IE Web Browser control:
     
    8687 */
    8788
    88 static ICOM_VTABLE(IConnectionPointContainer) WBCPC_Vtbl = 
     89static ICOM_VTABLE(IConnectionPointContainer) WBCPC_Vtbl =
    8990{
    9091    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     
    181182 */
    182183
    183 static ICOM_VTABLE(IConnectionPoint) WBCP_Vtbl = 
     184static ICOM_VTABLE(IConnectionPoint) WBCP_Vtbl =
    184185{
    185186    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
  • trunk/src/shdocvw/factory.c

    r4943 r6649  
     1/* $Id: factory.c,v 1.2 2001-09-05 13:39:11 bird Exp $ */
    12/*
    23 * Implementation of class factory for IE Web Browser
     
    9596}
    9697
    97 static ICOM_VTABLE(IClassFactory) WBCF_Vtbl = 
     98static ICOM_VTABLE(IClassFactory) WBCF_Vtbl =
    9899{
    99100    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
  • trunk/src/shdocvw/misc.c

    r4943 r6649  
     1/* $Id: misc.c,v 1.2 2001-09-05 13:39:12 bird Exp $ */
    12/*
    23 * Implementation of miscellaneous interfaces for IE Web Browser control:
     
    6768 */
    6869
    69 static ICOM_VTABLE(IQuickActivate) WBQA_Vtbl = 
     70static ICOM_VTABLE(IQuickActivate) WBQA_Vtbl =
    7071{
    7172    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
  • trunk/src/shdocvw/oleobject.c

    r4943 r6649  
     1/* $Id: oleobject.c,v 1.2 2001-09-05 13:39:12 bird Exp $ */
    12/*
    23 * Implementation of IOleObject interfaces for IE Web Browser
     
    396397 */
    397398
    398 static ICOM_VTABLE(IOleObject) WBOOBJ_Vtbl = 
     399static ICOM_VTABLE(IOleObject) WBOOBJ_Vtbl =
    399400{
    400401    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     
    514515 */
    515516
    516 static ICOM_VTABLE(IOleInPlaceObject) WBOIPO_Vtbl = 
     517static ICOM_VTABLE(IOleInPlaceObject) WBOIPO_Vtbl =
    517518{
    518519    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     
    589590 */
    590591
    591 static ICOM_VTABLE(IOleControl) WBOC_Vtbl = 
     592static ICOM_VTABLE(IOleControl) WBOC_Vtbl =
    592593{
    593594    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
  • trunk/src/shdocvw/persist.c

    r4943 r6649  
     1/* $Id: persist.c,v 1.2 2001-09-05 13:39:12 bird Exp $ */
    12/*
    23 * Implementation of IPersist interfaces for IE Web Browser control
     
    8182 */
    8283
    83 static ICOM_VTABLE(IPersistStorage) WBPS_Vtbl = 
     84static ICOM_VTABLE(IPersistStorage) WBPS_Vtbl =
    8485{
    8586    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     
    170171 */
    171172
    172 static ICOM_VTABLE(IPersistStreamInit) WBPSI_Vtbl = 
     173static ICOM_VTABLE(IPersistStreamInit) WBPSI_Vtbl =
    173174{
    174175    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
  • trunk/src/shdocvw/shdocvw_main.c

    r4943 r6649  
     1/* $Id: shdocvw_main.c,v 1.2 2001-09-05 13:39:12 bird Exp $ */
    12/*
    23 * SHDOCVW - Internet Explorer Web Control
     
    6667
    6768/***********************************************************************
    68  *              DllRegisterServer (SHDOCVW.124)
     69 *      DllRegisterServer (SHDOCVW.124)
    6970 */
    7071HRESULT WINAPI SHDOCVW_DllRegisterServer()
     
    7576
    7677/***********************************************************************
    77  *              DllUnregisterServer (SHDOCVW.127)
     78 *      DllUnregisterServer (SHDOCVW.127)
    7879 */
    7980HRESULT WINAPI SHDOCVW_DllUnregisterServer()
  • trunk/src/shdocvw/webbrowser.c

    r4943 r6649  
     1/* $Id: webbrowser.c,v 1.2 2001-09-05 13:39:12 bird Exp $ */
    12/*
    23 * Implementation of IWebBrowser interface for IE Web Browser control
     
    228229 */
    229230
    230 static ICOM_VTABLE(IWebBrowser) WB_Vtbl = 
     231static ICOM_VTABLE(IWebBrowser) WB_Vtbl =
    231232{
    232233    ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
Note: See TracChangeset for help on using the changeset viewer.