Add Win32 service support (closes #2) #3
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#2 Add support for installation as a system service
luca0N/Sticky
#4 Implement automatic Win32 service installation
luca0N/Sticky
Reference
luca0N/Sticky!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev_svc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add code to allow the resulting executable to be installed as a Win32 service.
e37ab56454ddb3fb4b23ddb3fb4b23151ec1c2afThe previous force-push operations were made to correct leftover commented code and the license in the source header, respectively.
Some things to iron out before merging this pull request.
@ -95,4 +116,0 @@CALL printStdDevMOV EAX, 02hJMP .exitAn unintended side effect from these changes was that this helpful message (although vague) was removed.
@ -46,0 +67,4 @@POP EBPRETrunStandalone:This name is misleading, as this routine is called from both
_startandsvc.asm.@ -0,0 +26,4 @@GLOBAL svcCtrlHandlerSECTION .rdataSTR_SVC_NAME: DB "Sticky", 00hSTR_SVC_NAMEis redeclared here (frommain.asm). It'd be nice if it was declared on a single source file.@ -0,0 +41,4 @@MOV DWORD [ESP+1Ch], EAXCMP EAX, 00hJNE .exitINT 03h ; TODO: add proper err handlingAs the
TODOcomment suggests, better error handling should be added here.@ -0,0 +52,4 @@MOV DWORD [ESP+0Ch], 00h ; dwWin32ExitCodeMOV DWORD [ESP+10h], 00h ; dwServiceSpecificExitCodeMOV DWORD [ESP+14h], 00h ; dwCheckPointMOV DWORD [ESP+18h], 00h ; dwWaitHintThis struct can be moved to the
rdatasection.@ -0,0 +68,4 @@MOV EBP, ESPNOP ; this program runs too quickly; for any signals to be handledComment indentation is all over the place.
@luca0N wrote in #3 (comment):
Item no. 2 in the checklist has been removed as it is outside the scope of this pull request. It will be moved to an issue so that it can be evaluated for a potential future pull request.
Ready to merge once all review comments are resolved.
c1cc5897a3c4973af852c4973af8521bef15eaadThe two previous force-push operations were made to fix build errors.