search for: createevent

Displaying 20 results from an estimated 22 matches for "createevent".

2005 Nov 26
1
Another patch of win32-service for nice startup.
...tatus(SERVICE_RUNNING, NO_ERROR, 0, 0); @@ -241,9 +252,9 @@ } #endif - // Create Thread for service main - hThread = CreateThread(NULL,0,ThreadProc,0,0,&ThreadId); - if(hThread == INVALID_HANDLE_VALUE){ + // Create the event to signal the service to start. + hStartEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + if(hStartEvent == NULL){ strcpy(error,ErrorDescription(GetLastError())); ErrorStopService(); rb_raise(cDaemonError,error); @@ -257,11 +268,20 @@ rb_raise(cDaemonError,error); } - // Wait for SERVICE_RUNNING - while(dwService...
2006 Dec 07
0
Fwd: win32-service problems with patch
...later + if(rb_respond_to(self,rb_intern("service_init"))){ + rb_funcall(self,rb_intern("service_init"),0); + OutputDebugString(TEXT("mainloop: called service init\n")); + } + // Create the event to signal the service to start. hStartEvent = CreateEvent(NULL, TRUE, FALSE, NULL); if(hStartEvent == NULL){ strcpy(error,ErrorDescription(GetLastError())); - ErrorStopService(); rb_raise(cDaemonError,error); } @@ -370,7 +408,6 @@ hStopEvent = CreateEvent(NULL, TRUE, FALSE, NULL); if(hStopEvent == NULL){...
2006 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
...bullist, numlist", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "" }); </script> <script language="javascript" type="text/javascript"> function printfire() { if (document.createEvent) { printfire.args = arguments; var ev = document.createEvent("Events"); ev.initEvent("printfire", false, true); dispatchEvent(ev); } } function set_content_and_editor_variabl...
2001 Nov 23
0
eval.c: possible issue with profiling for Windows
...le problem with the "wait" parameter for the profiler thread: static void R_InitProfiling(char * filename, int append, double dinterval) { int wait; Here is the (automatic) variable. HANDLE Proc = GetCurrentProcess(); .......... wait = interval/1000; if(!(ProfileEvent = CreateEvent(NULL, FALSE, FALSE, NULL)) || (_beginthread(ProfileThread, 0, &wait) == -1)) Here the address of wait is given to the thread R_Suicide("unable to create profiling thread"); R_Profiling = 1; Here you leave your function, invalidating "wait" by freeing its memor...
2007 Aug 06
0
win32-changenotify and events
...way that events are handled in win32-changenotify, and I wanted to verify that they were both appropriate and sensical. First, win32-changenotify now requires win32-event. In the constructor, if an event isn''t explicitly passed, a new Win32::Event object is created (instead of calling CreateEvent directly). Then, in the ChangeNotify#wait method, I manually set the event''s signaled state to true when it hits WAIT_OBJECT_0. Does that seem appropriate? Here''s a quick sample program I used: # test.rb event = Win32::Event.new(''test'') p event.signaled? # f...
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...call ReportSvcStatus() with // SERVICE_START_PENDING. If initialization fails, call // ReportSvcStatus with SERVICE_STOPPED. // Create an event. The control handler function, SvcCtrlHandler, // signals this event when it receives the stop control code. - ghSvcStopEvent = CreateEvent ( - NULL, - TRUE, - FALSE, - NULL - ); + ghSvcStopEvent = CreateEvent ( + NULL, + TRUE, + FALSE, + NULL + ); if (ghSvcStopEvent == NULL) { ReportSvcStatus ( - SERVICE_STOPPED, - NO_ERROR, - 0 - ); + SERVICE_STOPPED, +...
2012 Nov 27
0
Syslinux-6.00-pre2
...slinux into elflink Merge branch 'hexdump' of git://git.zytor.com/users/sha0/syslinux into elflink Merge branch 'strerror-for-mfleming' of git://github.com/geneC/syslinux into elflink efi: Fill out writechr() implementation efi: Pass correct pointer to BS->CreateEvent() efi: Return a sensible error code to the firmware... menu: Inherit parent menu title mk: Add Makefile variable for python efi: Set the current working directory on startup ldlinux: Delete inaccurate 'insufficient memory' message ldlinux: Delete dead cod...
2006 May 21
6
Possible problems with EventLog#write
Hi, I''ve got EventLog#write and EventLog.add_event_source methods done. Well, I *think* they''re done, but I can''t get the data (text) to work properly, and I''m not sure if it''s a bug in my .mc file, the add_event_source method, the write method, or just a goof in my test file. The source, category and event id seem to be ok. However, the
2008 Mar 21
4
Prototype.js event.stop(event) FF2 not working
stop: function(event) { if (event.preventDefault) { event.stopPropagation(); event.preventDefault(); } else { event.returnValue = false; event.cancelBubble = true; } } /* br original stop: function(event) { Event.extend(event); event.preventDefault(); event.stopPropagation(); event.stopped = true; } */ };
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...call ReportSvcStatus() with // SERVICE_START_PENDING. If initialization fails, call // ReportSvcStatus with SERVICE_STOPPED. // Create an event. The control handler function, SvcCtrlHandler, // signals this event when it receives the stop control code. - ghSvcStopEvent = CreateEvent ( - NULL, - TRUE, - FALSE, - NULL - ); + ghSvcStopEvent = CreateEvent ( + NULL, + TRUE, + FALSE, + NULL + ); if (ghSvcStopEvent == NULL) { ReportSvcStatus ( - SERVICE_STOPPED, - NO_ERROR, - 0 - ); + SERVICE_STOPPED, +...
2016 Feb 28
0
[PATCH 0/1] UEFI UDP/TFTP
...DP_IO)); + if(!udp_io) + goto bail; + + udp_io->b = b; + + udp = (EFI_UDP4 *)b->this; + udp_io->Protocol_Udp4 = udp; + + socket->net.efi.context = udp_io; + + // + // Create the timer used to time out transmit, receive, and get map events + // + status = uefi_call_wrapper(BS->CreateEvent, 5, + EVT_TIMER, + TPL_CALLBACK, + NULL, + NULL, + &udp_io->Timeout_Timer + ); + if (EFI_ERROR (status)) + goto bail; + + // + // Create the event to signal when the send/receive callback function ends + // correctly. + // + status = uefi_ca...
2013 Oct 11
0
Wine release 1.7.4
...or (Coverity). wintrust: Fixed some memory leaks (Coverity). msi: Fixed a memory leak in an error case (Coverity). Michael Stefaniuc (8): tests: Use the explicit LoadLibraryA function. qedit/tests: Use the W version of FindResource(). iphlpapi/tests: Use the W form of CreateEvent(). msvcr90/tests: Use the W form of CreateEvent(). windowscodecs/tests: Use the W version of GetObject(). tests: Readying some tests for the compilation with -D__WINESRC__. tests: Compile the tests by default with -D__WINESRC__. comctl32/tests: comctl32.dll is already...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...cument.documentElement.scrollTop || document.body.scrollTop)) + (docElement.scrollTop || body.scrollTop) - + (docElement.clientTop || 0)) }; }, @@ -3840,7 +3923,7 @@ Event.extend = (function() { }; } else { - Event.prototype = Event.prototype || document.createEvent("HTMLEvents").__proto__; + Event.prototype = Event.prototype || document.createEvent("HTMLEvents")['__proto__']; Object.extend(Event.prototype, methods); return Prototype.K; } @@ -3850,9 +3933,9 @@ Object.extend(Event, (function() { var cache = Event.c...
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an element? I think this code works in IE but not FF: myElement.fireEvent(''onclick''); I really only care about IE and FF, but anything else is a bonus. I didn''t see anything in prototype/scriptaculous for this, but I might have missed it. Thanks. Joe Athman
2017 Oct 31
0
Wine release 2.20
...j. mshtml: Update event_info array. mshtml: Use event target vtbl to construct target chain in fire_event_obj. mshtml: Use event target vtbl to set current window event in fire_event_obj. mshtml: Set current event target in fire_event_obj. mshtml: Added IDocumentEvent::createEvent implementation. mshtml: Store DOMEvent instead of nsIDOMEvent in HTMLEventObj. mshtml: Store event id in DOMEvent. mshtml: Pass DOMEvent instead of event id to fire_event_obj. mshtml: Store event target in DOMEvent. mshtml: Pass DOMEvent to call_event_handlers. m...
2016 Feb 24
6
[PATCH 2/5] ntfs: remove unused variable and have ntfssect use char API calls
The variable 'ok' is never used and generates a warning. Remove it. Also ntfssect.c is designed to be compiled in non Unicode mode when using MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use of 'A' API calls) so that it doesn't break when compiled in Unicode mode, which is what Rufus uses with MSVC. -------------- next part --------------
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...#ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>723</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-07 16:47:19...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...CROLLWIN_PAGEDOWN => Wx::ScrollWinEvent, + Wx::EVT_SCROLLWIN_THUMBTRACK => Wx::ScrollWinEvent, + Wx::EVT_SCROLLWIN_THUMBRELEASE => Wx::ScrollWinEvent, + Wx::EVT_ACTIVATE => Wx::ActivateEvent, + Wx::EVT_ACTIVATE_APP => Wx::ActivateEvent, + Wx::EVT_CREATE => Wx::WindowCreateEvent, + Wx::EVT_DESTROY => Wx::WindowDestroyEvent, + Wx::EVT_MENU_OPEN => Wx::MenuEvent, + Wx::EVT_MENU_CLOSE => Wx::MenuEvent, + Wx::EVT_MENU_HIGHLIGHT => Wx::MenuEvent, + Wx::EVT_CONTEXT_MENU => Wx::ContextMenuEvent, + Wx::EVT_AUI_PANE_BUTTON => Wx::AuiManagerEvent,...
2013 Jun 20
9
Syslinux 6.00 released
...ject directory Makefile.private: Update for new per-firmware object directories Makefile: Every invocation of make needs access to syslinux.mk Makefile: Add upload targets to $(private-targets) efi: Fill out writechr() implementation efi: Pass correct pointer to BS->CreateEvent() efi: Return a sensible error code to the firmware... efi: Set the current working directory on startup Merge tag 'syslinux-5.00-pre10' into for-hpa/elflink/firmware Makefile: Move Makefile.private inclusion to change default target efi: Consume unprocessed us...