Changeset 21900 for branches/gcc-kmk/src


Ignore:
Timestamp:
Dec 15, 2011, 6:07:42 PM (14 years ago)
Author:
dmik
Message:

Port WING32, WININET, WINTRUST, WINASPI32, WNETAPI32 and WOW32 to GCC/kBuild.

Location:
branches/gcc-kmk/src
Files:
6 added
24 edited
2 moved

Legend:

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

    r21899 r21900  
    7575include $(PATH_SUB_CURRENT)/uxtheme/Makefile.kmk
    7676include $(PATH_SUB_CURRENT)/vdmdbg/Makefile.kmk
     77include $(PATH_SUB_CURRENT)/wing32/Makefile.kmk
     78include $(PATH_SUB_CURRENT)/wininet/Makefile.kmk
     79include $(PATH_SUB_CURRENT)/wintrust/Makefile.kmk
     80include $(PATH_SUB_CURRENT)/wnaspi32/Makefile.kmk
     81include $(PATH_SUB_CURRENT)/wnetap32/Makefile.kmk
     82include $(PATH_SUB_CURRENT)/wow32/Makefile.kmk
    7783
    7884include $(FILE_KBUILD_SUB_FOOTER)
  • branches/gcc-kmk/src/wing32/initterm.cpp

    r6640 r21900  
    11/* $Id: initterm.cpp,v 1.6 2001-09-05 10:32:33 bird Exp $
    22 *
    3  * DLL entry point
     3 * WING32 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 "wing32impl.h"
    3924
    40 extern "C" {
    41  //Win32 resource table (produced by wrc)
    42  extern DWORD _Resource_PEResTab;
    43 }
     25// Win32 resource table (produced by wrc)
     26extern DWORD wing32_PEResTab;
     27
    4428static HMODULE dllHandle = 0;
    4529
    46 //******************************************************************************
    47 //******************************************************************************
    4830BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    4931{
    50    switch (fdwReason)
    51    {
    52    case DLL_PROCESS_ATTACH:
     32    switch (fdwReason)
     33    {
     34    case DLL_PROCESS_ATTACH:
    5335        if(!InitWing32())
    5436            return FALSE;
    5537
    56     return TRUE;
     38        return TRUE;
    5739
    58    case DLL_THREAD_ATTACH:
    59    case DLL_THREAD_DETACH:
    60     return TRUE;
     40    case DLL_THREAD_ATTACH:
     41    case DLL_THREAD_DETACH:
     42        return TRUE;
    6143
    62    case DLL_PROCESS_DETACH:
    63     ctordtorTerm();
    64     return TRUE;
    65    }
    66    return FALSE;
     44    case DLL_PROCESS_DETACH:
     45#ifdef __IBMC__
     46        ctordtorTerm();
     47#endif
     48        return TRUE;
     49    }
     50    return FALSE;
    6751}
    68 /****************************************************************************/
    69 /* _DLL_InitTerm is the function that gets called by the operating system   */
    70 /* loader when it loads and frees this DLL for each process that accesses   */
    71 /* this DLL.  However, it only gets called the first time the DLL is loaded */
    72 /* and the last time it is freed for a particular process.  The system      */
    73 /* linkage convention MUST be used because the operating system loader is   */
    74 /* calling this function.                                                   */
    75 /****************************************************************************/
    76 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long
    77                                    ulFlag)
     52
     53ULONG SYSTEM DLL_InitWing32(ULONG hModule)
    7854{
    79    size_t i;
    80    APIRET rc;
     55    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    8156
    82    /*-------------------------------------------------------------------------*/
    83    /* If ulFlag is zero then the DLL is being loaded so initialization should */
    84    /* be performed.  If ulFlag is 1 then the DLL is being freed so            */
    85    /* termination should be performed.                                        */
    86    /*-------------------------------------------------------------------------*/
     57    dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&wing32_PEResTab);
     58    if (dllHandle == 0)
     59        return -1;
    8760
    88    switch (ulFlag)
    89    {
    90       case 0 :
    91       {
    92          ctordtorInit();
     61    return 0;
     62}
    9363
    94          CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     64void SYSTEM DLL_TermWing32(ULONG hModule)
     65{
     66    if (dllHandle)
     67       UnregisterLxDll(dllHandle);
     68}
    9569
    96      dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
    97          if(dllHandle == 0)
    98         return 0UL;
     70ULONG SYSTEM DLL_Init(ULONG hModule)
     71{
     72    if (DLL_InitDefault(hModule) == -1)
     73        return -1;
     74    return DLL_InitWing32(hModule);
     75}
    9976
    100          break;
    101       }
    102       case 1 :
    103          if(dllHandle) {
    104         UnregisterLxDll(dllHandle);
    105          }
    106          break;
    107       default  :
    108          return 0UL;
    109    }
    110 
    111    /***********************************************************/
    112    /* A non-zero value must be returned to indicate success.  */
    113    /***********************************************************/
    114    return 1UL;
     77void SYSTEM DLL_Term(ULONG hModule)
     78{
     79    DLL_TermWing32(hModule);
     80    DLL_TermDefault(hModule);
    11581}
  • branches/gcc-kmk/src/wing32/wing32.cpp

    r3925 r21900  
    444444#pragma pack(2)
    445445
    446 struct
     446static struct
    447447{
    448448    WORD           palVersion;
     
    458458DWORD dwCapsRaster;
    459459
    460 struct {
     460static struct {
    461461  BITMAPINFOHEADER bmiHeader;
    462462  RGBQUAD bmiColors[256];
  • branches/gcc-kmk/src/wing32/wing32.def

    r4809 r21900  
    44CODE LOADONCALL
    55EXPORTS
    6  WinGBitBlt                = _WinGBitBlt@32               @1
    7  WinGCreateBitmap          = _WinGCreateBitmap@12         @2
    8  WinGCreateDC              = _WinGCreateDC@0              @3
    9  WinGCreateHalftoneBrush   = _WinGCreateHalftoneBrush@12  @4
    10  WinGCreateHalftonePalette = _WinGCreateHalftonePalette@0 @5
    11  WinGGetDIBColorTable      = _WinGGetDIBColorTable@16     @6
    12  WinGGetDIBPointer         = _WinGGetDIBPointer@8         @7
    13  WinGRecommendDIBFormat    = _WinGRecommendDIBFormat@4    @8
    14  WinGSetDIBColorTable      = _WinGSetDIBColorTable@16     @9
    15  WinGStretchBlt            = _WinGStretchBlt@40          @10
     6 WinGBitBlt                = "_WinGBitBlt@32"             @1
     7 WinGCreateBitmap          = "_WinGCreateBitmap@12"       @2
     8 WinGCreateDC              = "_WinGCreateDC@0"            @3
     9 WinGCreateHalftoneBrush   = "_WinGCreateHalftoneBrush@12"  @4
     10 WinGCreateHalftonePalette = "_WinGCreateHalftonePalette@0" @5
     11 WinGGetDIBColorTable      = "_WinGGetDIBColorTable@16"   @6
     12 WinGGetDIBPointer         = "_WinGGetDIBPointer@8"       @7
     13 WinGRecommendDIBFormat    = "_WinGRecommendDIBFormat@4"  @8
     14 WinGSetDIBColorTable      = "_WinGSetDIBColorTable@16"   @9
     15 WinGStretchBlt            = "_WinGStretchBlt@40"        @10
    1616
  • branches/gcc-kmk/src/wininet/initterm.cpp

    r21842 r21900  
    1 /* $Id: initwininet.cpp,v 1.2 2003-10-24 13:10:03 sandervl Exp $
     1/* $Id: initterm.cpp,v 1.8 2003-10-24 13:10:03 sandervl Exp $
    22 *
    3  * DLL entry point
     3 * WININET 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
     
    3722#include <initdll.h>
    3823
     24// Win32 resource table (produced by wrc)
     25extern DWORD wininet_PEResTab;
    3926
    40 extern "C" {
    41  //Win32 resource table (produced by wrc)
    42  extern DWORD wininet_PEResTab;
    43 }
    4427static HMODULE dllHandle = 0;
    4528
    4629BOOL WINAPI WININET_LibMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
    4730
    48 //******************************************************************************
    49 //******************************************************************************
    5031BOOL WINAPI WininetLibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    5132{
    52  BOOL ret;
     33    BOOL ret;
    5334
    54    switch (fdwReason)
    55    {
    56    case DLL_PROCESS_ATTACH:
    57    case DLL_THREAD_ATTACH:
    58    case DLL_THREAD_DETACH:
    59     return WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
     35    switch (fdwReason)
     36    {
     37    case DLL_PROCESS_ATTACH:
     38    case DLL_THREAD_ATTACH:
     39    case DLL_THREAD_DETACH:
     40        return WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
    6041
    61    case DLL_PROCESS_DETACH:
    62     ret = WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
    63     return ret;
    64    }
    65    return FALSE;
     42    case DLL_PROCESS_DETACH:
     43        ret = WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
     44        return ret;
     45    }
     46    return FALSE;
    6647}
    6748
     49ULONG SYSTEM DLL_InitWinInet(ULONG hModule)
     50{
     51    CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    6852
    69 /****************************************************************************/
    70 /* _DLL_InitTerm is the function that gets called by the operating system   */
    71 /* loader when it loads and frees this DLL for each process that accesses   */
    72 /* this DLL.  However, it only gets called the first time the DLL is loaded */
    73 /* and the last time it is freed for a particular process.  The system      */
    74 /* linkage convention MUST be used because the operating system loader is   */
    75 /* calling this function.                                                   */
    76 /****************************************************************************/
    77 ULONG APIENTRY inittermWininet(ULONG hModule, ULONG ulFlag)
     53    dllHandle = RegisterLxDll(hModule, WininetLibMain, (PVOID)&wininet_PEResTab);
     54    if (dllHandle == 0)
     55        return -1;
     56
     57    return 0;
     58}
     59
     60void SYSTEM DLL_TermWinInet(ULONG hModule)
    7861{
    79    size_t i;
    80    APIRET rc;
     62    if (dllHandle)
     63       UnregisterLxDll(dllHandle);
     64}
    8165
    82    /*-------------------------------------------------------------------------*/
    83    /* If ulFlag is zero then the DLL is being loaded so initialization should */
    84    /* be performed.  If ulFlag is 1 then the DLL is being freed so            */
    85    /* termination should be performed.                                        */
    86    /*-------------------------------------------------------------------------*/
     66ULONG SYSTEM DLL_Init(ULONG hModule)
     67{
     68    if (DLL_InitDefault(hModule) == -1)
     69        return -1;
     70    return DLL_InitWinInet(hModule);
     71}
    8772
    88    switch (ulFlag) {
    89       case 0 :
    90          CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    91 
    92          /*******************************************************************/
    93          /* A DosExitList routine must be used to clean up if runtime calls */
    94          /* are required and the runtime is dynamically linked.             */
    95          /*******************************************************************/
    96 
    97          dllHandle = RegisterLxDll(hModule, WininetLibMain, (PVOID)&wininet_PEResTab);
    98          if(dllHandle == 0)
    99              return 0UL;
    100 
    101          break;
    102       case 1 :
    103          if(dllHandle) {
    104              UnregisterLxDll(dllHandle);
    105          }
    106          break;
    107 
    108       default  :
    109          return 0UL;
    110    }
    111 
    112    /***********************************************************/
    113    /* A non-zero value must be returned to indicate success.  */
    114    /***********************************************************/
    115    return 1UL;
     73void SYSTEM DLL_Term(ULONG hModule)
     74{
     75    DLL_TermWinInet(hModule);
     76    DLL_TermDefault(hModule);
    11677}
    117 //******************************************************************************
    118 //******************************************************************************
  • branches/gcc-kmk/src/wininet/internet.c

    r9439 r21900  
    2525#include <win/windef.h>
    2626#define strncasecmp strnicmp
    27 #define TLS_OUT_OF_INDEXES -1
    2827#define MAXHOSTNAME 100
    2928#else
  • branches/gcc-kmk/src/wininet/wininet.cpp

    r21720 r21900  
    1515BOOL WINAPI InternetTimeFromSystemTime(CONST SYSTEMTIME *pst, DWORD dwRFC,
    1616                                       LPSTR lpszTime, DWORD cbTime)
    17 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     17{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    1818        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    1919        return 0;
     
    2323BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
    2424                              LPURL_COMPONENTSW lpUrlComponents)
    25 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     25{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    2626        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    2727        return 0;
     
    3131BOOL WINAPI InternetCreateUrlA(LPURL_COMPONENTSA lpUrlComponents, DWORD dwFlags,
    3232                               LPSTR lpszUrl, LPDWORD lpdwUrlLength)
    33 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     33{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    3434        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    3535        return 0;
     
    3939BOOL WINAPI InternetCreateUrlW(LPURL_COMPONENTSW lpUrlComponents, DWORD dwFlags,
    4040                               LPWSTR lpszUrl, LPDWORD lpdwUrlLength)
    41 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     41{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    4242        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    4343        return 0;
     
    4747BOOL WINAPI InternetCanonicalizeUrlW(LPCWSTR lpszUrl, LPWSTR lpszBuffer,
    4848                                     LPDWORD lpdwBufferLength, DWORD dwFlags)
    49 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     49{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    5050        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    5151        return 0;
     
    5656                                LPSTR lpszBuffer, LPDWORD lpdwBufferLength,
    5757                                DWORD dwFlags)
    58 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     58{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    5959        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    6060        return 0;
     
    6565                                LPWSTR lpszBuffer, LPDWORD lpdwBufferLength,
    6666                                DWORD dwFlags)
    67 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     67{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    6868        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    6969        return 0;
     
    7474                               LPCWSTR lpszProxy, LPCWSTR lpszProxyBypass,
    7575                               DWORD dwFlags)
    76 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     76{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    7777        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    7878        return 0;
     
    8484                                  LPCWSTR lpszPassword, DWORD dwService,
    8585                                  DWORD dwFlags, DWORD dwContext)
    86 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     86{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    8787        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    8888        return 0;
     
    9393                                    PVOID pReserved, DWORD dwMoveMethod,
    9494                                    DWORD dwContext)
    95 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     95{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    9696        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    9797        return 0;
     
    100100//******************************************************************************
    101101BOOL WINAPI InternetFindNextFileW(HINTERNET hFind, LPVOID lpvFindData)
    102 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     102{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    103103        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    104104        return 0;
     
    108108BOOL WINAPI InternetQueryOptionW(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer,
    109109                                 LPDWORD lpdwBufferLength)
    110 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     110{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    111111        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    112112        return 0;
     
    116116BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer,
    117117                               DWORD dwBufferLength)
    118 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     118{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    119119        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    120120        return 0;
     
    124124BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer,
    125125                               DWORD dwBufferLength)
    126 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     126{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    127127        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    128128        return 0;
     
    132132BOOL WINAPI InternetSetOptionExA(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer,
    133133                                 DWORD dwBufferLength, DWORD dwFlags)
    134 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     134{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    135135        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    136136        return 0;
     
    140140BOOL WINAPI InternetSetOptionExW(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer,
    141141                                 DWORD dwBufferLength, DWORD dwFlags)
    142 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     142{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    143143        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    144144        return 0;
     
    148148BOOL WINAPI InternetGetLastResponseInfoW(LPDWORD lpdwError, LPWSTR lpszBuffer,
    149149                                         LPDWORD lpdwBufferLength)
    150 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     150{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    151151        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    152152        return 0;
     
    157157                                   LPWIN32_FIND_DATAW lpFindFileData,
    158158                                   DWORD dwFlags, DWORD dwContext)
    159 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     159{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    160160        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    161161        return 0;
     
    167167                        DWORD dwFlagsAndAttributes, DWORD dwFlags,
    168168                        DWORD dwContext)
    169 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     169{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    170170        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    171171        return 0;
     
    175175BOOL WINAPI FtpPutFileW(HINTERNET hConnect, LPCWSTR lpszLocalFile, LPCWSTR lpszNewRemoteFile,
    176176                        DWORD dwFlags, DWORD dwContext)
    177 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     177{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    178178        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    179179        return 0;
     
    182182//******************************************************************************
    183183BOOL WINAPI FtpDeleteFileW(HINTERNET hConnect, LPCWSTR lpszFileName)
    184 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     184{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    185185        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    186186        return 0;
     
    189189//******************************************************************************
    190190BOOL WINAPI FtpRenameFileW(HINTERNET hConnect, LPCWSTR lpszExisting,LPCWSTR lpszNew)
    191 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     191{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    192192        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    193193        return 0;
     
    197197HINTERNET WINAPI FtpOpenFileW(HINTERNET hConnect, LPCWSTR lpszFileName,
    198198                              DWORD dwAccess, DWORD dwFlags, DWORD dwContext)
    199 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     199{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    200200        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    201201        return 0;
     
    204204//******************************************************************************
    205205BOOL WINAPI FtpCreateDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
    206 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     206{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    207207        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    208208        return 0;
     
    211211//******************************************************************************
    212212BOOL WINAPI FtpRemoveDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
    213 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     213{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    214214        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    215215        return 0;
     
    218218//******************************************************************************
    219219BOOL WINAPI FtpSetCurrentDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
    220 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     220{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    221221        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    222222        return 0;
     
    226226BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hConnect, LPWSTR lpszCurrentDirectory,
    227227                                    LPDWORD lpdwCurrentDirectory)
    228 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     228{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    229229        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    230230        return 0;
     
    234234BOOL WINAPI FtpCommandA(HINTERNET hConnect, BOOL fExpectResponse, DWORD dwFlags,
    235235                        LPCSTR lpszCommand, DWORD dwContext)
    236 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     236{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    237237        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    238238        return 0;
     
    242242BOOL WINAPI FtpCommandW(HINTERNET hConnect, BOOL fExpectResponse, DWORD dwFlags,
    243243                        LPCWSTR lpszCommand, DWORD dwContext)
    244 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     244{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    245245        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    246246        return 0;
     
    252252                                 DWORD dwGopherType, LPSTR lpszLocator,
    253253                                 LPDWORD lpdwBufferLength)
    254 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     254{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    255255        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    256256        return 0;
     
    262262                                 DWORD dwGopherType, LPWSTR lpszLocator,
    263263                                 LPDWORD lpdwBufferLength)
    264 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     264{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    265265        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    266266        return 0;
     
    269269//******************************************************************************
    270270BOOL WINAPI GopherGetLocatorTypeA(LPCSTR lpszLocator, LPDWORD lpdwGopherType)
    271 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     271{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    272272        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    273273        return 0;
     
    276276//******************************************************************************
    277277BOOL WINAPI GopherGetLocatorTypeW(LPCWSTR lpszLocator, LPDWORD lpdwGopherType)
    278 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     278{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    279279        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    280280        return 0;
     
    285285                                      LPCSTR lpszSearchString, LPGOPHER_FIND_DATAA lpFindData,
    286286                                      DWORD dwFlags, DWORD dwContext)
    287 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     287{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    288288        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    289289        return 0;
     
    294294                                      LPCWSTR lpszSearchString, LPGOPHER_FIND_DATAA lpFindData,
    295295                                      DWORD dwFlags, DWORD dwContext)
    296 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     296{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    297297        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    298298        return 0;
     
    302302HINTERNET WINAPI GopherOpenFileA(HINTERNET hConnect, LPCSTR lpszLocator,
    303303                                 LPCSTR lpszView, DWORD dwFlags, DWORD dwContext)
    304 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     304{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    305305        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    306306        return 0;
     
    310310HINTERNET WINAPI GopherOpenFileW(HINTERNET hConnect, LPCWSTR lpszLocator,
    311311                                 LPCWSTR lpszView, DWORD dwFlags, DWORD dwContext)
    312 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     312{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    313313        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    314314        return 0;
     
    321321                                GOPHER_ATTRIBUTE_ENUMERATOR lpfnEnumerator,
    322322                                DWORD dwContext)
    323 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     323{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    324324        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    325325        return 0;
     
    332332                                GOPHER_ATTRIBUTE_ENUMERATOR lpfnEnumerator,
    333333                                DWORD dwContext)
    334 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     334{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    335335        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    336336        return 0;
     
    342342                                  LPCWSTR lpszReferrer, LPCWSTR * lplpszAcceptTypes,
    343343                                  DWORD dwFlags, DWORD dwContext)
    344 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     344{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    345345        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    346346        return 0;
     
    350350BOOL WINAPI HttpAddRequestHeadersW(HINTERNET hRequest, LPCWSTR lpszHeaders,
    351351                                   DWORD dwHeadersLength, DWORD dwModifiers)
    352 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     352{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    353353        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    354354        return 0;
     
    359359                             DWORD dwHeadersLength, LPVOID lpOptional,
    360360                             DWORD dwOptionalLength)
    361 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     361{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    362362        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    363363        return 0;
     
    367367BOOL WINAPI HttpQueryInfoW(HINTERNET hRequest, DWORD dwInfoLevel, LPVOID lpBuffer,
    368368                           LPDWORD lpdwBufferLength, LPDWORD lpdwIndex)
    369 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     369{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    370370        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    371371        return 0;
     
    374374//******************************************************************************
    375375BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName, LPCSTR lpszCookieData)
    376 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     376{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    377377        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    378378        return 0;
     
    381381//******************************************************************************
    382382BOOL WINAPI InternetSetCookieW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData)
    383 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     383{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    384384        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    385385        return 0;
     
    389389BOOL WINAPI InternetGetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName, LPSTR lpCookieData,
    390390                               LPDWORD lpdwSize)
    391 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     391{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    392392        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    393393        return 0;
     
    397397BOOL WINAPI InternetGetCookieW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName, LPWSTR lpCookieData,
    398398                               LPDWORD lpdwSize)
    399 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     399{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    400400        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    401401        return 0;
     
    405405DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest,
    406406                              DWORD dwError, DWORD dwFlags, LPVOID * lppvData)
    407 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     407{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    408408        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    409409        return 0;
     
    412412//* ******************************************************************************/
    413413DWORD WINAPI InternetCheckConnectionW(LPCWSTR lpszUrl, DWORD dwFlags, DWORD dwReserved)
    414 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     414{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    415415        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    416416        return 0;
     
    420420DWORD WINAPI InternetConfirmZoneCrossing(HWND hWnd, LPSTR szUrlPrev,
    421421                                         LPSTR szUrlNew, BOOL bPost)
    422 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     422{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    423423        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    424424        return 0;
     
    429429                                 LPCSTR lpszFileExtension, LPSTR lpszFileName,
    430430                                 DWORD dwReserved)
    431 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     431{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    432432        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    433433        return 0;
     
    438438                                 LPCWSTR lpszFileExtension, LPWSTR lpszFileName,
    439439                                 DWORD dwReserved)
    440 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     440{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    441441        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    442442        return 0;
     
    449449                                 DWORD dwHeaderSize, LPCTSTR lpszFileExtension,
    450450                                 DWORD dwReserved)
    451 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     451{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    452452        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    453453        return 0;
     
    460460                                 DWORD dwHeaderSize, LPCTSTR lpszFileExtension,
    461461                                 DWORD dwReserved)
    462 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     462{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    463463        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    464464        return 0;
     
    469469                                       LPDWORD lpdwCacheEntryInfoBufferSize,
    470470                                       DWORD dwReserved)
    471 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     471{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    472472        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    473473        return 0;
     
    478478                                       LPDWORD lpdwCacheEntryInfoBufferSize,
    479479                                       DWORD dwReserved)
    480 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     480{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    481481        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    482482        return 0;
     
    485485//******************************************************************************
    486486BOOL WINAPI UnlockUrlCacheEntryFile(LPCSTR lpszUrlName, DWORD dwReserved)
    487 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     487{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    488488        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    489489        return 0;
     
    494494                                           LPDWORD lpdwCacheEntryInfoBufferSize,
    495495                                           BOOL fRandomRead, DWORD dwReserved)
    496 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     496{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    497497        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    498498        return 0;
     
    503503                                           LPDWORD lpdwCacheEntryInfoBufferSize,
    504504                                           BOOL fRandomRead, DWORD dwReserved)
    505 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     505{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    506506        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    507507        return 0;
     
    512512                                    LPVOID lpBuffer, LPDWORD lpdwLen,
    513513                                    DWORD Reserved)
    514 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     514{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    515515        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    516516        return 0;
     
    519519//******************************************************************************
    520520BOOL WINAPI UnlockUrlCacheEntryStream(HANDLE hUrlCacheStream, DWORD Reserved)
    521 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     521{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    522522        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    523523        return 0;
     
    527527BOOL WINAPI GetUrlCacheEntryInfoA(LPCSTR lpszUrlName, LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
    528528                                  LPDWORD lpdwCacheEntryInfoBufferSize)
    529 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     529{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    530530        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    531531        return 0;
     
    535535BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrlName, LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
    536536                                  LPDWORD lpdwCacheEntryInfoBufferSize)
    537 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     537{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    538538        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    539539        return 0;
     
    543543BOOL WINAPI SetUrlCacheEntryInfoA(LPCSTR lpszUrlName, LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
    544544                                  DWORD dwFieldControl)
    545 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     545{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    546546        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    547547        return 0;
     
    551551BOOL WINAPI SetUrlCacheEntryInfoW(LPCWSTR lpszUrlName, LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
    552552                                  DWORD dwFieldControl)
    553 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     553{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    554554        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    555555        return 0;
     
    560560                                      LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo,
    561561                                      LPDWORD lpdwFirstCacheEntryInfoBufferSize)
    562 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     562{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    563563        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    564564        return 0;
     
    569569                                      LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo,
    570570                                      LPDWORD lpdwFirstCacheEntryInfoBufferSize)
    571 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     571{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    572572        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    573573        return 0;
     
    578578                                   LPINTERNET_CACHE_ENTRY_INFOA lpNextCacheEntryInfo,
    579579                                   LPDWORD lpdwNextCacheEntryInfoBufferSize)
    580 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     580{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    581581        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    582582        return 0;
     
    587587                                   LPINTERNET_CACHE_ENTRY_INFOW lpNextCacheEntryInfo,
    588588                                   LPDWORD lpdwNextCacheEntryInfoBufferSize)
    589 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     589{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    590590        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    591591        return 0;
     
    594594//******************************************************************************
    595595BOOL WINAPI FindCloseUrlCache(HANDLE hEnumHandle)
    596 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
     596{dprintf(("ERROR:%s not implemented", __FUNCTION__));
    597597        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    598598        return 0;
     
    601601//******************************************************************************
    602602BOOL WINAPI DeleteUrlCacheEntry(LPCSTR lpszUrlName)
    603 {dprintf(("ERROR:"__FUNCTION__" not implemented"));
    604         SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    605         return 0;
    606 }
    607 //******************************************************************************
    608 //******************************************************************************
     603{dprintf(("ERROR:%s not implemented", __FUNCTION__));
     604        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     605        return 0;
     606}
     607//******************************************************************************
     608//******************************************************************************
  • branches/gcc-kmk/src/wininet/wininet.def

    r8607 r21900  
    1212;  InternetInitializeAutoProxyDll    = _InternetInitializeAutoProxyDll@          @1
    1313;  ShowCertificate                   = _ShowCertificate@                         @2
    14   CommitUrlCacheEntryA              = _CommitUrlCacheEntryA@44                    @3
    15   CommitUrlCacheEntryW              = _CommitUrlCacheEntryW@44                    @4
     14  CommitUrlCacheEntryA              = "_CommitUrlCacheEntryA@44"                  @3
     15  CommitUrlCacheEntryW              = "_CommitUrlCacheEntryW@44"                  @4
    1616;  CreateUrlCacheContainerA          = _CreateUrlCacheContainerA@                @5
    1717;  CreateUrlCacheContainerW          = _CreateUrlCacheContainerW@                @6
    18   CreateUrlCacheEntryA              = _CreateUrlCacheEntryA@20                    @7
    19   CreateUrlCacheEntryW              = _CreateUrlCacheEntryW@20                    @8
     18  CreateUrlCacheEntryA              = "_CreateUrlCacheEntryA@20"                  @7
     19  CreateUrlCacheEntryW              = "_CreateUrlCacheEntryW@20"                  @8
    2020;  CreateUrlCacheGroup               = _CreateUrlCacheGroup@                     @9
    2121;  DeleteIE3Cache                    = _DeleteIE3Cache@                          @10
    2222;  DeleteUrlCacheContainerA          = _DeleteUrlCacheContainerA@                    @11
    2323;  DeleteUrlCacheContainerW          = _DeleteUrlCacheContainerW@                    @12
    24   DeleteUrlCacheEntry               = _DeleteUrlCacheEntry@4                 @13
     24  DeleteUrlCacheEntry               = "_DeleteUrlCacheEntry@4"               @13
    2525;  DeleteUrlCacheGroup               = _DeleteUrlCacheGroup@                 @14
    26   DllInstall                       = _WININET_DllInstall@8                   @15
    27   FindCloseUrlCache                 = _FindCloseUrlCache@4                   @16
     26  DllInstall                       = "_WININET_DllInstall@8"                 @15
     27  FindCloseUrlCache                 = "_FindCloseUrlCache@4"                 @16
    2828;  FindFirstUrlCacheContainerA       = _FindFirstUrlCacheContainerA@                 @17
    2929;  FindFirstUrlCacheContainerW       = _FindFirstUrlCacheContainerW@                 @18
    30   FindFirstUrlCacheEntryA           = _FindFirstUrlCacheEntryA@12                 @19
     30  FindFirstUrlCacheEntryA           = "_FindFirstUrlCacheEntryA@12"               @19
    3131;  FindFirstUrlCacheEntryExA         = _FindFirstUrlCacheEntryExA@                   @20
    3232;  FindFirstUrlCacheEntryExW         = _FindFirstUrlCacheEntryExW@                   @21
    33   FindFirstUrlCacheEntryW           = _FindFirstUrlCacheEntryW@12                 @22
     33  FindFirstUrlCacheEntryW           = "_FindFirstUrlCacheEntryW@12"               @22
    3434;  FindNextUrlCacheContainerA        = _FindNextUrlCacheContainerA@                  @23
    3535;  FindNextUrlCacheContainerW        = _FindNextUrlCacheContainerW@                  @24
    36   FindNextUrlCacheEntryA            = _FindNextUrlCacheEntryA@12                  @25
     36  FindNextUrlCacheEntryA            = "_FindNextUrlCacheEntryA@12"                @25
    3737;  FindNextUrlCacheEntryExA          = _FindNextUrlCacheEntryExA@                    @26
    3838;  FindNextUrlCacheEntryExW          = _FindNextUrlCacheEntryExW@                    @27
    39   FindNextUrlCacheEntryW            = _FindNextUrlCacheEntryW@12                  @28
     39  FindNextUrlCacheEntryW            = "_FindNextUrlCacheEntryW@12"                @28
    4040;  FreeUrlCacheSpaceA                = _FreeUrlCacheSpaceA@                  @29
    4141;  FreeUrlCacheSpaceW                = _FreeUrlCacheSpaceW@                  @30
    42   FtpCreateDirectoryA               = _FtpCreateDirectoryA@8                 @31
    43   FtpCreateDirectoryW               = _FtpCreateDirectoryW@8                 @32
    44   FtpDeleteFileA                    = _FtpDeleteFileA@8                  @33
    45   FtpDeleteFileW                    = _FtpDeleteFileW@8                  @34
    46   FtpFindFirstFileA                 = _FtpFindFirstFileA@20                   @35
    47   FtpFindFirstFileW                 = _FtpFindFirstFileW@20                   @36
    48   FtpGetCurrentDirectoryA           = _FtpGetCurrentDirectoryA@12                 @37
    49   FtpGetCurrentDirectoryW           = _FtpGetCurrentDirectoryW@12                 @38
    50   FtpGetFileA                       = _FtpGetFileA@28                 @39
    51   FtpGetFileW                       = _FtpGetFileW@28                 @40
    52   FtpOpenFileA                      = _FtpOpenFileA@20                    @41
    53   FtpOpenFileW                      = _FtpOpenFileW@20                    @42
    54   FtpPutFileA                       = _FtpPutFileA@20                 @43
    55   FtpPutFileW                       = _FtpPutFileW@20                 @44
    56   FtpRemoveDirectoryA               = _FtpRemoveDirectoryA@8                 @45
    57   FtpRemoveDirectoryW               = _FtpRemoveDirectoryW@8                 @46
    58   FtpRenameFileA                    = _FtpRenameFileA@12                  @47
    59   FtpRenameFileW                    = _FtpRenameFileW@12                  @48
    60   FtpSetCurrentDirectoryA           = _FtpSetCurrentDirectoryA@8                 @49
    61   FtpSetCurrentDirectoryW           = _FtpSetCurrentDirectoryW@8                 @50
     42  FtpCreateDirectoryA               = "_FtpCreateDirectoryA@8"               @31
     43  FtpCreateDirectoryW               = "_FtpCreateDirectoryW@8"               @32
     44  FtpDeleteFileA                    = "_FtpDeleteFileA@8"                @33
     45  FtpDeleteFileW                    = "_FtpDeleteFileW@8"                @34
     46  FtpFindFirstFileA                 = "_FtpFindFirstFileA@20"                 @35
     47  FtpFindFirstFileW                 = "_FtpFindFirstFileW@20"                 @36
     48  FtpGetCurrentDirectoryA           = "_FtpGetCurrentDirectoryA@12"               @37
     49  FtpGetCurrentDirectoryW           = "_FtpGetCurrentDirectoryW@12"               @38
     50  FtpGetFileA                       = "_FtpGetFileA@28"               @39
     51  FtpGetFileW                       = "_FtpGetFileW@28"               @40
     52  FtpOpenFileA                      = "_FtpOpenFileA@20"                  @41
     53  FtpOpenFileW                      = "_FtpOpenFileW@20"                  @42
     54  FtpPutFileA                       = "_FtpPutFileA@20"               @43
     55  FtpPutFileW                       = "_FtpPutFileW@20"               @44
     56  FtpRemoveDirectoryA               = "_FtpRemoveDirectoryA@8"               @45
     57  FtpRemoveDirectoryW               = "_FtpRemoveDirectoryW@8"               @46
     58  FtpRenameFileA                    = "_FtpRenameFileA@12"                @47
     59  FtpRenameFileW                    = "_FtpRenameFileW@12"                @48
     60  FtpSetCurrentDirectoryA           = "_FtpSetCurrentDirectoryA@8"               @49
     61  FtpSetCurrentDirectoryW           = "_FtpSetCurrentDirectoryW@8"               @50
    6262;  GetUrlCacheConfigInfoA            = _GetUrlCacheConfigInfoA@                  @51
    6363;  GetUrlCacheConfigInfoW            = _GetUrlCacheConfigInfoW@                  @52
    64   GetUrlCacheEntryInfoA             = _GetUrlCacheEntryInfoA@12                   @53
     64  GetUrlCacheEntryInfoA             = "_GetUrlCacheEntryInfoA@12"                 @53
    6565;  GetUrlCacheEntryInfoExA           = _GetUrlCacheEntryInfoExA@                 @54
    6666;  GetUrlCacheEntryInfoExW           = _GetUrlCacheEntryInfoExW@                 @55
    67   GetUrlCacheEntryInfoW             = _GetUrlCacheEntryInfoW@12                   @56
     67  GetUrlCacheEntryInfoW             = "_GetUrlCacheEntryInfoW@12"                 @56
    6868;  GetUrlCacheHeaderData             = _GetUrlCacheHeaderData@                   @57
    69   GopherCreateLocatorA              = _GopherCreateLocatorA@28                    @58
    70   GopherCreateLocatorW              = _GopherCreateLocatorW@28                    @59
    71   GopherFindFirstFileA              = _GopherFindFirstFileA@24                    @60
    72   GopherFindFirstFileW              = _GopherFindFirstFileW@24                    @61
    73   GopherGetAttributeA               = _GopherGetAttributeA@32                 @62
    74   GopherGetAttributeW               = _GopherGetAttributeW@32                 @63
    75   GopherGetLocatorTypeA             = _GopherGetLocatorTypeA@8                   @64
    76   GopherGetLocatorTypeW             = _GopherGetLocatorTypeW@8                   @65
    77   GopherOpenFileA                   = _GopherOpenFileA@20                 @66
    78   GopherOpenFileW                   = _GopherOpenFileW@20                 @67
    79   HttpAddRequestHeadersA            = _HttpAddRequestHeadersA@16                @68
    80   HttpAddRequestHeadersW            = _HttpAddRequestHeadersW@16                @69
     69  GopherCreateLocatorA              = "_GopherCreateLocatorA@28"                  @58
     70  GopherCreateLocatorW              = "_GopherCreateLocatorW@28"                  @59
     71  GopherFindFirstFileA              = "_GopherFindFirstFileA@24"                  @60
     72  GopherFindFirstFileW              = "_GopherFindFirstFileW@24"                  @61
     73  GopherGetAttributeA               = "_GopherGetAttributeA@32"               @62
     74  GopherGetAttributeW               = "_GopherGetAttributeW@32"               @63
     75  GopherGetLocatorTypeA             = "_GopherGetLocatorTypeA@8"                 @64
     76  GopherGetLocatorTypeW             = "_GopherGetLocatorTypeW@8"                 @65
     77  GopherOpenFileA                   = "_GopherOpenFileA@20"               @66
     78  GopherOpenFileW                   = "_GopherOpenFileW@20"               @67
     79  HttpAddRequestHeadersA            = "_HttpAddRequestHeadersA@16"              @68
     80  HttpAddRequestHeadersW            = "_HttpAddRequestHeadersW@16"              @69
    8181;  HttpEndRequestA                   = _HttpEndRequestA@                 @70
    8282;  HttpEndRequestW                   = _HttpEndRequestW@                 @71
    83   HttpOpenRequestA                  = _HttpOpenRequestA@32                    @72
    84   HttpOpenRequestW                  = _HttpOpenRequestW@32                    @73
    85   HttpQueryInfoA                    = _HttpQueryInfoA@20                  @74
    86   HttpQueryInfoW                    = _HttpQueryInfoW@20                  @75
    87   HttpSendRequestA                  = _HttpSendRequestA@20                @76
    88   HttpSendRequestExA                = _HttpSendRequestExA@20              @77
     83  HttpOpenRequestA                  = "_HttpOpenRequestA@32"                  @72
     84  HttpOpenRequestW                  = "_HttpOpenRequestW@32"                  @73
     85  HttpQueryInfoA                    = "_HttpQueryInfoA@20"                @74
     86  HttpQueryInfoW                    = "_HttpQueryInfoW@20"                @75
     87  HttpSendRequestA                  = "_HttpSendRequestA@20"              @76
     88  HttpSendRequestExA                = "_HttpSendRequestExA@20"            @77
    8989;  HttpSendRequestExW                = _HttpSendRequestExW@                @78
    90   HttpSendRequestW                  = _HttpSendRequestW@20                @79
     90  HttpSendRequestW                  = "_HttpSendRequestW@20"              @79
    9191;  IncrementUrlCacheHeaderData       = _IncrementUrlCacheHeaderData@              @80
    92   InternetAttemptConnect            = _InternetAttemptConnect@4                  @81
     92  InternetAttemptConnect            = "_InternetAttemptConnect@4"                @81
    9393;  InternetAutodial                  = _InternetAutodial@                         @82
    9494;  InternetAutodialCallback          = _InternetAutodialCallback@                 @83
    9595;  InternetAutodialHangup            = _InternetAutodialHangup@                   @84
    96   InternetCanonicalizeUrlA          = _InternetCanonicalizeUrlA@16               @85
    97   InternetCanonicalizeUrlW          = _InternetCanonicalizeUrlW@16               @86
    98   InternetCheckConnectionA          = _InternetCheckConnectionA@12               @87
     96  InternetCanonicalizeUrlA          = "_InternetCanonicalizeUrlA@16"             @85
     97  InternetCanonicalizeUrlW          = "_InternetCanonicalizeUrlW@16"             @86
     98  InternetCheckConnectionA          = "_InternetCheckConnectionA@12"             @87
    9999;  InternetCheckConnectionW          = _InternetCheckConnectionW@                 @88
    100   InternetCloseHandle               = _InternetCloseHandle@4                     @89
    101   InternetCombineUrlA               = _InternetCombineUrlA@20                    @90
    102   InternetCombineUrlW               = _InternetCombineUrlW@20                    @91
    103   InternetConfirmZoneCrossing       = _InternetConfirmZoneCrossing@16            @92
    104   InternetConnectA                  = _InternetConnectA@32                       @93
    105   InternetConnectW                  = _InternetConnectW@32                       @94
    106   InternetCrackUrlA                 = _InternetCrackUrlA@16                      @95
    107   InternetCrackUrlW                 = _InternetCrackUrlW@16                      @96
    108   InternetCreateUrlA                = _InternetCreateUrlA@16                     @97
    109   InternetCreateUrlW                = _InternetCreateUrlW@16                     @98
     100  InternetCloseHandle               = "_InternetCloseHandle@4"                   @89
     101  InternetCombineUrlA               = "_InternetCombineUrlA@20"                  @90
     102  InternetCombineUrlW               = "_InternetCombineUrlW@20"                  @91
     103  InternetConfirmZoneCrossing       = "_InternetConfirmZoneCrossing@16"          @92
     104  InternetConnectA                  = "_InternetConnectA@32"                     @93
     105  InternetConnectW                  = "_InternetConnectW@32"                     @94
     106  InternetCrackUrlA                 = "_InternetCrackUrlA@16"                    @95
     107  InternetCrackUrlW                 = "_InternetCrackUrlW@16"                    @96
     108  InternetCreateUrlA                = "_InternetCreateUrlA@16"                   @97
     109  InternetCreateUrlW                = "_InternetCreateUrlW@16"                   @98
    110110;  InternetDebugGetLocalTime         = _InternetDebugGetLocalTime@                @99
    111111;  InternetDial                      = _InternetDial@                             @100
    112   InternetErrorDlg                  = _InternetErrorDlg@20                       @101
    113   InternetFindNextFileA             = _InternetFindNextFileA@8                   @102
    114   InternetFindNextFileW             = _InternetFindNextFileW@8                   @103
     112  InternetErrorDlg                  = "_InternetErrorDlg@20"                     @101
     113  InternetFindNextFileA             = "_InternetFindNextFileA@8"                 @102
     114  InternetFindNextFileW             = "_InternetFindNextFileW@8"                 @103
    115115;  InternetGetCertByURL              = _InternetGetCertByURL@                    @104
    116   InternetGetConnectedState         = _InternetGetConnectedState@8               @105
    117   InternetGetCookieA                = _InternetGetCookieA@16                     @106
    118   InternetGetCookieW                = _InternetGetCookieW@16                     @107
    119   InternetGetLastResponseInfoA      = _InternetGetLastResponseInfoA@12           @108
    120   InternetGetLastResponseInfoW      = _InternetGetLastResponseInfoW@12           @109
     116  InternetGetConnectedState         = "_InternetGetConnectedState@8"             @105
     117  InternetGetCookieA                = "_InternetGetCookieA@16"                   @106
     118  InternetGetCookieW                = "_InternetGetCookieW@16"                   @107
     119  InternetGetLastResponseInfoA      = "_InternetGetLastResponseInfoA@12"         @108
     120  InternetGetLastResponseInfoW      = "_InternetGetLastResponseInfoW@12"         @109
    121121;  InternetGoOnline                  = _InternetGoOnline@                    @110
    122122;  InternetHangUp                    = _InternetHangUp@                  @111
    123123;  InternetLockRequestFile           = _InternetLockRequestFile@                 @112
    124   InternetOpenA                     = _InternetOpenA@20                   @113
     124  InternetOpenA                     = "_InternetOpenA@20"                 @113
    125125;  InternetOpenServerPushParse       = _InternetOpenServerPushParse@                 @114
    126   InternetOpenUrlA                  = _InternetOpenUrlA@24                    @115
    127   InternetOpenUrlW                  = _InternetOpenUrlW@24                    @116
    128   InternetOpenW                     = _InternetOpenW@20                   @117
    129   InternetQueryDataAvailable        = _InternetQueryDataAvailable@16                  @118
    130   InternetQueryOptionA              = _InternetQueryOptionA@16                    @119
    131   InternetQueryOptionW              = _InternetQueryOptionW@16                    @120
    132   InternetReadFile                  = _InternetReadFile@16                    @121
     126  InternetOpenUrlA                  = "_InternetOpenUrlA@24"                  @115
     127  InternetOpenUrlW                  = "_InternetOpenUrlW@24"                  @116
     128  InternetOpenW                     = "_InternetOpenW@20"                 @117
     129  InternetQueryDataAvailable        = "_InternetQueryDataAvailable@16"                @118
     130  InternetQueryOptionA              = "_InternetQueryOptionA@16"                  @119
     131  InternetQueryOptionW              = "_InternetQueryOptionW@16"                  @120
     132  InternetReadFile                  = "_InternetReadFile@16"                  @121
    133133;  InternetReadFileExA               = _InternetReadFileExA@                 @122
    134134;  InternetReadFileExW               = _InternetReadFileExW@                 @123
    135135;  InternetServerPushParse           = _InternetServerPushParse@                 @124
    136   InternetSetCookieA                = _InternetSetCookieA@12                  @125
    137   InternetSetCookieW                = _InternetSetCookieW@12                  @126
     136  InternetSetCookieA                = "_InternetSetCookieA@12"                @125
     137  InternetSetCookieW                = "_InternetSetCookieW@12"                @126
    138138;  InternetSetDialState              = _InternetSetDialState@                    @127
    139   InternetSetFilePointer            = _InternetSetFilePointer@20                  @128
    140   InternetSetOptionA                = _InternetSetOptionA@16                  @129
    141   InternetSetOptionExA              = _InternetSetOptionExA@20                    @130
    142   InternetSetOptionExW              = _InternetSetOptionExW@20                    @131
    143   InternetSetOptionW                = _InternetSetOptionW@16                  @132
    144   InternetSetStatusCallback         = _InternetSetStatusCallback@8                   @133
     139  InternetSetFilePointer            = "_InternetSetFilePointer@20"                @128
     140  InternetSetOptionA                = "_InternetSetOptionA@16"                @129
     141  InternetSetOptionExA              = "_InternetSetOptionExA@20"                  @130
     142  InternetSetOptionExW              = "_InternetSetOptionExW@20"                  @131
     143  InternetSetOptionW                = "_InternetSetOptionW@16"                @132
     144  InternetSetStatusCallback         = "_InternetSetStatusCallback@8"                 @133
    145145;  InternetShowSecurityInfoByURL     = _InternetShowSecurityInfoByURL@                   @134
    146   InternetTimeFromSystemTime        = _InternetTimeFromSystemTime@16                  @135
     146  InternetTimeFromSystemTime        = "_InternetTimeFromSystemTime@16"                @135
    147147;  InternetTimeToSystemTime          = _InternetTimeToSystemTime@                    @136
    148148;  InternetUnlockRequestFile         = _InternetUnlockRequestFile@                   @137
    149   InternetWriteFile                 = _InternetWriteFile@16                   @138
     149  InternetWriteFile                 = "_InternetWriteFile@16"                 @138
    150150;  InternetWriteFileExA              = _InternetWriteFileExA@                    @139
    151151;  InternetWriteFileExW              = _InternetWriteFileExW@                    @140
     
    153153;  LoadUrlCacheContent               = _LoadUrlCacheContent@                 @142
    154154;  ParseX509EncodedCertificateForListBoxEntry = _ParseX509EncodedCertificateForListBoxEntry@                  @143
    155   ReadUrlCacheEntryStream           = _ReadUrlCacheEntryStream@20                 @144
    156   RetrieveUrlCacheEntryFileA        = _RetrieveUrlCacheEntryFileA@16                  @145
    157   RetrieveUrlCacheEntryFileW        = _RetrieveUrlCacheEntryFileW@16                  @146
    158   RetrieveUrlCacheEntryStreamA      = _RetrieveUrlCacheEntryStreamA@20                    @147
    159   RetrieveUrlCacheEntryStreamW      = _RetrieveUrlCacheEntryStreamW@20                    @148
     155  ReadUrlCacheEntryStream           = "_ReadUrlCacheEntryStream@20"               @144
     156  RetrieveUrlCacheEntryFileA        = "_RetrieveUrlCacheEntryFileA@16"                @145
     157  RetrieveUrlCacheEntryFileW        = "_RetrieveUrlCacheEntryFileW@16"                @146
     158  RetrieveUrlCacheEntryStreamA      = "_RetrieveUrlCacheEntryStreamA@20"                  @147
     159  RetrieveUrlCacheEntryStreamW      = "_RetrieveUrlCacheEntryStreamW@20"                  @148
    160160;  RunOnceUrlCache                   = _RunOnceUrlCache@                 @149
    161161;  SetUrlCacheConfigInfoA            = _SetUrlCacheConfigInfoA@                  @150
    162162;  SetUrlCacheConfigInfoW            = _SetUrlCacheConfigInfoW@                  @151
    163163;  SetUrlCacheEntryGroup             = _SetUrlCacheEntryGroup@                   @152
    164   SetUrlCacheEntryInfoA             = _SetUrlCacheEntryInfoA@12                   @153
    165   SetUrlCacheEntryInfoW             = _SetUrlCacheEntryInfoW@12                   @154
     164  SetUrlCacheEntryInfoA             = "_SetUrlCacheEntryInfoA@12"                 @153
     165  SetUrlCacheEntryInfoW             = "_SetUrlCacheEntryInfoW@12"                 @154
    166166;  SetUrlCacheHeaderData             = _SetUrlCacheHeaderData@                   @155
    167167;  ShowClientAuthCerts               = _ShowClientAuthCerts@                 @156
    168168;  ShowSecurityInfo                  = _ShowSecurityInfo@                    @157
    169169;  ShowX509EncodedCertificate        = _ShowX509EncodedCertificate@                  @158
    170   UnlockUrlCacheEntryFile           = _UnlockUrlCacheEntryFile@8                 @159
    171   UnlockUrlCacheEntryStream         = _UnlockUrlCacheEntryStream@8                   @160
     170  UnlockUrlCacheEntryFile           = "_UnlockUrlCacheEntryFile@8"               @159
     171  UnlockUrlCacheEntryStream         = "_UnlockUrlCacheEntryStream@8"                 @160
    172172;  UpdateUrlCacheContentPath         = _UpdateUrlCacheContentPath@                   @161
    173173
    174174
    175175  ;ordinals???
    176   FtpCommandA                       = _FtpCommandA@20                               @200
    177   FtpCommandW                       = _FtpCommandW@20                               @201
     176  FtpCommandA                       = "_FtpCommandA@20"                             @200
     177  FtpCommandW                       = "_FtpCommandW@20"                             @201
  • branches/gcc-kmk/src/wintrust/wintrust.def

    r7624 r21900  
    5252;;address 0x6a70 WTHelperProvDataFromStateData @42 (0x20153a70)
    5353
    54   WinVerifyTrust = _WinVerifyTrust@12                                @43
     54  WinVerifyTrust = "_WinVerifyTrust@12"                              @43
    5555
    5656;;address 0x5cb5 WinVerifyTrustEx @44 (0x20152cb5)
  • branches/gcc-kmk/src/wnaspi32/initterm.cpp

    r21842 r21900  
    1 /* $Id: initwnaspi32.cpp,v 1.7 2002-06-08 11:42:02 sandervl Exp $
     1/* $Id: initterm.cpp,v 1.8 2001-10-15 17:06:18 sandervl Exp $
    22 *
    3  * DLL entry point
     3 * WNASPI322 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
     
    4025#include "cdio.h"
    4126
    42 extern "C" {
    43  //Win32 resource table (produced by wrc)
    44  extern DWORD wnaspi32_PEResTab;
    45 }
     27// Win32 resource table (produced by wrc)
     28extern DWORD wnaspi32_PEResTab;
     29
    4630static HMODULE dllHandle = 0;
     31
    4732BOOL fASPIAvailable = TRUE;
    4833
    49 //******************************************************************************
    50 //******************************************************************************
    5134void WIN32API DisableASPI()
    5235{
    53    dprintf(("DisableASPI"));
    54    fASPIAvailable = FALSE;
     36    dprintf(("DisableASPI"));
     37    fASPIAvailable = FALSE;
    5538}
    56 //******************************************************************************
    57 //******************************************************************************
     39
    5840BOOL WINAPI Wnaspi32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    5941{
    60    switch (fdwReason)
    61    {
    62    case DLL_PROCESS_ATTACH:
    63    {
    64        if(fASPIAvailable == FALSE) return TRUE;
     42    switch (fdwReason)
     43    {
     44    case DLL_PROCESS_ATTACH:
     45    {
     46        if(fASPIAvailable == FALSE) return TRUE;
    6547
    66        if(OSLibCdIoInitialize() == FALSE) {
    67            dprintf(("WNASPI32: LibMain; can't allocate aspi object! APIs will not work!"));
    68            // @@@AH 20011020 we shouldn't prevent DLL loading in this case
    69            // just make sure that all API calls fail
    70            return TRUE;
    71        }
    72        fASPIAvailable = TRUE;
    73        dprintf(("WNASPI32: LibMain; os2cdrom.dmd ASPI interface available"));
    74        return TRUE;
    75    }
     48        if(OSLibCdIoInitialize() == FALSE)
     49        {
     50            dprintf(("WNASPI32: LibMain; can't allocate aspi object! APIs will not work!"));
     51            // @@@AH 20011020 we shouldn't prevent DLL loading in this case
     52            // just make sure that all API calls fail
     53            return TRUE;
     54        }
     55        fASPIAvailable = TRUE;
     56        dprintf(("WNASPI32: LibMain; os2cdrom.dmd ASPI interface available"));
     57        return TRUE;
     58    }
    7659
    77    case DLL_THREAD_ATTACH:
    78    case DLL_THREAD_DETACH:
    79        return TRUE;
     60    case DLL_THREAD_ATTACH:
     61    case DLL_THREAD_DETACH:
     62        return TRUE;
    8063
    81    case DLL_PROCESS_DETACH:
    82        OSLibCdIoTerminate();
    83        return TRUE;
    84    }
    85    return FALSE;
     64    case DLL_PROCESS_DETACH:
     65        OSLibCdIoTerminate();
     66        return TRUE;
     67    }
     68    return FALSE;
    8669}
    87 /****************************************************************************/
    88 /* _DLL_InitTerm is the function that gets called by the operating system   */
    89 /* loader when it loads and frees this DLL for each process that accesses   */
    90 /* this DLL.  However, it only gets called the first time the DLL is loaded */
    91 /* and the last time it is freed for a particular process.  The system      */
    92 /* linkage convention MUST be used because the operating system loader is   */
    93 /* calling this function.                                                   */
    94 /****************************************************************************/
    95 ULONG APIENTRY inittermWnaspi32(ULONG hModule, ULONG ulFlag)
     70
     71ULONG SYSTEM DLL_InitWinAspi32(ULONG hModule)
    9672{
    97    size_t i;
    98    APIRET rc;
     73    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9974
    100    /*-------------------------------------------------------------------------*/
    101    /* If ulFlag is zero then the DLL is being loaded so initialization should */
    102    /* be performed.  If ulFlag is 1 then the DLL is being freed so            */
    103    /* termination should be performed.                                        */
    104    /*-------------------------------------------------------------------------*/
     75    dllHandle = RegisterLxDll(hModule, Wnaspi32LibMain, (PVOID)&wnaspi32_PEResTab);
     76    if (dllHandle == 0)
     77        return -1;
    10578
    106    switch (ulFlag) {
    107       case 0 :
    108          dllHandle = RegisterLxDll(hModule, Wnaspi32LibMain, (PVOID)&wnaspi32_PEResTab);
    109          if(dllHandle == 0)
    110              return 0UL;
     79    return 0;
     80}
    11181
    112          break;
    113       case 1 :
    114          if(dllHandle) {
    115              UnregisterLxDll(dllHandle);
    116          }
    117          break;
    118       default  :
    119          return 0UL;
    120    }
     82void SYSTEM DLL_TermWinAspi32(ULONG hModule)
     83{
     84    if (dllHandle)
     85       UnregisterLxDll(dllHandle);
     86}
    12187
    122    /***********************************************************/
    123    /* A non-zero value must be returned to indicate success.  */
    124    /***********************************************************/
    125    return 1UL;
     88ULONG SYSTEM DLL_Init(ULONG hModule)
     89{
     90    if (DLL_InitDefault(hModule) == -1)
     91        return -1;
     92    return DLL_InitWinAspi32(hModule);
    12693}
    127 //******************************************************************************
    128 //******************************************************************************
     94
     95void SYSTEM DLL_Term(ULONG hModule)
     96{
     97    DLL_TermWinAspi32(hModule);
     98    DLL_TermDefault(hModule);
     99}
  • branches/gcc-kmk/src/wnaspi32/wnaspi32.def

    r8601 r21900  
    33DESCRIPTION 'Odin32 System DLL - WnAspi32'
    44
    5 PROTMODE
    65DATA MULTIPLE NONSHARED READWRITE LOADONCALL
    76CODE LOADONCALL
  • branches/gcc-kmk/src/wnetap32/errorlog.cpp

    r6672 r21900  
    3232#include <os2win.h>
    3333#include <misc.h>
     34#include <string.h>
    3435#include <heapstring.h>
    35 #include <string.h>
    3636
    3737#include "oslibnet.h"
  • branches/gcc-kmk/src/wnetap32/group.cpp

    r6672 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/mem.cpp

    r6672 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/netapi32.def

    r10492 r21900  
    3939;    0023    I_NetDfsSetLocalVolumeState
    4040;    0024    I_NetDfsSetServerInfo
    41   I_NetGetDCList                       = _OS2I_NetGetDCList@24         @25
     41  I_NetGetDCList                       = "_OS2I_NetGetDCList@24"       @25
    4242;    0026    I_NetListCanonicalize
    4343;    0027    I_NetListTraverse
    4444;    0028    I_NetLogonControl2
    45   I_NetLogonControl                    = _OS2I_NetLogonControl@24      @29
     45  I_NetLogonControl                    = "_OS2I_NetLogonControl@24"    @29
    4646;    0030    I_NetLogonSamLogoff
    4747;    0031    I_NetLogonSamLogon
    4848;    0032    I_NetLogonUasLogoff
    4949;    0033    I_NetLogonUasLogon
    50   I_NetNameCanonicalize                = _OS2I_NetNameCanonicalize@16  @34
    51   I_NetNameCompare                     = _OS2I_NetNameCompare@16       @35
    52   I_NetNameValidate                    = _OS2I_NetNameValidate@12      @36
    53   I_NetPathCanonicalize                = _OS2I_NetPathCanonicalize@16  @37
    54   I_NetPathCompare                     = _OS2I_NetPathCompare@16       @38
    55   I_NetPathType                        = _OS2I_NetPathType@8           @39
     50  I_NetNameCanonicalize                = "_OS2I_NetNameCanonicalize@16"  @34
     51  I_NetNameCompare                     = "_OS2I_NetNameCompare@16"     @35
     52  I_NetNameValidate                    = "_OS2I_NetNameValidate@12"    @36
     53  I_NetPathCanonicalize                = "_OS2I_NetPathCanonicalize@16"  @37
     54  I_NetPathCompare                     = "_OS2I_NetPathCompare@16"     @38
     55  I_NetPathType                        = "_OS2I_NetPathType@8"         @39
    5656;    0041    I_NetServerAuthenticate
    5757;    0040    I_NetServerAuthenticate2
     
    6060;    0044    I_NetServerSetServiceBits
    6161;    0045    I_NetServerSetServiceBitsEx
    62   NetAlertRaise                = _OS2NetAlertRaise@12                  @46    ;stubonly
    63   NetAlertRaiseEx              = _OS2NetAlertRaiseEx@16                @47    ;stubonly
    64   NetApiBufferAllocate         = _OS2NetApiBufferAllocate@8            @48    ;stubonly
    65   NetApiBufferFree             = _OS2NetApiBufferFree@4                @49    ;stubonly
    66   NetApiBufferReallocate       = _OS2NetApiBufferReallocate@12         @50    ;stubonly
    67   NetApiBufferSize             = _OS2NetApiBufferSize@8                @51    ;stubonly
    68   NetAuditClear                = _OS2NetAuditClear@12                  @52
    69   NetAuditRead                 = _OS2NetAuditRead@44                   @53
    70   NetAuditWrite                = _OS2NetAuditWrite@44                  @54
     62  NetAlertRaise                = "_OS2NetAlertRaise@12"                @46    ;stubonly
     63  NetAlertRaiseEx              = "_OS2NetAlertRaiseEx@16"              @47    ;stubonly
     64  NetApiBufferAllocate         = "_OS2NetApiBufferAllocate@8"          @48    ;stubonly
     65  NetApiBufferFree             = "_OS2NetApiBufferFree@4"              @49    ;stubonly
     66  NetApiBufferReallocate       = "_OS2NetApiBufferReallocate@12"       @50    ;stubonly
     67  NetApiBufferSize             = "_OS2NetApiBufferSize@8"              @51    ;stubonly
     68  NetAuditClear                = "_OS2NetAuditClear@12"                @52
     69  NetAuditRead                 = "_OS2NetAuditRead@44"                 @53
     70  NetAuditWrite                = "_OS2NetAuditWrite@44"                @54
    7171;    0055    NetBrowserStatisticsGet
    72   NetConfigGet                 = _OS2NetConfigGet@16                   @56
    73   NetConfigGetAll              = _OS2NetConfigGetAll@12                @57
    74   NetConfigSet                 = _OS2NetConfigSet@28                   @58
    75   NetConnectionEnum            = _OS2NetConnectionEnum@32              @59
     72  NetConfigGet                 = "_OS2NetConfigGet@16"                 @56
     73  NetConfigGetAll              = "_OS2NetConfigGetAll@12"              @57
     74  NetConfigSet                 = "_OS2NetConfigSet@28"                 @58
     75  NetConnectionEnum            = "_OS2NetConnectionEnum@32"            @59
    7676;    0060    NetDfsAdd
    7777;    0061    NetDfsEnum
     
    8383;    0067    NetDfsSetInfo
    8484;    0068    NetEnumerateTrustedDomains
    85   NetErrorLogClear             = _OS2NetErrorLogClear@12               @69
    86   NetErrorLogRead              = _OS2NetErrorLogRead@44                @70
    87   NetErrorLogWrite             = _OS2NetErrorLogWrite@44               @71
    88   NetFileClose                 = _OS2NetFileClose@8                    @72
    89   NetFileEnum                  = _OS2NetFileEnum@36                    @73    ;stubonly
    90   NetFileGetInfo               = _OS2NetFileGetInfo@16                 @74    ;stubonly
    91   NetGetAnyDCName              = _OS2NetGetAnyDCName@12                @75    ;stubonly
    92   NetGetDCName                         = _OS2NetGetDCName@12                   @76    ;stubonly
    93   NetGetDisplayInformationIndex = _OS2NetGetDisplayInformationIndex@16 @77    ;stubonly
    94   NetGroupAdd                  = _OS2NetGroupAdd@16                    @78    ;stubonly
    95   NetGroupAddUser              = _OS2NetGroupAddUser@12                @79    ;stubonly
    96   NetGroupDel                  = _OS2NetGroupDel@8                     @80    ;stubonly
    97   NetGroupDelUser              = _OS2NetGroupDelUser@12                @81    ;stubonly
    98   NetGroupEnum                         = _OS2NetGroupEnum@28                   @82    ;stubonly
    99   NetGroupGetInfo              = _OS2NetGroupGetInfo@16                @83    ;stubonly
    100   NetGroupGetUsers             = _OS2NetGroupGetUsers@32               @84    ;stubonly
    101   NetGroupSetInfo              = _OS2NetGroupSetInfo@20                @85    ;stubonly
    102   NetGroupSetUsers             = _OS2NetGroupSetUsers@20               @86    ;stubonly
     85  NetErrorLogClear             = "_OS2NetErrorLogClear@12"             @69
     86  NetErrorLogRead              = "_OS2NetErrorLogRead@44"              @70
     87  NetErrorLogWrite             = "_OS2NetErrorLogWrite@44"             @71
     88  NetFileClose                 = "_OS2NetFileClose@8"                  @72
     89  NetFileEnum                  = "_OS2NetFileEnum@36"                  @73    ;stubonly
     90  NetFileGetInfo               = "_OS2NetFileGetInfo@16"               @74    ;stubonly
     91  NetGetAnyDCName              = "_OS2NetGetAnyDCName@12"              @75    ;stubonly
     92  NetGetDCName                         = "_OS2NetGetDCName@12"                 @76    ;stubonly
     93  NetGetDisplayInformationIndex = "_OS2NetGetDisplayInformationIndex@16" @77    ;stubonly
     94  NetGroupAdd                  = "_OS2NetGroupAdd@16"                  @78    ;stubonly
     95  NetGroupAddUser              = "_OS2NetGroupAddUser@12"              @79    ;stubonly
     96  NetGroupDel                  = "_OS2NetGroupDel@8"                   @80    ;stubonly
     97  NetGroupDelUser              = "_OS2NetGroupDelUser@12"              @81    ;stubonly
     98  NetGroupEnum                         = "_OS2NetGroupEnum@28"                 @82    ;stubonly
     99  NetGroupGetInfo              = "_OS2NetGroupGetInfo@16"              @83    ;stubonly
     100  NetGroupGetUsers             = "_OS2NetGroupGetUsers@32"             @84    ;stubonly
     101  NetGroupSetInfo              = "_OS2NetGroupSetInfo@20"              @85    ;stubonly
     102  NetGroupSetUsers             = "_OS2NetGroupSetUsers@20"             @86    ;stubonly
    103103;  NetHandleGetInfo            = _OS2NetHandleGetInfo@20               @    ;stubonly NOT in DLL but in SDK Doc
    104104;  NetHandleSetInfo            = _OS2NetHandleSetInfo@20               @    ;stubonly NOT in DLL but in SDK Doc
    105   NetLocalGroupAdd             = _OS2NetLocalGroupAdd@16               @87    ;stubonly
    106   NetLocalGroupAddMember       = _OS2NetLocalGroupAddMember@12         @88
    107   NetLocalGroupAddMembers      = _OS2NetLocalGroupAddMembers@20        @89    ;stubonly
    108   NetLocalGroupDel             = _OS2NetLocalGroupDel@8                @90    ;stubonly
     105  NetLocalGroupAdd             = "_OS2NetLocalGroupAdd@16"             @87    ;stubonly
     106  NetLocalGroupAddMember       = "_OS2NetLocalGroupAddMember@12"       @88
     107  NetLocalGroupAddMembers      = "_OS2NetLocalGroupAddMembers@20"      @89    ;stubonly
     108  NetLocalGroupDel             = "_OS2NetLocalGroupDel@8"              @90    ;stubonly
    109109;    0091    NetLocalGroupDelMember
    110   NetLocalGroupDelMembers      = _OS2NetLocalGroupDelMembers@20        @92    ;stubonly
    111   NetLocalGroupEnum            = _OS2NetLocalGroupEnum@28              @93    ;stubonly
    112   NetLocalGroupGetInfo                 = _OS2NetLocalGroupGetInfo@16           @94    ;stubonly
    113   NetLocalGroupGetMembers      = _OS2NetLocalGroupGetMembers@32        @95    ;stubonly
    114   NetLocalGroupSetInfo                 = _OS2NetLocalGroupSetInfo@20           @96    ;stubonly
    115   NetLocalGroupSetMembers      = _OS2NetLocalGroupSetMembers@20        @97    ;stubonly
    116   NetMessageBufferSend                 = _OS2NetMessageBufferSend@20           @98    ;stubonly
    117   NetMessageNameAdd            = _OS2NetMessageNameAdd@8               @99    ;stubonly
    118   NetMessageNameDel            = _OS2NetMessageNameDel@8               @100    ;stubonly
    119   NetMessageNameEnum           = _OS2NetMessageNameEnum@28             @101    ;stubonly
    120   NetMessageNameGetInfo        = _OS2NetMessageNameGetInfo@16          @102    ;stubonly
    121   NetQueryDisplayInformation   = _OS2NetQueryDisplayInformation@28     @103    ;stubonly
    122   NetRemoteTOD                         = _OS2NetRemoteTOD@8                    @105    ;stubonly
    123   NetReplExportDirAdd          = _OS2NetReplExportDirAdd@16            @106    ;stubonly
    124   NetReplExportDirDel          = _OS2NetReplExportDirDel@8             @107    ;stubonly
    125   NetReplExportDirEnum                 = _OS2NetReplExportDirEnum@28           @108    ;stubonly
    126   NetReplExportDirGetInfo      = _OS2NetReplExportDirGetInfo@16        @109    ;stubonly
    127   NetReplExportDirLock                 = _OS2NetReplExportDirLock@8            @110    ;stubonly
    128   NetReplExportDirSetInfo      = _OS2NetReplExportDirSetInfo@20        @111    ;stubonly
    129   NetReplExportDirUnlock       = _OS2NetReplExportDirUnlock@12         @112    ;stubonly
    130   NetReplGetInfo               = _OS2NetReplGetInfo@12                 @113    ;stubonly
    131   NetReplImportDirAdd          = _OS2NetReplImportDirAdd@16            @114    ;stubonly
    132   NetReplImportDirDel          = _OS2NetReplImportDirDel@8             @115    ;stubonly
    133   NetReplImportDirEnum                 = _OS2NetReplImportDirEnum@28           @116    ;stubonly
    134   NetReplImportDirGetInfo      = _OS2NetReplImportDirGetInfo@16        @117    ;stubonly
    135   NetReplImportDirLock                 = _OS2NetReplImportDirLock@8            @118    ;stubonly
    136   NetReplImportDirUnlock       = _OS2NetReplImportDirUnlock@12         @119    ;stubonly
    137   NetReplSetInfo               = _OS2NetReplSetInfo@16                 @120    ;stubonly
     110  NetLocalGroupDelMembers      = "_OS2NetLocalGroupDelMembers@20"      @92    ;stubonly
     111  NetLocalGroupEnum            = "_OS2NetLocalGroupEnum@28"            @93    ;stubonly
     112  NetLocalGroupGetInfo                 = "_OS2NetLocalGroupGetInfo@16"         @94    ;stubonly
     113  NetLocalGroupGetMembers      = "_OS2NetLocalGroupGetMembers@32"      @95    ;stubonly
     114  NetLocalGroupSetInfo                 = "_OS2NetLocalGroupSetInfo@20"         @96    ;stubonly
     115  NetLocalGroupSetMembers      = "_OS2NetLocalGroupSetMembers@20"      @97    ;stubonly
     116  NetMessageBufferSend                 = "_OS2NetMessageBufferSend@20"         @98    ;stubonly
     117  NetMessageNameAdd            = "_OS2NetMessageNameAdd@8"             @99    ;stubonly
     118  NetMessageNameDel            = "_OS2NetMessageNameDel@8"             @100    ;stubonly
     119  NetMessageNameEnum           = "_OS2NetMessageNameEnum@28"           @101    ;stubonly
     120  NetMessageNameGetInfo        = "_OS2NetMessageNameGetInfo@16"        @102    ;stubonly
     121  NetQueryDisplayInformation   = "_OS2NetQueryDisplayInformation@28"   @103    ;stubonly
     122  NetRemoteTOD                         = "_OS2NetRemoteTOD@8"                  @105    ;stubonly
     123  NetReplExportDirAdd          = "_OS2NetReplExportDirAdd@16"          @106    ;stubonly
     124  NetReplExportDirDel          = "_OS2NetReplExportDirDel@8"           @107    ;stubonly
     125  NetReplExportDirEnum                 = "_OS2NetReplExportDirEnum@28"         @108    ;stubonly
     126  NetReplExportDirGetInfo      = "_OS2NetReplExportDirGetInfo@16"      @109    ;stubonly
     127  NetReplExportDirLock                 = "_OS2NetReplExportDirLock@8"          @110    ;stubonly
     128  NetReplExportDirSetInfo      = "_OS2NetReplExportDirSetInfo@20"      @111    ;stubonly
     129  NetReplExportDirUnlock       = "_OS2NetReplExportDirUnlock@12"       @112    ;stubonly
     130  NetReplGetInfo               = "_OS2NetReplGetInfo@12"               @113    ;stubonly
     131  NetReplImportDirAdd          = "_OS2NetReplImportDirAdd@16"          @114    ;stubonly
     132  NetReplImportDirDel          = "_OS2NetReplImportDirDel@8"           @115    ;stubonly
     133  NetReplImportDirEnum                 = "_OS2NetReplImportDirEnum@28"         @116    ;stubonly
     134  NetReplImportDirGetInfo      = "_OS2NetReplImportDirGetInfo@16"      @117    ;stubonly
     135  NetReplImportDirLock                 = "_OS2NetReplImportDirLock@8"          @118    ;stubonly
     136  NetReplImportDirUnlock       = "_OS2NetReplImportDirUnlock@12"       @119    ;stubonly
     137  NetReplSetInfo               = "_OS2NetReplSetInfo@16"               @120    ;stubonly
    138138;    0121    NetRplAdapterAdd
    139139;    0122    NetRplAdapterDel
     
    165165;    0148    NetRplWkstaGetInfo
    166166;    0149    NetRplWkstaSetInfo
    167   NetScheduleJobAdd            = _OS2NetScheduleJobAdd@12              @150    ;stubonly
    168   NetScheduleJobDel            = _OS2NetScheduleJobDel@12              @151    ;stubonly
    169   NetScheduleJobEnum           = _OS2NetScheduleJobEnum@24             @152    ;stubonly
    170   NetScheduleJobGetInfo        = _OS2NetScheduleJobGetInfo@12          @153    ;stubonly
     167  NetScheduleJobAdd            = "_OS2NetScheduleJobAdd@12"            @150    ;stubonly
     168  NetScheduleJobDel            = "_OS2NetScheduleJobDel@12"            @151    ;stubonly
     169  NetScheduleJobEnum           = "_OS2NetScheduleJobEnum@24"           @152    ;stubonly
     170  NetScheduleJobGetInfo        = "_OS2NetScheduleJobGetInfo@12"        @153    ;stubonly
    171171;    0154    NetServerComputerNameAdd
    172172;    0155    NetServerComputerNameDel
    173   NetServerDiskEnum            = _OS2NetServerDiskEnum@28              @156    ;stubonly
    174   NetServerEnum                = _OS2NetServerEnum@36                  @157    ;stubonly
     173  NetServerDiskEnum            = "_OS2NetServerDiskEnum@28"            @156    ;stubonly
     174  NetServerEnum                = "_OS2NetServerEnum@36"                @157    ;stubonly
    175175;    0158    NetServerEnumEx
    176   NetServerGetInfo             = _OS2NetServerGetInfo@12               @159    ;stubonly
    177   NetServerSetInfo             = _OS2NetServerSetInfo@16               @160    ;stubonly
    178   NetServerTransportAdd        = _OS2NetServerTransportAdd@12          @161    ;stubonly
    179   NetServerTransportDel        = _OS2NetServerTransportDel@8           @163    ;stubonly
    180   NetServerTransportEnum       = _OS2NetServerTransportEnum@28         @164    ;stubonly
    181   NetServiceControl            = _OS2NetServiceControl@20              @165
    182   NetServiceEnum               = _OS2NetServiceEnum@28                 @166
    183   NetServiceGetInfo            = _OS2NetServiceGetInfo@16              @167
    184   NetServiceInstall            = _OS2NetServiceInstall@20              @168
    185   NetSessionDel                = _OS2NetSessionDel@12                  @169    ;stubonly
    186   NetSessionEnum               = _OS2NetSessionEnum@36                 @170    ;stubonly
    187   NetSessionGetInfo            = _OS2NetSessionGetInfo@20              @171    ;stubonly
    188   NetShareAdd                  = _OS2NetShareAdd@16                    @172    ;stubonly
    189   NetShareCheck                = _OS2NetShareCheck@12                  @173    ;stubonly
    190   NetShareDel                  = _OS2NetShareDel@12                    @174    ;stubonly
    191   NetShareDelSticky            = _OS2NetShareDelSticky@12              @175
    192   NetShareEnum                 = _OS2NetShareEnum@28                   @176
    193   NetShareEnumSticky           = _OS2NetShareEnumSticky@28             @177
    194   NetShareGetInfo              = _OS2NetShareGetInfo@16                @178    ;stubonly
    195   NetShareSetInfo              = _OS2NetShareSetInfo@20                @179    ;stubonly
    196   NetStatisticsGet             = _OS2NetStatisticsGet@20               @180    ;stubonly
    197   NetUseAdd                    = _OS2NetUseAdd@16                      @181
    198   NetUseDel                    = _OS2NetUseDel@12                      @182
    199   NetUseEnum                   = _OS2NetUseEnum@28                     @183
    200   NetUseGetInfo                = _OS2NetUseGetInfo@16                  @184
    201   NetUserAdd                   = _OS2NetUserAdd@16                     @185    ;stubonly
    202   NetUserChangePassword        = _OS2NetUserChangePassword@16          @186    ;stubonly
    203   NetUserDel                   = _OS2NetUserDel@8                      @187    ;stubonly
    204   NetUserEnum                  = _OS2NetUserEnum@32                    @188    ;stubonly
    205   NetUserGetGroups             = _OS2NetUserGetGroups@28               @189    ;stubonly
    206   NetUserGetInfo               = _OS2NetUserGetInfo@16                 @190    ;stubonly
    207   NetUserGetLocalGroups        = _OS2NetUserGetLocalGroups@32          @191    ;stubonly
    208   NetUserModalsGet             = _OS2NetUserModalsGet@12               @192    ;stubonly
    209   NetUserModalsSet             = _OS2NetUserModalsSet@16               @193    ;stubonly
    210   NetUserSetGroups             = _OS2NetUserSetGroups@20               @194    ;stubonly
    211   NetUserSetInfo               = _OS2NetUserSetInfo@20                 @195    ;stubonly
    212   NetWkstaGetInfo              = _OS2NetWkstaGetInfo@12                @196    ;stubonly
    213   NetWkstaSetInfo              = _OS2NetWkstaSetInfo@16                @197    ;stubonly
    214   NetWkstaTransportAdd                 = _OS2NetWkstaTransportAdd@12           @198    ;stubonly
    215   NetWkstaTransportDel                 = _OS2NetWkstaTransportDel@12           @199    ;stubonly
    216   NetWkstaTransportEnum        = _OS2NetWkstaTransportEnum@28          @200    ;stubonly
    217   NetWkstaUserEnum             = _OS2NetWkstaUserEnum@28               @201    ;stubonly
    218   NetWkstaUserGetInfo          = _OS2NetWkstaUserGetInfo@12            @202    ;stubonly
    219   NetWkstaUserSetInfo          = _OS2NetWkstaUserSetInfo@16            @203    ;stubonly
    220   NetapipBufferAllocate        = _OS2NetapipBufferAllocate@12          @204
    221   Netbios                      = _OS2Netbios@4                         @205
     176  NetServerGetInfo             = "_OS2NetServerGetInfo@12"             @159    ;stubonly
     177  NetServerSetInfo             = "_OS2NetServerSetInfo@16"             @160    ;stubonly
     178  NetServerTransportAdd        = "_OS2NetServerTransportAdd@12"        @161    ;stubonly
     179  NetServerTransportDel        = "_OS2NetServerTransportDel@8"         @163    ;stubonly
     180  NetServerTransportEnum       = "_OS2NetServerTransportEnum@28"       @164    ;stubonly
     181  NetServiceControl            = "_OS2NetServiceControl@20"            @165
     182  NetServiceEnum               = "_OS2NetServiceEnum@28"               @166
     183  NetServiceGetInfo            = "_OS2NetServiceGetInfo@16"            @167
     184  NetServiceInstall            = "_OS2NetServiceInstall@20"            @168
     185  NetSessionDel                = "_OS2NetSessionDel@12"                @169    ;stubonly
     186  NetSessionEnum               = "_OS2NetSessionEnum@36"               @170    ;stubonly
     187  NetSessionGetInfo            = "_OS2NetSessionGetInfo@20"            @171    ;stubonly
     188  NetShareAdd                  = "_OS2NetShareAdd@16"                  @172    ;stubonly
     189  NetShareCheck                = "_OS2NetShareCheck@12"                @173    ;stubonly
     190  NetShareDel                  = "_OS2NetShareDel@12"                  @174    ;stubonly
     191  NetShareDelSticky            = "_OS2NetShareDelSticky@12"            @175
     192  NetShareEnum                 = "_OS2NetShareEnum@28"                 @176
     193  NetShareEnumSticky           = "_OS2NetShareEnumSticky@28"           @177
     194  NetShareGetInfo              = "_OS2NetShareGetInfo@16"              @178    ;stubonly
     195  NetShareSetInfo              = "_OS2NetShareSetInfo@20"              @179    ;stubonly
     196  NetStatisticsGet             = "_OS2NetStatisticsGet@20"             @180    ;stubonly
     197  NetUseAdd                    = "_OS2NetUseAdd@16"                    @181
     198  NetUseDel                    = "_OS2NetUseDel@12"                    @182
     199  NetUseEnum                   = "_OS2NetUseEnum@28"                   @183
     200  NetUseGetInfo                = "_OS2NetUseGetInfo@16"                @184
     201  NetUserAdd                   = "_OS2NetUserAdd@16"                   @185    ;stubonly
     202  NetUserChangePassword        = "_OS2NetUserChangePassword@16"        @186    ;stubonly
     203  NetUserDel                   = "_OS2NetUserDel@8"                    @187    ;stubonly
     204  NetUserEnum                  = "_OS2NetUserEnum@32"                  @188    ;stubonly
     205  NetUserGetGroups             = "_OS2NetUserGetGroups@28"             @189    ;stubonly
     206  NetUserGetInfo               = "_OS2NetUserGetInfo@16"               @190    ;stubonly
     207  NetUserGetLocalGroups        = "_OS2NetUserGetLocalGroups@32"        @191    ;stubonly
     208  NetUserModalsGet             = "_OS2NetUserModalsGet@12"             @192    ;stubonly
     209  NetUserModalsSet             = "_OS2NetUserModalsSet@16"             @193    ;stubonly
     210  NetUserSetGroups             = "_OS2NetUserSetGroups@20"             @194    ;stubonly
     211  NetUserSetInfo               = "_OS2NetUserSetInfo@20"               @195    ;stubonly
     212  NetWkstaGetInfo              = "_OS2NetWkstaGetInfo@12"              @196    ;stubonly
     213  NetWkstaSetInfo              = "_OS2NetWkstaSetInfo@16"              @197    ;stubonly
     214  NetWkstaTransportAdd                 = "_OS2NetWkstaTransportAdd@12"         @198    ;stubonly
     215  NetWkstaTransportDel                 = "_OS2NetWkstaTransportDel@12"         @199    ;stubonly
     216  NetWkstaTransportEnum        = "_OS2NetWkstaTransportEnum@28"        @200    ;stubonly
     217  NetWkstaUserEnum             = "_OS2NetWkstaUserEnum@28"             @201    ;stubonly
     218  NetWkstaUserGetInfo          = "_OS2NetWkstaUserGetInfo@12"          @202    ;stubonly
     219  NetWkstaUserSetInfo          = "_OS2NetWkstaUserSetInfo@16"          @203    ;stubonly
     220  NetapipBufferAllocate        = "_OS2NetapipBufferAllocate@12"        @204
     221  Netbios                      = "_OS2Netbios@4"                       @205
    222222;    0206    NetpAccessCheck
    223223;    0207    NetpAccessCheckAndAudit
     
    278278;    0262    NlBindingAddServerToCache
    279279;    0263    NlBindingRemoveServerFromCache
    280   RxNetAccessAdd                      = _OS2RxNetAccessAdd@24        @264
    281   RxNetAccessDel                      = _OS2RxNetAccessDel@24        @265
    282   RxNetAccessEnum                     = _OS2RxNetAccessEnum@24       @266
    283   RxNetAccessGetInfo                  = _OS2RxNetAccessGetInfo@24    @267
    284   RxNetAccessGetUserPerms             = _OS2RxNetAccessGetUserPerms@24 @268
    285   RxNetAccessSetInfo                  = _OS2RxNetAccessSetInfo@24    @269
     280  RxNetAccessAdd                      = "_OS2RxNetAccessAdd@24"      @264
     281  RxNetAccessDel                      = "_OS2RxNetAccessDel@24"      @265
     282  RxNetAccessEnum                     = "_OS2RxNetAccessEnum@24"     @266
     283  RxNetAccessGetInfo                  = "_OS2RxNetAccessGetInfo@24"  @267
     284  RxNetAccessGetUserPerms             = "_OS2RxNetAccessGetUserPerms@24" @268
     285  RxNetAccessSetInfo                  = "_OS2RxNetAccessSetInfo@24"  @269
    286286;    0270    RxNetServerEnum
    287287;    0271    RxNetUserPasswordSet
  • branches/gcc-kmk/src/wnetap32/repl.cpp

    r6672 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/schedule.cpp

    r6672 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/server.cpp

    r10492 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/service.cpp

    r6676 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/share.cpp

    r6676 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/use.cpp

    r6676 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/user.cpp

    r6672 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/wksta.cpp

    r10492 r21900  
    2727#include <os2win.h>
    2828#include <misc.h>
     29#include <string.h>
    2930#include <unicode.h>
    3031#include <heapstring.h>
    31 #include <string.h>
    3232#include <winconst.h>
    3333
  • branches/gcc-kmk/src/wnetap32/wnetap32.cpp

    r10492 r21900  
    3333#include <os2win.h>
    3434#include <misc.h>
     35#include <string.h>
    3536#include <unicode.h>
    3637#include <heapstring.h>
    37 #include <string.h>
    3838#include <winconst.h>
    3939
  • branches/gcc-kmk/src/wow32/wow32.cpp

    r5821 r21900  
    1515#include <unicode.h>
    1616#include <heapstring.h>
    17 #include <wow32.h>
     17#include "wow32.h"
    1818
    1919ODINDEBUGCHANNEL(WOW32)
  • branches/gcc-kmk/src/wow32/wow32.def

    r5822 r21900  
    1010
    1111EXPORTS
    12     WOWHandle16                = _WOWHandle16@8
     12    WOWHandle16                = "_WOWHandle16@8"
    1313
    1414; 1 forward WOWGetDescriptor kernel32.K32WOWGetDescriptor
Note: See TracChangeset for help on using the changeset viewer.