findfile.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #include <windows.h>
  2. //BeaconPrintToStreamW + BeaconOutputStreamW
  3. #define MAX_STRING 8192
  4. INT g_iGarbage = 1;
  5. LPSTREAM g_lpStream = (LPSTREAM)1;
  6. LPWSTR g_lpwPrintBuffer = (LPWSTR)1;
  7. DECLSPEC_IMPORT HRESULT WINAPI OLE32$CreateStreamOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM *ppstm);
  8. WINBASEAPI void *__cdecl MSVCRT$calloc(size_t number, size_t size);
  9. WINBASEAPI int __cdecl MSVCRT$_vsnwprintf_s(wchar_t *buffer, size_t sizeOfBuffer, size_t count, const wchar_t *format, va_list argptr);
  10. WINBASEAPI size_t __cdecl MSVCRT$wcslen(const wchar_t *_Str);
  11. WINBASEAPI void __cdecl MSVCRT$memset(void *dest, int c, size_t count);
  12. WINBASEAPI HANDLE WINAPI KERNEL32$GetProcessHeap();
  13. WINBASEAPI LPVOID WINAPI KERNEL32$HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
  14. WINBASEAPI void __cdecl MSVCRT$free(void *memblock);
  15. WINBASEAPI BOOL WINAPI KERNEL32$HeapFree(HANDLE, DWORD, PVOID);
  16. DECLSPEC_IMPORT int WINAPI KERNEL32$MultiByteToWideChar(UINT CodePage, DWORD dwFlags, _In_NLS_string_(cbMultiByte)LPCCH lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);
  17. //SearchFileForKeyword + keywordMatches
  18. WINBASEAPI int WINAPI MSVCRT$strcmp(const char* str1, const char* str2);
  19. WINBASEAPI FILE* WINAPI MSVCRT$fopen(const char* filename, const char* mode);
  20. WINBASEAPI int __cdecl MSVCRT$fseek(FILE *_File, long _Offset, int _Origin);
  21. WINBASEAPI long __cdecl MSVCRT$ftell(FILE *_File);
  22. WINBASEAPI size_t __cdecl MSVCRT$fread(void * _DstBuf, size_t _ElementSize, size_t _Count, FILE * _File);
  23. WINBASEAPI int __cdecl MSVCRT$fclose(FILE *_File);
  24. WINBASEAPI char* WINAPI MSVCRT$strstr(const char* haystack, const char* needle);
  25. WINBASEAPI void *__cdecl MSVCRT$malloc(size_t _Size);
  26. //WINBASEAPI void __cdecl MSVCRT$free(void *_Memory);
  27. WINBASEAPI char* WINAPI MSVCRT$_strdup(const char* str);
  28. WINBASEAPI int WINAPI MSVCRT$tolower(int c);
  29. WINBASEAPI size_t WINAPI MSVCRT$strlen(const char* str);
  30. WINBASEAPI int WINAPI MSVCRT$strncmp(const char* str1, const char* str2, size_t n);
  31. WINBASEAPI char* WINAPI MSVCRT$strncpy(char* dest, const char* src, size_t n);
  32. DECLSPEC_IMPORT char* WINAPI MSVCRT$strtok(char* str, const char* delimiters);
  33. //SearchFilesRecursive
  34. DECLSPEC_IMPORT HANDLE WINAPI KERNEL32$FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData);
  35. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$FindNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATAA lpFindFileData);
  36. DECLSPEC_IMPORT DWORD WINAPI KERNEL32$GetLastError(void);
  37. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$FindClose(HANDLE hFindFile);
  38. //DECLSPEC_IMPORT int WINAPI KERNEL32$MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);
  39. WINBASEAPI char* WINAPI MSVCRT$strcpy(char* dest, const char* src);
  40. WINBASEAPI char* WINAPI MSVCRT$strcat(char* dest, const char* src);
  41. WINBASEAPI int WINAPI MSVCRT$sprintf(char* buffer, const char* format, ...);