SendMessageCallbackA call method
Related code:
.Version2 .DLLOrder Send a message to return_, Integer type, "", "SendMessageCallbackA", , SendMessageCallback, the biggest specificity of this function is that it can be returned immediately. After the target window function is executed, the result will be returned as a callback function. TRUE means success, and FALSE means failure. GetLastError will be set . Parameters window handle, integer type, hwnd, the handle of the window to receive the message . Parameters Message identifier, integer type, , wmsg, message identifier . Parameters Message 1, integer type, wParam, depending on the message . Parameters Message 2, integer type, , lParam, depending on the message . Parameters Specify the function address, integer type, lpResultCallBack, and specify the function address. Get the AddressOf operator in vb5 . Parameters Custom value, integer type, , dwData, user-defined value 2. SendNotifyMessageA call method . Version 2 .DLL command sends notification message_, integer type, "", "SendNotifyMessageA", , SendNotifyMessage, sends a message to the window. If the target window is in the same thread as the caller, this function will be represented as the SendMessage function. And unless the message is processed, the function will not return. If the target window belongs to a different thread, the function will immediately return Long, TRUE means success, and FALSE means an error. GetLastError will be set . Parameters window handle, integer type, , hwnd, handle of a window used to receive messages . Parameters identifier, integer type, wmsg, message identifier . Parameters Message 1, integer type, wParam, the specific decision is determined by the message . Parameters Message 2, integer type, , lParam, the specific decision is determined by the message 3. SendMessageTimeoutA call method . Version 2 .DLL command sends messages synchronously_, integer type, "", "SendMessageTimeoutA", , SendMessageTimeout,Long,Return when successfulTRUE,Return on failureFALSE。Will setGetLastError .parameter Window handle, Integer type, , hwnd,A handle to a window to receive a message .parameter Identifier, Integer type, , msg,information的Identifier .parameter information1, Integer type, , wparam,由information决定 .parameter information2, Integer type, , lparam,由information决定 .parameter type, Integer type, , fuflags,One or more of the following constantsSMTO_ABORTIFHUNGIf the target process hangs,The function returns immediately .parameter Timeout value, Integer type, , utimeout,Timeout value,In milliseconds .parameter result, Integer type, , lpdwresult,用于装载函数result的一个变量
The above is all the content of this knowledge point. Thank you for your support.