user32/tests: The BSF_SENDNOTIFYMESSAGE flag is not supported on NT4.
This commit is contained in:
parent
e4f7809cc9
commit
43a70a68bc
|
@ -150,23 +150,29 @@ static void test_parameters(PBROADCAST broadcast, const char *functionname)
|
||||||
ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
|
ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
|
||||||
PulseEvent(hevent);
|
PulseEvent(hevent);
|
||||||
|
|
||||||
|
SetLastError( 0xdeadbeef );
|
||||||
recips = BSM_APPLICATIONS;
|
recips = BSM_APPLICATIONS;
|
||||||
ret = broadcast( BSF_POSTMESSAGE|BSF_SENDNOTIFYMESSAGE, &recips, WM_NULL, 100, 0 );
|
ret = broadcast( BSF_POSTMESSAGE|BSF_SENDNOTIFYMESSAGE, &recips, WM_NULL, 100, 0 );
|
||||||
ok(ret==1, "Returned: %d\n", ret);
|
if (ret)
|
||||||
ok(WaitForSingleObject(hevent, 0) != WAIT_OBJECT_0, "Synchronous message sent instead\n");
|
{
|
||||||
PulseEvent(hevent);
|
ok(ret==1, "Returned: %d\n", ret);
|
||||||
|
ok(WaitForSingleObject(hevent, 0) != WAIT_OBJECT_0, "Synchronous message sent instead\n");
|
||||||
|
PulseEvent(hevent);
|
||||||
|
|
||||||
recips = BSM_APPLICATIONS;
|
recips = BSM_APPLICATIONS;
|
||||||
ret = broadcast( BSF_SENDNOTIFYMESSAGE, &recips, WM_NULL, 100, BROADCAST_QUERY_DENY );
|
ret = broadcast( BSF_SENDNOTIFYMESSAGE, &recips, WM_NULL, 100, BROADCAST_QUERY_DENY );
|
||||||
ok(ret==1, "Returned: %d\n", ret);
|
ok(ret==1, "Returned: %d\n", ret);
|
||||||
ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
|
ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
|
||||||
PulseEvent(hevent);
|
PulseEvent(hevent);
|
||||||
|
|
||||||
recips = BSM_APPLICATIONS;
|
recips = BSM_APPLICATIONS;
|
||||||
ret = broadcast( BSF_SENDNOTIFYMESSAGE|BSF_QUERY, &recips, WM_NULL, 100, BROADCAST_QUERY_DENY );
|
ret = broadcast( BSF_SENDNOTIFYMESSAGE|BSF_QUERY, &recips, WM_NULL, 100, BROADCAST_QUERY_DENY );
|
||||||
ok(!ret, "Returned: %d\n", ret);
|
ok(!ret, "Returned: %d\n", ret);
|
||||||
ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
|
ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
|
||||||
PulseEvent(hevent);
|
PulseEvent(hevent);
|
||||||
|
}
|
||||||
|
else /* BSF_SENDNOTIFYMESSAGE not supported on NT4 */
|
||||||
|
ok( GetLastError() == ERROR_INVALID_PARAMETER, "failed with err %u\n", GetLastError() );
|
||||||
|
|
||||||
recips = BSM_APPLICATIONS;
|
recips = BSM_APPLICATIONS;
|
||||||
ret = broadcast( 0, &recips, WM_NULL, 100, 0 );
|
ret = broadcast( 0, &recips, WM_NULL, 100, 0 );
|
||||||
|
|
Loading…
Reference in New Issue