credprompt.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include <windows.h>
  2. //is_empty_or_whitespace
  3. DECLSPEC_IMPORT int __cdecl MSVCRT$iswspace(wint_t _C);
  4. //EnumWindowsProc
  5. DECLSPEC_IMPORT int __cdecl MSVCRT$wcscmp(const wchar_t* _Str1, const wchar_t* _Str2);
  6. DECLSPEC_IMPORT int WINAPI USER32$GetClassNameW(HWND hWnd, LPWSTR lpClassName, int nMaxCount);
  7. DECLSPEC_IMPORT BOOL WINAPI USER32$PostMessageW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
  8. //PromptWithTimeout
  9. DECLSPEC_IMPORT VOID WINAPI KERNEL32$Sleep (DWORD dwMilliseconds);
  10. DECLSPEC_IMPORT BOOL WINAPI USER32$EnumWindows(WNDENUMPROC lpEnumFunc, LPARAM lParam);
  11. //PromptForCreds
  12. DECLSPEC_IMPORT int __cdecl MSVCRT$_snwprintf(wchar_t* _Dst, size_t _MaxCount, const wchar_t* _Format, ...);
  13. DECLSPEC_IMPORT BOOL WINAPI SECUR32$GetUserNameExW(EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize);
  14. DECLSPEC_IMPORT DWORD WINAPI CREDUI$CredUIPromptForWindowsCredentialsW(PCREDUI_INFOW pUiInfo, DWORD dwAuthError, ULONG *pulAuthPackage, LPCVOID pvInAuthBuffer, ULONG ulInAuthBufferSize, LPVOID *ppvOutAuthBuffer, ULONG *pulOutAuthBufferSize, BOOL *pfSave, DWORD dwFlags);
  15. DECLSPEC_IMPORT BOOL WINAPI CREDUI$CredUnPackAuthenticationBufferW(DWORD dwFlags, PVOID pAuthBuffer, DWORD cbAuthBuffer, LPWSTR pszUserName, DWORD *pcchMaxUserName, LPWSTR pszDomainName, DWORD *pcchMaxDomainName, LPWSTR pszPassword, DWORD *pcchMaxPassword);
  16. DECLSPEC_IMPORT BOOL WINAPI CREDUI$CredPackAuthenticationBufferW(DWORD dwFlags, LPWSTR pszUserName, LPWSTR pszPassword, PBYTE pPackedCredentials, DWORD *pcbPackedCredentials);
  17. DECLSPEC_IMPORT HANDLE WINAPI KERNEL32$CreateThread(LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
  18. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$SetEvent(HANDLE hEvent);
  19. DECLSPEC_IMPORT DWORD WINAPI KERNEL32$WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds);
  20. DECLSPEC_IMPORT HANDLE WINAPI KERNEL32$CreateEventW(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, LPCWSTR lpName);
  21. //DECLSPEC_IMPORT void* __cdecl MSVCRT$memset(void* _Dst, int _Val, size_t _Size);
  22. DECLSPEC_IMPORT void WINAPI OLE32$CoTaskMemFree(LPVOID pv);
  23. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$TerminateThread(HANDLE hThread, DWORD dwExitCode);
  24. DECLSPEC_IMPORT BOOL WINAPI KERNEL32$CloseHandle(HANDLE hObject);
  25. //DECLSPEC_IMPORT void __cdecl MSVCRT$free(void* _Block);
  26. DECLSPEC_IMPORT size_t __cdecl MSVCRT$wcslen(const wchar_t* _Str);
  27. DECLSPEC_IMPORT void* __cdecl MSVCRT$malloc(size_t _Size);
  28. DECLSPEC_IMPORT HWND USER32$GetForegroundWindow();
  29. //bofstart + internal_printf + printoutput
  30. WINBASEAPI void *__cdecl MSVCRT$calloc(size_t number, size_t size);
  31. WINBASEAPI int WINAPI MSVCRT$vsnprintf(char* buffer, size_t count, const char* format, va_list arg);
  32. WINBASEAPI void __cdecl MSVCRT$memset(void *dest, int c, size_t count);
  33. WINBASEAPI void* WINAPI MSVCRT$memcpy(void* dest, const void* src, size_t count);
  34. WINBASEAPI HANDLE WINAPI KERNEL32$GetProcessHeap();
  35. WINBASEAPI LPVOID WINAPI KERNEL32$HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
  36. WINBASEAPI void __cdecl MSVCRT$free(void *memblock);
  37. WINBASEAPI BOOL WINAPI KERNEL32$HeapFree(HANDLE, DWORD, PVOID);