Ignore:
Timestamp:
Jan 18, 2012, 11:30:59 AM (14 years ago)
Author:
dmik
Message:

Add DEF_VAL macro to define argument's default values.

This is necessary to use functions with default values in C code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odinlx.h

    r21916 r21941  
    2929typedef int (* WIN32API WINMAIN)(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
    3030
    31 #ifdef __cplusplus
    32 
    3331//******************************************************************************
    3432//Create LX Dll object and send process attach message
     
    4745DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint,
    4846                             PVOID pResData,
    49                              DWORD MajorImageVersion = ODINNT_MAJOR_VERSION,
    50                              DWORD MinorImageVersion = ODINNT_MINOR_VERSION,
    51                              DWORD Subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI);
    52 #else
    53 
    54 DWORD WIN32API RegisterLxDll(HINSTANCE hInstance, WIN32DLLENTRY EntryPoint,
    55                              PVOID pResData,
    56                              DWORD MajorImageVersion,
    57                              DWORD MinorImageVersion,
    58                              DWORD Subsystem) ;
    59 
    60 #endif
     47                             DWORD MajorImageVersion DEF_VAL(ODINNT_MAJOR_VERSION),
     48                             DWORD MinorImageVersion DEF_VAL(ODINNT_MINOR_VERSION),
     49                             DWORD Subsystem DEF_VAL(IMAGE_SUBSYSTEM_WINDOWS_CUI));
    6150
    6251//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.