15#define DPFLTR_ERROR_LEVEL 0
43 xprintf(
"GetComputerNameA returned: '%s'\n",
buf);
49 if (p_GetComputerNameA ==
NULL)
63 xprintf(
"p_GetComputerNameA returned: '%s'\n",
buf);
71 GUID guid = { 0x11223344, 0x5566, 0x7788 };
82 xprintf(
"SHStringFromGUIDA failed (%d)\n",
r);
86 xprintf(
"SHStringFromGUIDA returned: '%s'\n",
buf);
92 if (p_SHStringFromGUIDA ==
NULL)
102 xprintf(
"p_SHStringFromGUIDA failed (%d)\n",
r);
106 xprintf(
"p_SHStringFromGUIDA returned: '%s'\n",
buf);
114 xprintf(
"Normal import (kernel32!GetComputerNameA)\n");
116 xprintf(
"\nOrdinal import (shlwapi!#23)\n");
std::map< E_MODULE, HMODULE > mod
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
GLdouble GLdouble GLdouble r
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP int __cdecl vprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static LPSTR PULONG lpnSize
BOOL WINAPI SHIM_OBJ_NAME() GetComputerNameA(LPSTR lpBuffer, LPDWORD lpnSize)
void test_normal_imports()
void xprintf(const char *fmt,...)
NTSYSAPI ULONG NTAPI vDbgPrintEx(_In_ ULONG ComponentId, _In_ ULONG Level, _In_z_ PCCH Format, _In_ va_list ap)
INT WINAPI SHStringFromGUIDA(REFGUID, LPSTR, INT)
#define DPFLTR_ERROR_LEVEL
void test_ordinal_imports()
DWORD WINAPI GetLastError(void)
void int int ULONGLONG int va_list * ap
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level