VirtualBox

Changeset 11 in kStuff for trunk/kProfiler2


Ignore:
Timestamp:
Apr 20, 2008 9:18:23 AM (17 years ago)
Author:
bird
Message:

Wrappers for the win32/64 api.

Location:
trunk/kProfiler2
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kProfiler2/Makefile.kmk

    r9 r11  
    126126        $(PATH_LIB)/kHlpCRTStatic$(SUFF_LIB)
    127127
     128#
     129# kPrf2WinApiWrappers
     130#
     131IMPORT_LIBS.win += kPrf2WinApiWrappersImp
     132kPrf2WinApiWrappersImp_TEMPLATE = kStuffEXE
     133kPrf2WinApiWrappersImp_SOURCES.x86   = kPrf2WinApiWrappersImp-x86.def
     134kPrf2WinApiWrappersImp_SOURCES.amd64 = kPrf2WinApiWrappersImp-amd64.def
     135
     136DLLS.win += kPrf2WinApiWrappers
     137kPrf2WinApiWrappers_TEMPLATE = kStuffEXE
     138kPrf2WinApiWrappers_CFLAGS = -GH -Gh
     139kPrf2WinApiWrappers_SOURCES = \
     140        kPrf2WinApiWrappers.c
     141#       kPrf2WinApiWrappersImp-$(BUILD_TARGET_ARCH).def
     142kPrf2WinApiWrappers_LIBS = \
     143        $(PATH_kPrf2)/kPrf2.lib
     144
     145#$(PATH_TARGET)/kPrf2WinApiWrappers.def: $(MAKEFILE)
     146#       $(RM) -f $@
     147#       $(APPEND) $@ 'LIBRARY kPrf2WinApiWrappers'
     148#       $(APPEND) $@ 'EXPORTS'
     149
     150ifeq (0,1)
     151kPrf2WinApiWrappers-kernel32.h:
     152        $(SED) -f kPrf2WinApi-pre.sed --output [email protected] \
     153                $(PATH_SDK_WINPSDK_INC)/WinBase.h \
     154                $(PATH_SDK_WINPSDK_INC)/WinCon.h \
     155                $(PATH_SDK_WINPSDK_INC)/WinNLS.h \
     156                $(PATH_SDK_WINPSDK_INC)/WinVer.h \
     157                $(PATH_SDK_WINPSDK_INC)/WinNT.h \
     158                $(PATH_SDK_WINPSDK_INC)/TlHelp32.h
     159        $(APPEND) [email protected] 'BOOL WINAPI ReplaceFile( LPCSTR lpReplacedFileName, LPCSTR lpReplacementFileName, LPCSTR lpBackupFileName, DWORD dwReplaceFlags, LPVOID lpExclude, LPVOID lpReserved );'
     160        $(APPEND) [email protected] 'BOOL WINAPI SetConsoleCursor( PVOID pvUnknown1, PVOID pvUnknown2 );'
     161        $(APPEND) [email protected] 'LPCH WINAPI GetEnvironmentStringsA( VOID );'
     162        $(APPEND) [email protected] 'BOOL WINAPI GetBinaryType( LPCSTR lpApplicationName, LPDWORD lpBinaryType );'
     163        $(APPEND) [email protected] 'WORD NTAPI RtlCaptureStackBackTrace( DWORD FramesToSkip, DWORD FramesToCapture, PVOID * BackTrace, PDWORD BackTraceHash );'
     164        $(APPEND) [email protected] 'PVOID RtlFillMemory( PVOID pv, int ch, SIZE_T cb );'
     165        $(APPEND) [email protected] 'PVOID RtlZeroMemory( PVOID pv, SIZE_T cb );'
     166        $(APPEND) [email protected] 'PVOID RtlMoveMemory( PVOID pvDst, PVOID pvSrc, SIZE_T cb );'
     167        $(APPEND) [email protected] 'VOID NTAPI RtlUnwind( PVOID TargetFrame, PVOID TargetIp, PEXCEPTION_RECORD ExceptionRecord, PVOID ReturnValue );'
     168#       $(APPEND) [email protected] 'VOID NTAPI RtlUnwindEx( FRAME_POINTERS TargetFrame, PVOID TargetIp, PEXCEPTION_RECORD ExceptionRecord, PVOID ReturnValue, PCONTEXT ContextRecord, PUNWIND_HISTORY_TABLE HistoryTable );'
     169        $(APPEND) [email protected] 'int WINAPI uaw_lstrcmpW( LPCUWSTR lpString1, LPCUWSTR lpString2 );'
     170        $(APPEND) [email protected] 'int WINAPI uaw_lstrcmpiW( LPCUWSTR lpString1, LPCUWSTR lpString2 );'
     171        $(APPEND) [email protected] 'int WINAPI uaw_lstrlenW( LPCUWSTR lpString );'
     172        $(APPEND) [email protected] 'LPUWSTR WINAPI uaw_wcschr( LPCUWSTR lpString, WCHAR wc );'
     173        $(APPEND) [email protected] 'LPUWSTR WINAPI uaw_wcscpy( LPUWSTR lpDst, LPCUWSTR lpSrc );'
     174        $(APPEND) [email protected] 'int WINAPI uaw_wcsicmp( LPCUWSTR lp1, LPCUWSTR lp2 );'
     175        $(APPEND) [email protected] 'SIZE_T WINAPI uaw_wcslen( LPCUWSTR lp1 );'
     176        $(APPEND) [email protected] 'LPUWSTR WINAPI uaw_wcsrchr( LPCUWSTR lpString, WCHAR wc );'
     177        $(APPEND) [email protected] 'LPSTR WINAPI lstrcat( LPSTR lpString1, LPCSTR lpString2 );'
     178        $(APPEND) [email protected] 'int WINAPI lstrcmp( LPCSTR lpString1, LPCSTR lpString2 );'
     179        $(APPEND) [email protected] 'int WINAPI lstrcmpi( LPCSTR lpString1, LPCSTR lpString2 );'
     180        $(APPEND) [email protected] 'LPSTR WINAPI lstrcpy( LPSTR lpString1, LPCSTR lpString2 );'
     181        $(APPEND) [email protected] 'LPSTR WINAPI lstrcpyn( LPSTR lpString1, LPCSTR lpString2, int iMaxLength );'
     182        $(APPEND) [email protected] 'int WINAPI lstrlen( LPCSTR lpString );'
     183        $(SED) -f kPrf2WinApi-gencode.sed --output $@ [email protected]
     184        $(RM) -f [email protected]
     185
     186kPrf2WinApiWrappersImp-$(BUILD_TARGET_ARCH).def:
     187        $(RM) -f $@
     188        $(PATH_TOOL_$(TEMPLATE_kStuff_TOOL.win.$(BUILD_TARGET_ARCH))_BIN)/dumpbin.exe /EXPORTS /OUT:[email protected] $(PATH_SDK_WINPSDK_LIB)/Kernel32.lib
     189        $(SED) -f kPrf2WinApi-dumpbin.sed --output [email protected] [email protected]
     190        $(APPEND) $@ 'LIBRARY kPrf2WinApiWrappers'
     191        $(APPEND) $@ 'EXPORTS'
     192        $(SED) -f kPrf2WinApi-genimp.sed --append $@ [email protected]
     193        $(RM) -f [email protected] [email protected]
     194endif
    128195
    129196#
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette