mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00

The 'common' library has been removed. The only project that actually used it was metsrv, so the code that metsrv required from common is now directly compiled in as part of that project. The common folder now contains files that are importanta cross all of the projects, with a primary focus on the new "API" style function. What this means is that MetSrv has an API that it exposes through a function pointer that is passed to the extension when it's initialised. This pointer references a structure with all the API functions wired in. This means that: * Extensions don't need to know anything about metsrv at compile time. * The delay loading code can be removed, which was one of the last instances of "metsrv.dll" as a string. * Metsrv.dll no longer exports any functions. More to come.
18 lines
554 B
C
18 lines
554 B
C
#ifndef _METERPRETER_METSRV_PIVOT_TREE_H
|
|
#define _METERPRETER_METSRV_PIVOT_TREE_H
|
|
|
|
#include "common_pivot_tree.h"
|
|
|
|
PivotTree* pivot_tree_create();
|
|
DWORD pivot_tree_add(PivotTree* tree, LPBYTE guid, PivotContext* ctx);
|
|
PivotContext* pivot_tree_remove(PivotTree* tree, LPBYTE guid);
|
|
PivotContext* pivot_tree_find(PivotTree* tree, LPBYTE guid);
|
|
void pivot_tree_traverse(PivotTree* tree, PivotTreeTraverseCallback callback, LPVOID state);
|
|
void pivot_tree_destroy(PivotTree* tree);
|
|
|
|
|
|
#ifdef DEBUGTRACE
|
|
void dbgprint_pivot_tree(PivotTree* tree);
|
|
#endif
|
|
|
|
#endif |