This may not be possible (but maybe it is)
What I would like to do is write a function that would be a wrapper to another function. IE: if I were calling "SetWindowLong(hWnd, nIndex, dwNewLong)" that instead I would write it as "LogFunctionSub(SetWindowLong(hWnd, nIndex, dwNewLong))" which LogFunctionSub would write to a log file the function and parameters passed, and then call the original function I meant to call.
Sort of like logging with CallStk$ except that logs my functions, not functions or API that I call within my function.
Not knowing that I am really calling "SetWindowLong" I was trying to figure out how to know that is what I am calling. I thought about CodePtr(CVQ(SetWindowLong)) but CVQ is limited to 8 bytes, so I wonder is there a way to determine the function I want to call and log it???
CodePtr wants label | functionname | subname
but what are the label | functionname | subname really under the hood?
(This may be my solution if there is one)?????
What I would like to do is write a function that would be a wrapper to another function. IE: if I were calling "SetWindowLong(hWnd, nIndex, dwNewLong)" that instead I would write it as "LogFunctionSub(SetWindowLong(hWnd, nIndex, dwNewLong))" which LogFunctionSub would write to a log file the function and parameters passed, and then call the original function I meant to call.
Sort of like logging with CallStk$ except that logs my functions, not functions or API that I call within my function.
Not knowing that I am really calling "SetWindowLong" I was trying to figure out how to know that is what I am calling. I thought about CodePtr(CVQ(SetWindowLong)) but CVQ is limited to 8 bytes, so I wonder is there a way to determine the function I want to call and log it???
CodePtr wants label | functionname | subname
but what are the label | functionname | subname really under the hood?
(This may be my solution if there is one)?????
Comment