darkone
09-16-2003, 02:18 AM
Yep.. I'm now/finally implementing those :)
typedef struct _VARIABLE_MODULE
{
LPSTR szName;
HMODULE hModule;
LPVOID (* lpGetProc)(LPSTR);
BOOL (* lpInstallMessageVariable)(LPSTR, LPVOID, LPVOID, DWORD, DWORD);
_VARIABLE_MODULE *lpNext;
} VARIABLE_MODULE, *LPVARIABLE_MODULE;
EXPORT BOOL MessageVariableInit(LPVARIABLE_MODULE lpModule)
{
BOOL bResult;
lpModule->szName = "MyVariableTestModule";
// Install variable: 010000L = DT_ANY (any datatype), 4 = Integer, 3 = C-String
bResult = lpModule->lpInstallMessageVariable("test", MessageVariable_TestProc, NULL, 010000L, 3);
return bResult;
}
EXPORT VOID MessageVariableDeInit(LPVARIABLE_MODULE lpModule)
{
}
variable type = %[$cookie]
object type = %[object(arg1)...(argN)]
.. I will post information about object type cookies later today/tomorrow.
typedef struct _VARIABLE_MODULE
{
LPSTR szName;
HMODULE hModule;
LPVOID (* lpGetProc)(LPSTR);
BOOL (* lpInstallMessageVariable)(LPSTR, LPVOID, LPVOID, DWORD, DWORD);
_VARIABLE_MODULE *lpNext;
} VARIABLE_MODULE, *LPVARIABLE_MODULE;
EXPORT BOOL MessageVariableInit(LPVARIABLE_MODULE lpModule)
{
BOOL bResult;
lpModule->szName = "MyVariableTestModule";
// Install variable: 010000L = DT_ANY (any datatype), 4 = Integer, 3 = C-String
bResult = lpModule->lpInstallMessageVariable("test", MessageVariable_TestProc, NULL, 010000L, 3);
return bResult;
}
EXPORT VOID MessageVariableDeInit(LPVARIABLE_MODULE lpModule)
{
}
variable type = %[$cookie]
object type = %[object(arg1)...(argN)]
.. I will post information about object type cookies later today/tomorrow.