enumsecproducts.h 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. #include <windows.h>
  2. //CheckSecProc
  3. DECLSPEC_IMPORT void * WINAPI KERNEL32$VirtualAlloc (LPVOID lpAddress, SIZE_T dwSize, DWORD flAllocationType, DWORD flProtect);
  4. DECLSPEC_IMPORT int WINAPI KERNEL32$VirtualFree (LPVOID lpAddress, SIZE_T dwSize, DWORD dwFreeType);
  5. DECLSPEC_IMPORT HANDLE WINAPI KERNEL32$CreateToolhelp32Snapshot(DWORD, DWORD th32ProcessID);
  6. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$Process32First(HANDLE hSnapshot, LPPROCESSENTRY32 lppe);
  7. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$Process32Next(HANDLE hSnapshot, LPPROCESSENTRY32 lppe);
  8. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$CloseHandle(HANDLE hObject);
  9. DECLSPEC_IMPORT char* __cdecl MSVCRT$strcpy(char* _Dest, const char* _Source);
  10. DECLSPEC_IMPORT int __cdecl MSVCRT$tolower(int _C);
  11. WINBASEAPI int __cdecl MSVCRT$strcmp(const char *str1, const char *str2);
  12. WINBASEAPI int __cdecl MSVCRT$printf(const char * _Format,...);
  13. //BeaconPrintToStreamW + BeaconOutputStreamW
  14. #define MAX_STRING 8192
  15. INT g_iGarbage = 1;
  16. LPSTREAM g_lpStream = (LPSTREAM)1;
  17. LPWSTR g_lpwPrintBuffer = (LPWSTR)1;
  18. DECLSPEC_IMPORT HRESULT WINAPI OLE32$CreateStreamOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM *ppstm);
  19. WINBASEAPI void *__cdecl MSVCRT$calloc(size_t number, size_t size);
  20. WINBASEAPI int __cdecl MSVCRT$_vsnwprintf_s(wchar_t *buffer, size_t sizeOfBuffer, size_t count, const wchar_t *format, va_list argptr);
  21. WINBASEAPI size_t __cdecl MSVCRT$wcslen(const wchar_t *_Str);
  22. WINBASEAPI void __cdecl MSVCRT$memset(void *dest, int c, size_t count);
  23. WINBASEAPI HANDLE WINAPI KERNEL32$GetProcessHeap();
  24. WINBASEAPI LPVOID WINAPI KERNEL32$HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
  25. WINBASEAPI void __cdecl MSVCRT$free(void *memblock);
  26. WINBASEAPI BOOL WINAPI KERNEL32$HeapFree(HANDLE, DWORD, PVOID);
  27. DECLSPEC_IMPORT int WINAPI KERNEL32$MultiByteToWideChar(UINT CodePage, DWORD dwFlags, _In_NLS_string_(cbMultiByte)LPCCH lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);