Changeset 21849 for branches/gcc-kmk/src


Ignore:
Timestamp:
Dec 6, 2011, 2:03:14 PM (14 years ago)
Author:
dmik
Message:

Port RPCRT4 to GCC/kBuild.

Location:
branches/gcc-kmk/src
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/Makefile.kmk

    r21846 r21849  
    2727include $(PATH_SUB_CURRENT)/msvfw32/Makefile.kmk
    2828include $(PATH_SUB_CURRENT)/advapi32/Makefile.kmk
     29include $(PATH_SUB_CURRENT)/rpcrt4/Makefile.kmk
    2930
    3031include $(FILE_KBUILD_SUB_FOOTER)
  • branches/gcc-kmk/src/rpcrt4/initterm.cpp

    r6649 r21849  
    11/* $Id: initterm.cpp,v 1.7 2001-09-05 13:37:51 bird Exp $ */
    22/*
    3  * DLL entry point
     3 * RPCRT4 DLL entry point
    44 *
    55 * Copyright 1998 Sander van Leeuwen
    66 * Copyright 1998 Peter Fitzsimmons
    77 *
    8  *
    98 * Project Odin Software License can be found in LICENSE.TXT
    10  *
    119 */
    1210
    13 /*-------------------------------------------------------------*/
    14 /* INITERM.C -- Source for a custom dynamic link library       */
    15 /*              initialization and termination (_DLL_InitTerm) */
    16 /*              function.                                      */
    17 /*                                                             */
    18 /* When called to perform initialization, this sample function */
    19 /* gets storage for an array of integers, and initializes its  */
    20 /* elements with random integers.  At termination time, it     */
    21 /* frees the array.  Substitute your own special processing.   */
    22 /*-------------------------------------------------------------*/
    23 
    24 
    25 /* Include files */
    2611#define  INCL_DOSMODULEMGR
    2712#define  INCL_DOSPROCESS
     
    3823#include <initdll.h>
    3924
    40 /****************************************************************************/
    41 /* _DLL_InitTerm is the function that gets called by the operating system   */
    42 /* loader when it loads and frees this DLL for each process that accesses   */
    43 /* this DLL.  However, it only gets called the first time the DLL is loaded */
    44 /* and the last time it is freed for a particular process.  The system      */
    45 /* linkage convention MUST be used because the operating system loader is   */
    46 /* calling this function.                                                   */
    47 /****************************************************************************/
    48 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long
    49                                    ulFlag)
     25// Win32 resource table (produced by wrc)
     26extern DWORD rpcrt4_PEResTab;
     27
     28static HMODULE dllHandle = 0;
     29
     30ULONG SYSTEM DLL_InitRpcRt4(ULONG hModule)
    5031{
    51    size_t i;
    52    APIRET rc;
     32    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    5333
    54    /*-------------------------------------------------------------------------*/
    55    /* If ulFlag is zero then the DLL is being loaded so initialization should */
    56    /* be performed.  If ulFlag is 1 then the DLL is being freed so            */
    57    /* termination should be performed.                                        */
    58    /*-------------------------------------------------------------------------*/
     34    dllHandle = RegisterLxDll(hModule, NULL, (PVOID)&rpcrt4_PEResTab);
     35    if (dllHandle == 0)
     36           return -1;
    5937
    60    switch (ulFlag) {
    61       case 0 :
    62          ctordtorInit();
     38    //SvL: Must be done here as the socket calls trash FS!
     39    /* Init the Uuid subsystem */
     40    UuidInit();
    6341
    64          CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     42    return 0;
     43}
    6544
    66          return inittermRpcrt4(hModule, ulFlag);
     45void SYSTEM DLL_TermRpcRt4(ULONG hModule)
     46{
     47    if (dllHandle)
     48       UnregisterLxDll(dllHandle);
     49}
    6750
    68       case 1 :
    69          inittermRpcrt4(hModule, ulFlag);
    70          ctordtorTerm();
    71          break;
     51ULONG SYSTEM DLL_Init(ULONG hModule)
     52{
     53    if (DLL_InitDefault(hModule) == -1)
     54        return -1;
     55    return DLL_InitRpcRt4(hModule);
     56}
    7257
    73       default  :
    74          return 0UL;
    75    }
    76 
    77    /***********************************************************/
    78    /* A non-zero value must be returned to indicate success.  */
    79    /***********************************************************/
    80    return 1UL;
     58void SYSTEM DLL_Term(ULONG hModule)
     59{
     60    DLL_TermRpcRt4(hModule);
     61    DLL_TermDefault(hModule);
    8162}
  • branches/gcc-kmk/src/rpcrt4/rpcrt4.def

    r4809 r21849  
    77DESCRIPTION 'Odin32 System DLL - RPCRT4 - Remote Procedure Call Runtime'
    88DATA MULTIPLE NONSHARED
    9 
    10 IMPORTS
    11     _RtlLargeIntegerAdd@16      = NTDLL.RtlLargeIntegerAdd
    12     _RtlExtendedIntegerMultiply@12  = NTDLL.RtlExtendedIntegerMultiply
    139
    1410EXPORTS
     
    2420; CreateProxyFromTypeInfo       = _CreateProxyFromTypeInfo@0            @0x0000
    2521; CreateStubFromTypeInfo        = _CreateStubFromTypeInfo@0         @0x0001
    26 DceErrorInqTextA            = _DceErrorInqTextA@8               @0x000e
    27 DceErrorInqTextW            = _DceErrorInqTextW@8               @0x000f
     22DceErrorInqTextA            = "_DceErrorInqTextA@8"             @0x000e
     23DceErrorInqTextW            = "_DceErrorInqTextW@8"             @0x000f
    2824; DllGetClassObject         = _DllGetClassObject@0              @0x0010
    2925; DllRegisterServer         = _DllRegisterServer@0              @0x0011
     
    163159; NdrDllCanUnloadNow            = _NdrDllCanUnloadNow@0             @0x0095
    164160; NdrDllGetClassObject          = _NdrDllGetClassObject@0           @0x0096
    165  NdrDllRegisterProxy            = _NdrDllRegisterProxy@12           @0x0097
    166  NdrDllUnregisterProxy          = _NdrDllUnregisterProxy@12         @0x0098
     161 NdrDllRegisterProxy            = "_NdrDllRegisterProxy@12"         @0x0097
     162 NdrDllUnregisterProxy          = "_NdrDllUnregisterProxy@12"       @0x0098
    167163; NdrEncapsulatedUnionBufferSize    = _NdrEncapsulatedUnionBufferSize@0     @0x0099
    168164; NdrEncapsulatedUnionFree      = _NdrEncapsulatedUnionFree@0           @0x009a
     
    284280; NdrpSetRpcSsDefaults          = _NdrpSetRpcSsDefaults@0           @0x010e
    285281; PerformRpcInitialization      = _PerformRpcInitialization@0           @0x0004
    286 RpcBindingCopy              = _RpcBindingCopy@8             @0x010f
    287 RpcBindingFree              = _RpcBindingFree@4             @0x0110
    288 RpcBindingFromStringBindingA        = _RpcBindingFromStringBindingA@8       @0x0111
    289 RpcBindingFromStringBindingW        = _RpcBindingFromStringBindingW@8       @0x0112
    290 RpcBindingInqAuthClientA        = _RpcBindingInqAuthClientA@24          @0x0113
    291 RpcBindingInqAuthClientW        = _RpcBindingInqAuthClientW@24          @0x0114
    292 RpcBindingInqAuthInfoA          = _RpcBindingInqAuthInfoA@24            @0x0115
    293 RpcBindingInqAuthInfoExA        = _RpcBindingInqAuthInfoExA@32          @0x0116
    294 RpcBindingInqAuthInfoExW        = _RpcBindingInqAuthInfoExW@32          @0x0117
    295 RpcBindingInqAuthInfoW          = _RpcBindingInqAuthInfoW@24            @0x0118
    296 RpcBindingInqObject         = _RpcBindingInqObject@8            @0x0119
    297 RpcBindingInqOption         = _RpcBindingInqOption@12           @0x011a
    298 RpcBindingReset             = _RpcBindingReset@4                @0x011b
    299 RpcBindingServerFromClient      = _RpcBindingServerFromClient@8         @0x011c
    300 RpcBindingSetAuthInfoA          = _RpcBindingSetAuthInfoA@24            @0x011d
    301 RpcBindingSetAuthInfoExA        = _RpcBindingSetAuthInfoExA@28          @0x011e
    302 RpcBindingSetAuthInfoExW        = _RpcBindingSetAuthInfoExW@28          @0x011f
    303 RpcBindingSetAuthInfoW          = _RpcBindingSetAuthInfoW@24            @0x0120
    304 RpcBindingSetObject         = _RpcBindingSetObject@8            @0x0121
    305 RpcBindingSetOption         = _RpcBindingSetOption@12           @0x0122
    306 RpcBindingToStringBindingA      = _RpcBindingToStringBindingA@8         @0x0123
    307 RpcBindingToStringBindingW      = _RpcBindingToStringBindingW@8         @0x0124
    308 RpcBindingVectorFree            = _RpcBindingVectorFree@4           @0x0125
    309 RpcCancelThread             = _RpcCancelThread@4                @0x0126
    310 RpcEpRegisterA              = _RpcEpRegisterA@16                @0x0127
    311 RpcEpRegisterNoReplaceA         = _RpcEpRegisterNoReplaceA@16           @0x0128
    312 RpcEpRegisterNoReplaceW         = _RpcEpRegisterNoReplaceW@16           @0x0129
    313 RpcEpRegisterW              = _RpcEpRegisterW@16                @0x012a
    314 RpcEpResolveBinding         = _RpcEpResolveBinding@8            @0x012b
    315 RpcEpUnregister             = _RpcEpUnregister@12               @0x012c
    316 RpcIfIdVectorFree           = _RpcIfIdVectorFree@4              @0x012d
    317 RpcIfInqId              = _RpcIfInqId@8                 @0x012e
     282RpcBindingCopy              = "_RpcBindingCopy@8"           @0x010f
     283RpcBindingFree              = "_RpcBindingFree@4"           @0x0110
     284RpcBindingFromStringBindingA        = "_RpcBindingFromStringBindingA@8"     @0x0111
     285RpcBindingFromStringBindingW        = "_RpcBindingFromStringBindingW@8"     @0x0112
     286RpcBindingInqAuthClientA        = "_RpcBindingInqAuthClientA@24"        @0x0113
     287RpcBindingInqAuthClientW        = "_RpcBindingInqAuthClientW@24"        @0x0114
     288RpcBindingInqAuthInfoA          = "_RpcBindingInqAuthInfoA@24"          @0x0115
     289RpcBindingInqAuthInfoExA        = "_RpcBindingInqAuthInfoExA@32"        @0x0116
     290RpcBindingInqAuthInfoExW        = "_RpcBindingInqAuthInfoExW@32"        @0x0117
     291RpcBindingInqAuthInfoW          = "_RpcBindingInqAuthInfoW@24"          @0x0118
     292RpcBindingInqObject         = "_RpcBindingInqObject@8"          @0x0119
     293RpcBindingInqOption         = "_RpcBindingInqOption@12"         @0x011a
     294RpcBindingReset             = "_RpcBindingReset@4"              @0x011b
     295RpcBindingServerFromClient      = "_RpcBindingServerFromClient@8"       @0x011c
     296RpcBindingSetAuthInfoA          = "_RpcBindingSetAuthInfoA@24"          @0x011d
     297RpcBindingSetAuthInfoExA        = "_RpcBindingSetAuthInfoExA@28"        @0x011e
     298RpcBindingSetAuthInfoExW        = "_RpcBindingSetAuthInfoExW@28"        @0x011f
     299RpcBindingSetAuthInfoW          = "_RpcBindingSetAuthInfoW@24"          @0x0120
     300RpcBindingSetObject         = "_RpcBindingSetObject@8"          @0x0121
     301RpcBindingSetOption         = "_RpcBindingSetOption@12"         @0x0122
     302RpcBindingToStringBindingA      = "_RpcBindingToStringBindingA@8"       @0x0123
     303RpcBindingToStringBindingW      = "_RpcBindingToStringBindingW@8"       @0x0124
     304RpcBindingVectorFree            = "_RpcBindingVectorFree@4"         @0x0125
     305RpcCancelThread             = "_RpcCancelThread@4"              @0x0126
     306RpcEpRegisterA              = "_RpcEpRegisterA@16"              @0x0127
     307RpcEpRegisterNoReplaceA         = "_RpcEpRegisterNoReplaceA@16"         @0x0128
     308RpcEpRegisterNoReplaceW         = "_RpcEpRegisterNoReplaceW@16"         @0x0129
     309RpcEpRegisterW              = "_RpcEpRegisterW@16"              @0x012a
     310RpcEpResolveBinding         = "_RpcEpResolveBinding@8"          @0x012b
     311RpcEpUnregister             = "_RpcEpUnregister@12"             @0x012c
     312RpcIfIdVectorFree           = "_RpcIfIdVectorFree@4"            @0x012d
     313RpcIfInqId              = "_RpcIfInqId@8"               @0x012e
    318314; RpcImpersonateClient          = _RpcImpersonateClient@0           @0x012f
    319 RpcMgmtBindingInqParameter      = _RpcMgmtBindingInqParameter@12        @0x0130
    320 RpcMgmtBindingSetParameter      = _RpcMgmtBindingSetParameter@12        @0x0131
    321 RpcMgmtEnableIdleCleanup        = _RpcMgmtEnableIdleCleanup@0           @0x0132
    322 RpcMgmtEpEltInqBegin            = _RpcMgmtEpEltInqBegin@24          @0x0133
    323 RpcMgmtEpEltInqDone         = _RpcMgmtEpEltInqDone@4            @0x0134
    324 RpcMgmtEpEltInqNextA            = _RpcMgmtEpEltInqNextA@20          @0x0135
    325 RpcMgmtEpEltInqNextW            = _RpcMgmtEpEltInqNextW@20          @0x0136
    326 RpcMgmtEpUnregister         = _RpcMgmtEpUnregister@16           @0x0137
    327 RpcMgmtInqComTimeout            = _RpcMgmtInqComTimeout@8           @0x0138
    328 RpcMgmtInqDefaultProtectLevel       = _RpcMgmtInqDefaultProtectLevel@8      @0x0139
    329 RpcMgmtInqIfIds             = _RpcMgmtInqIfIds@8                @0x013a
    330 RpcMgmtInqParameter         = _RpcMgmtInqParameter@8            @0x013b
    331 RpcMgmtInqServerPrincNameA      = _RpcMgmtInqServerPrincNameA@12        @0x013c
    332 RpcMgmtInqServerPrincNameW      = _RpcMgmtInqServerPrincNameW@12        @0x013d
    333 RpcMgmtInqStats             = _RpcMgmtInqStats@8                @0x013e
    334 RpcMgmtIsServerListening        = _RpcMgmtIsServerListening@4           @0x013f
    335 RpcMgmtSetAuthorizationFn       = _RpcMgmtSetAuthorizationFn@4          @0x0140
    336 RpcMgmtSetCancelTimeout         = _RpcMgmtSetCancelTimeout@4            @0x0141
    337 RpcMgmtSetComTimeout            = _RpcMgmtSetComTimeout@8           @0x0142
    338 RpcMgmtSetParameter         = _RpcMgmtSetParameter@8            @0x0143
    339 RpcMgmtSetServerStackSize       = _RpcMgmtSetServerStackSize@4          @0x0144
    340 RpcMgmtStatsVectorFree          = _RpcMgmtStatsVectorFree@4         @0x0145
    341 RpcMgmtStopServerListening      = _RpcMgmtStopServerListening@4         @0x0146
    342 RpcMgmtWaitServerListen         = _RpcMgmtWaitServerListen@0            @0x0147
    343 RpcNetworkInqProtseqsA          = _RpcNetworkInqProtseqsA@4         @0x0148
    344 RpcNetworkInqProtseqsW          = _RpcNetworkInqProtseqsW@4         @0x0149
    345 RpcNetworkIsProtseqValidA       = _RpcNetworkIsProtseqValidA@4          @0x014a
    346 RpcNetworkIsProtseqValidW       = _RpcNetworkIsProtseqValidW@4          @0x014b
    347 RpcNsBindingInqEntryNameA       = _RpcNsBindingInqEntryNameA@12         @0x014c
    348 RpcNsBindingInqEntryNameW       = _RpcNsBindingInqEntryNameW@12         @0x014d
    349 RpcObjectInqType            = _RpcObjectInqType@8               @0x014e
    350 RpcObjectSetInqFn           = _RpcObjectSetInqFn@4              @0x014f
    351 RpcObjectSetType            = _RpcObjectSetType@8               @0x0150
    352 RpcProtseqVectorFreeA           = _RpcProtseqVectorFreeA@4          @0x0151
    353 RpcProtseqVectorFreeW           = _RpcProtseqVectorFreeW@4          @0x0152
    354 RpcRaiseException           = _RpcRaiseException@4              @0x0153
     315RpcMgmtBindingInqParameter      = "_RpcMgmtBindingInqParameter@12"      @0x0130
     316RpcMgmtBindingSetParameter      = "_RpcMgmtBindingSetParameter@12"      @0x0131
     317RpcMgmtEnableIdleCleanup        = "_RpcMgmtEnableIdleCleanup@0"         @0x0132
     318RpcMgmtEpEltInqBegin            = "_RpcMgmtEpEltInqBegin@24"        @0x0133
     319RpcMgmtEpEltInqDone         = "_RpcMgmtEpEltInqDone@4"          @0x0134
     320RpcMgmtEpEltInqNextA            = "_RpcMgmtEpEltInqNextA@20"        @0x0135
     321RpcMgmtEpEltInqNextW            = "_RpcMgmtEpEltInqNextW@20"        @0x0136
     322RpcMgmtEpUnregister         = "_RpcMgmtEpUnregister@16"         @0x0137
     323RpcMgmtInqComTimeout            = "_RpcMgmtInqComTimeout@8"         @0x0138
     324RpcMgmtInqDefaultProtectLevel       = "_RpcMgmtInqDefaultProtectLevel@8"    @0x0139
     325RpcMgmtInqIfIds             = "_RpcMgmtInqIfIds@8"              @0x013a
     326RpcMgmtInqParameter         = "_RpcMgmtInqParameter@8"          @0x013b
     327RpcMgmtInqServerPrincNameA      = "_RpcMgmtInqServerPrincNameA@12"      @0x013c
     328RpcMgmtInqServerPrincNameW      = "_RpcMgmtInqServerPrincNameW@12"      @0x013d
     329RpcMgmtInqStats             = "_RpcMgmtInqStats@8"              @0x013e
     330RpcMgmtIsServerListening        = "_RpcMgmtIsServerListening@4"         @0x013f
     331RpcMgmtSetAuthorizationFn       = "_RpcMgmtSetAuthorizationFn@4"        @0x0140
     332RpcMgmtSetCancelTimeout         = "_RpcMgmtSetCancelTimeout@4"          @0x0141
     333RpcMgmtSetComTimeout            = "_RpcMgmtSetComTimeout@8"         @0x0142
     334RpcMgmtSetParameter         = "_RpcMgmtSetParameter@8"          @0x0143
     335RpcMgmtSetServerStackSize       = "_RpcMgmtSetServerStackSize@4"        @0x0144
     336RpcMgmtStatsVectorFree          = "_RpcMgmtStatsVectorFree@4"       @0x0145
     337RpcMgmtStopServerListening      = "_RpcMgmtStopServerListening@4"       @0x0146
     338RpcMgmtWaitServerListen         = "_RpcMgmtWaitServerListen@0"          @0x0147
     339RpcNetworkInqProtseqsA          = "_RpcNetworkInqProtseqsA@4"       @0x0148
     340RpcNetworkInqProtseqsW          = "_RpcNetworkInqProtseqsW@4"       @0x0149
     341RpcNetworkIsProtseqValidA       = "_RpcNetworkIsProtseqValidA@4"        @0x014a
     342RpcNetworkIsProtseqValidW       = "_RpcNetworkIsProtseqValidW@4"        @0x014b
     343RpcNsBindingInqEntryNameA       = "_RpcNsBindingInqEntryNameA@12"       @0x014c
     344RpcNsBindingInqEntryNameW       = "_RpcNsBindingInqEntryNameW@12"       @0x014d
     345RpcObjectInqType            = "_RpcObjectInqType@8"             @0x014e
     346RpcObjectSetInqFn           = "_RpcObjectSetInqFn@4"            @0x014f
     347RpcObjectSetType            = "_RpcObjectSetType@8"             @0x0150
     348RpcProtseqVectorFreeA           = "_RpcProtseqVectorFreeA@4"        @0x0151
     349RpcProtseqVectorFreeW           = "_RpcProtseqVectorFreeW@4"        @0x0152
     350RpcRaiseException           = "_RpcRaiseException@4"            @0x0153
    355351; RpcRevertToSelf           = _RpcRevertToSelf@0                @0x0154
    356352; RpcRevertToSelfEx         = _RpcRevertToSelfEx@0              @0x0155
    357 RpcServerInqBindings            = _RpcServerInqBindings@4           @0x0156
    358 RpcServerInqDefaultPrincNameA       = _RpcServerInqDefaultPrincNameA@8      @0x0157
    359 RpcServerInqDefaultPrincNameW       = _RpcServerInqDefaultPrincNameW@8      @0x0158
    360 RpcServerInqIf              = _RpcServerInqIf@12                @0x0159
    361 RpcServerListen             = _RpcServerListen@12               @0x015a
    362 RpcServerRegisterAuthInfoA      = _RpcServerRegisterAuthInfoA@16        @0x015b
    363 RpcServerRegisterAuthInfoW      = _RpcServerRegisterAuthInfoW@16        @0x015c
    364 RpcServerRegisterIf         = _RpcServerRegisterIf@12           @0x015d
    365 RpcServerRegisterIfEx           = _RpcServerRegisterIfEx@24         @0x015e
    366 RpcServerUnregisterIf           = _RpcServerUnregisterIf@12         @0x015f
    367 RpcServerUseAllProtseqs         = _RpcServerUseAllProtseqs@8            @0x0160
    368 RpcServerUseAllProtseqsEx       = _RpcServerUseAllProtseqsEx@12         @0x0161
    369 RpcServerUseAllProtseqsIf       = _RpcServerUseAllProtseqsIf@12         @0x0162
    370 RpcServerUseAllProtseqsIfEx     = _RpcServerUseAllProtseqsIfEx@16       @0x0163
    371 RpcServerUseProtseqA            = _RpcServerUseProtseqA@12          @0x0164
    372 RpcServerUseProtseqEpA          = _RpcServerUseProtseqEpA@16            @0x0165
    373 RpcServerUseProtseqEpExA        = _RpcServerUseProtseqEpExA@20          @0x0166
    374 RpcServerUseProtseqEpExW        = _RpcServerUseProtseqEpExW@20          @0x0167
    375 RpcServerUseProtseqEpW          = _RpcServerUseProtseqEpW@16            @0x0168
    376 RpcServerUseProtseqExA          = _RpcServerUseProtseqExA@16            @0x0169
    377 RpcServerUseProtseqExW          = _RpcServerUseProtseqExW@16            @0x016a
    378 RpcServerUseProtseqIfA          = _RpcServerUseProtseqIfA@16            @0x016b
    379 RpcServerUseProtseqIfExA        = _RpcServerUseProtseqIfExA@20          @0x016c
    380 RpcServerUseProtseqIfExW        = _RpcServerUseProtseqIfExW@20          @0x016d
    381 RpcServerUseProtseqIfW          = _RpcServerUseProtseqIfW@16            @0x016e
    382 RpcServerUseProtseqW            = _RpcServerUseProtseqW@12          @0x016f
     353RpcServerInqBindings            = "_RpcServerInqBindings@4"         @0x0156
     354RpcServerInqDefaultPrincNameA       = "_RpcServerInqDefaultPrincNameA@8"    @0x0157
     355RpcServerInqDefaultPrincNameW       = "_RpcServerInqDefaultPrincNameW@8"    @0x0158
     356RpcServerInqIf              = "_RpcServerInqIf@12"              @0x0159
     357RpcServerListen             = "_RpcServerListen@12"             @0x015a
     358RpcServerRegisterAuthInfoA      = "_RpcServerRegisterAuthInfoA@16"      @0x015b
     359RpcServerRegisterAuthInfoW      = "_RpcServerRegisterAuthInfoW@16"      @0x015c
     360RpcServerRegisterIf         = "_RpcServerRegisterIf@12"         @0x015d
     361RpcServerRegisterIfEx           = "_RpcServerRegisterIfEx@24"       @0x015e
     362RpcServerUnregisterIf           = "_RpcServerUnregisterIf@12"       @0x015f
     363RpcServerUseAllProtseqs         = "_RpcServerUseAllProtseqs@8"          @0x0160
     364RpcServerUseAllProtseqsEx       = "_RpcServerUseAllProtseqsEx@12"       @0x0161
     365RpcServerUseAllProtseqsIf       = "_RpcServerUseAllProtseqsIf@12"       @0x0162
     366RpcServerUseAllProtseqsIfEx     = "_RpcServerUseAllProtseqsIfEx@16"     @0x0163
     367RpcServerUseProtseqA            = "_RpcServerUseProtseqA@12"        @0x0164
     368RpcServerUseProtseqEpA          = "_RpcServerUseProtseqEpA@16"          @0x0165
     369RpcServerUseProtseqEpExA        = "_RpcServerUseProtseqEpExA@20"        @0x0166
     370RpcServerUseProtseqEpExW        = "_RpcServerUseProtseqEpExW@20"        @0x0167
     371RpcServerUseProtseqEpW          = "_RpcServerUseProtseqEpW@16"          @0x0168
     372RpcServerUseProtseqExA          = "_RpcServerUseProtseqExA@16"          @0x0169
     373RpcServerUseProtseqExW          = "_RpcServerUseProtseqExW@16"          @0x016a
     374RpcServerUseProtseqIfA          = "_RpcServerUseProtseqIfA@16"          @0x016b
     375RpcServerUseProtseqIfExA        = "_RpcServerUseProtseqIfExA@20"        @0x016c
     376RpcServerUseProtseqIfExW        = "_RpcServerUseProtseqIfExW@20"        @0x016d
     377RpcServerUseProtseqIfW          = "_RpcServerUseProtseqIfW@16"          @0x016e
     378RpcServerUseProtseqW            = "_RpcServerUseProtseqW@12"        @0x016f
    383379; RpcSmAllocate             = _RpcSmAllocate@0              @0x0170
    384380; RpcSmClientFree           = _RpcSmClientFree@0                @0x0171
     
    394390; RpcSsDestroyClientContext     = _RpcSsDestroyClientContext@0          @0x017b
    395391; RpcSsDisableAllocate          = _RpcSsDisableAllocate@0           @0x017c
    396 RpcSsDontSerializeContext       = _RpcSsDontSerializeContext@0          @0x017d
     392RpcSsDontSerializeContext       = "_RpcSsDontSerializeContext@0"        @0x017d
    397393; RpcSsEnableAllocate           = _RpcSsEnableAllocate@0            @0x017e
    398394; RpcSsFree             = _RpcSsFree@0                  @0x017f
     
    401397; RpcSsSetThreadHandle          = _RpcSsSetThreadHandle@0           @0x0182
    402398; RpcSsSwapClientAllocFree      = _RpcSsSwapClientAllocFree@0           @0x0183
    403 RpcStringBindingComposeA        = _RpcStringBindingComposeA@24          @0x0184
    404 RpcStringBindingComposeW        = _RpcStringBindingComposeW@24          @0x0185
    405 RpcStringBindingParseA          = _RpcStringBindingParseA@24            @0x0186
    406 RpcStringBindingParseW          = _RpcStringBindingParseW@24            @0x0187
    407 RpcStringFreeA              = _RpcStringFreeA@4             @0x0188
    408 RpcStringFreeW              = _RpcStringFreeW@4             @0x0189
    409 RpcTestCancel               = _RpcTestCancel@0              @0x018a
     399RpcStringBindingComposeA        = "_RpcStringBindingComposeA@24"        @0x0184
     400RpcStringBindingComposeW        = "_RpcStringBindingComposeW@24"        @0x0185
     401RpcStringBindingParseA          = "_RpcStringBindingParseA@24"          @0x0186
     402RpcStringBindingParseW          = "_RpcStringBindingParseW@24"          @0x0187
     403RpcStringFreeA              = "_RpcStringFreeA@4"           @0x0188
     404RpcStringFreeW              = "_RpcStringFreeW@4"           @0x0189
     405RpcTestCancel               = "_RpcTestCancel@0"            @0x018a
    410406; TowerConstruct            = _TowerConstruct@0             @0x018b
    411407; TowerExplode              = _TowerExplode@0               @0x018c
    412 UuidCompare             = _UuidCompare@12               @0x018d
    413 UuidCreate              = _UuidCreate@4                 @0x018e
    414 UuidCreateNil               = _UuidCreateNil@4              @0x018f
    415 UuidEqual               = _UuidEqual@12                 @0x0190
    416 UuidFromStringA             = _UuidFromStringA@8                @0x0191
    417 UuidFromStringW             = _UuidFromStringW@8                @0x0192
    418 UuidHash                = _UuidHash@8                   @0x0193
    419 UuidIsNil               = _UuidIsNil@8                  @0x0194
    420 UuidToStringA               = _UuidToStringA@8              @0x0195
    421 UuidToStringW               = _UuidToStringW@8              @0x0196
     408UuidCompare             = "_UuidCompare@12"             @0x018d
     409UuidCreate              = "_UuidCreate@4"               @0x018e
     410UuidCreateNil               = "_UuidCreateNil@4"            @0x018f
     411UuidEqual               = "_UuidEqual@12"               @0x0190
     412UuidFromStringA             = "_UuidFromStringA@8"              @0x0191
     413UuidFromStringW             = "_UuidFromStringW@8"              @0x0192
     414UuidHash                = "_UuidHash@8"                 @0x0193
     415UuidIsNil               = "_UuidIsNil@8"                @0x0194
     416UuidToStringA               = "_UuidToStringA@8"            @0x0195
     417UuidToStringW               = "_UuidToStringW@8"            @0x0196
    422418; char_array_from_ndr           = _char_array_from_ndr@0            @0x0197
    423419; char_from_ndr             = _char_from_ndr@0              @0x0198
  • branches/gcc-kmk/src/rpcrt4/rpcrt4.h

    r21494 r21849  
    99
    1010#define CINTERFACE
    11 #define RPC_UNICODE_SUPPORTED   1
     11#define RPC_UNICODE_SUPPORTED
    1212
    1313#include <stdarg.h>
  • branches/gcc-kmk/src/rpcrt4/util.asm

    r3307 r21849  
    1515CODE32          SEGMENT DWORD PUBLIC USE32 'CODE'
    1616
    17 public  getEAX
    18 getEAX  proc    near
     17public  _getEAX
     18_getEAX proc    near
    1919        ret
    2020endp
    2121
    22 public  getEDX
    23 getEDX  proc    near
     22public  _getEDX
     23_getEDX proc    near
    2424        mov     EAX, EDX
    2525        ret
  • branches/gcc-kmk/src/rpcrt4/uuid.cpp

    r21720 r21849  
    3535
    3636
    37 #define TCPV40HDRS
    38 #include "rpcrt4.h"
    39 #include "uuidp.h"
    40 
    41 #include "io.h"
    42 #include "sys/timeb.h"
    43 
    4437#include <sys/socket.h>
    4538#include <sys/ioctl.h>
     
    5245#include <nerrno.h>
    5346#include <sys/time.h>
     47
     48#ifndef TCPV40HDRS
     49#define TCPV40HDRS
     50#endif
     51#include "rpcrt4.h"
     52#include "uuidp.h"
     53
     54#include "io.h"
     55#include "sys/timeb.h"
    5456
    5557ULONG WINAPI RtlExtendedIntegerMultiply(LARGE_INTEGER factor1, INT factor2);
Note: See TracChangeset for help on using the changeset viewer.