亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? writing nt service using vb6-vb5.htm

?? VB6實現Windows服務
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
            way to make the events in Event Viewer show up as the APP name 
            instead of VBRuntime?<BR><SPAN class=A>A:</SPAN> Of course, yes. For 
            example, see the solution in <A 
            href="http://www.fawcette.com/archives/premier/mgznarch/vbpj/2001/09sep01/lj0109/lj0109-1.asp" 
            target=_blank>this article</A>. The code for the article you can 
            download <A 
            href="http://mvps.org/st-software/Code/WriteEventLogsCode_Mod1.zip" 
            target=_blank>here</A>.<BR><BR><SPAN class=Q>Q:</SPAN> I have run 
            the ServiceSampleControl.vbp and installed the service, and then 
            tried starting the service but it didn't not start. When running the 
            ServiceSample.vbp the error states that it must be started as a 
            service.<BR><SPAN class=A>A:</SPAN> Did you try starting 
            SvSampleControl.exe? By this sample design, the service program 
            (SvSample.exe) must be in the same directory as the control program 
            (SvSampleControl.exe) or its project (ServiceSampleControl.vbp), if 
            you prefer starting it in IDE. Because the project of the control 
            program located in the separate directory, the service executable 
            was not found. See System event log - this fact must be reflected 
            there. Of course, this behaviour may be changed by rewriting some 
            bytes in the control program.<BR><BR><SPAN class=Q>Q:</SPAN> Is it 
            possible in to turn on "Allow service to interact with 
            Desktop"?.<BR><SPAN class=A>A:</SPAN> Yes, it is possible. When you 
            call CreateService or ChangeServiceConfig functions, pass this value 
            to dwServiceType parameter: <BR><PRE>SERVICE_WIN32_OWN_PROCESS Or SERVICE_INTERACTIVE_PROCESS

Const SERVICE_WIN32_OWN_PROCESS = &amp;h10&amp;
Const SERVICE_INTERACTIVE_PROCESS = &amp;h100&amp;
</PRE><SPAN class=Q>Q:</SPAN> Is it possible to start a service as 
            another user (administrator) with "Interact with Desktop"?<BR><SPAN 
            class=A>A:</SPAN> No, it is impossible, only LocalSystem services 
            can interact with desktop. It is security feature.<BR>Usually in 
            this situation programmers divide an application into two parts: the 
            service running under some user account with sufficient rights 
            provides main work and network communication; and ordinary 
            auto-start executable provides interaction with current user. These 
            two parts interact each other using one of known methods: COM, named 
            pipes, shared memory etc. Using any of these methods is not simple 
            in conformity with services because they must be modified to 
            overcome security barriers.<BR><BR><SPAN class=Q>Q:</SPAN> Have you 
            noticed any problems with using your service with local DDE 
            application? When that service is running, local DDE application 
            (and some installs written with InstallShield) hang. The process 
            exists on the machine, but the exe does not run. As soon as I issue 
            a STOP to the serivce, the local DDE application begins.<BR><SPAN 
            class=A>A:</SPAN> Try to replace all wait functions 
            (WaitForSingleObject and others) with my non-blocking equivalent 
            function <A 
            href="http://www.smsoft.ru/en/vbwait.htm">MsgWaitObj</A>. Using 
            blocking versions of wait functions in VB program is not correct 
            even if the program have no visible interface (don't touch 
            WaitForSingleObject in NTService.bas: using this function in service 
            thread is lawful, but DoEvents from MsgWaitObj may be not 
            thread-safe, and used there API functions are not declared in type 
            library).<BR><BR>Note: updated source code of service sample is 
            available for downloading, it takes into account above-mentioned 
            considerations.<BR><BR><SPAN class=Q>Q:</SPAN> I want to customize 
            your "NT Service module" application for running my .exe as a NT 
            service. Is there anything I should worry about during 
            customization?<BR><SPAN class=A>A:</SPAN> The first rule for 
            service: it must respond to Stop request as soon as possible. If 
            your program performs long operations, insert intermediate checks 
            for hStopPendingEvent event: <PRE>If WaitForSingleObject(hStopPendingEvent, 0&amp;) = 0&amp; Then ... cancel operation
</PRE>The next rule: initialization code must be brief. That is the 
            program must execute <PRE>SetServiceState SERVICE_RUNNING
</PRE>line within 1-2 seconds.<BR><BR>The sample introduces two 
            different approaches in service design.<BR>1. The program uses 
            objects which respond to external events (for example, you are 
            writing Internet server, which responds to data arrival in socket). 
            You have initialization code, termination code and no code in main 
            loop. The interval for main loop you may set to INFINITE.<BR>2. Your 
            program performs periodic tasks (for example, you are writing time 
            scheduler). You have no initialization code (or very brief 
            assignment initial values for variables at that place), no 
            termination code and all functional code in main loop.<BR>Of course, 
            you may combine these approaches.<BR><BR>The next thing is security. 
            If the service runs in LocalSystem account, it can't access network 
            shares at all, if it runs in some User account, it can access secure 
            objects in accordance with User rights. If your service is COM 
            server, you must use DCOM to access it from user's application even 
            from the same computer. You must add and modify some registry 
            settings to make COM service work properly.<BR><BR><SPAN 
            class=Q>Q:</SPAN> I try to write some value to the registry 
            (HKCU\...) from the service, but registry editor states that nothing 
            was written.<BR><SPAN class=A>A:</SPAN> Your problem is, the service 
            runs in context of another account (typically, "LocalSystem"). That 
            is, HKCU for your interactive session and for service point to 
            different registry hives. Use "HKLM\Software\Your Company\Your 
            Program" key to store data instead. Or start your service in context 
            of your account (it is adjustable in Control 
          Panel\Services).<BR><BR></TD></TR>
        <TR>
          <TD class=WindowBackground>
            <TABLE class=Combo summary="">
              <TBODY>
              <TR>
                <TD class=ComboPart>
                  <TABLE class=ComboPart1 summary="">
                    <TBODY>
                    <TR>
                      <TD class=ComboBorderH colSpan=5></TD></TR>
                    <TR>
                      <TD class=ComboBorderV></TD>
                      <TD class=ComboImage><IMG height=16 alt="" hspace=2 
                        src="Writing NT service using VB6-VB5.files/save.gif" 
                        width=16 align=top vspace=1 border=0></TD>
                      <TD class=ComboText><A name=Download>Download source 
                        code</A></TD>
                      <TD class=ComboImage><IMG height=19 alt="" hspace=0 
                        src="Writing NT service using VB6-VB5.files/comboarrow.gif" 
                        width=17 align=right border=0></TD>
                      <TD class=ComboBorderV></TD></TR>
                    <TR>
                      <TD class=ComboBorderH 
              colSpan=5></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD class=ComboPart>
                  <TABLE class=ComboPart1 summary="">
                    <TBODY>
                    <TR>
                      <TD class=ComboBorderHD colSpan=4></TD></TR>
                    <TR>
                      <TD class=ComboBorderVD></TD>
                      <TD class=ComboImage><A 
                        href="http://www.smsoft.ru/files/vb6svc.zip"><IMG 
                        height=16 alt="" hspace=2 
                        src="Writing NT service using VB6-VB5.files/save.gif" 
                        width=16 align=top vspace=1 border=0></A></TD>
                      <TD class=ComboText><A 
                        href="http://www.smsoft.ru/files/vb6svc.zip">vb6svc.zip</A> 
                        (34 kB, English interface)</TD>
                      <TD class=ComboBorderVD></TD></TR>
                    <TR>
                      <TD class=ComboBorderHD 
              colSpan=4></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
    <TD class=FrameR></TD></TR>
  <TR>
    <TD class=FrameDL></TD>
    <TD class=FrameD></TD>
    <TD class=FrameDR></TD></TR></TBODY></TABLE>
<P class=Centered><IMG height=20 alt="" 
src="Writing NT service using VB6-VB5.files/bar2.gif" width=500></P>
<TABLE class=CaptionTable align=center summary="">
  <TBODY>
  <TR>
    <TD class=FrameUL></TD>
    <TD class=FrameU></TD>
    <TD class=FrameUR></TD></TR>
  <TR>
    <TD class=FrameL></TD>
    <TD>
      <TABLE class=Footnote summary="">
        <TBODY>
        <TR>
          <TD class=FootnoteImage width=24><IMG height=24 alt="" 
            src="Writing NT service using VB6-VB5.files/refresh.gif" width=24 
            align=top></TD>
          <TD class=FootnoteText noWrap colSpan=6>This page has been updated 
            last time on</TD>
          <TD class=Datestamp noWrap><!-- datestamp:begin -->06-Jun-2004<!-- datestamp:end --></TD></TR><!--      <tr>                   <td class="FootnoteImage" colspan="6"><img src="/cgi-bin/Count.cgi?df=smsofte.dat&amp;dd=B" align="top" alt=""></td>                   <td class="FootnoteText">visitors since</td>                   <td class="Datestamp">30-Nov-1999</td>                  </tr>            -->
        <TR>
          <TD class=CopyrightText noWrap colSpan=8>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕欧美日本乱码一线二线 | 日韩欧美色电影| 久久精品欧美一区二区三区麻豆| 亚洲人妖av一区二区| 精品亚洲成a人在线观看| 欧美无砖专区一中文字| 亚洲女同女同女同女同女同69| 中文字幕不卡一区| 丰满少妇久久久久久久| 国产欧美精品一区aⅴ影院 | www.亚洲激情.com| 久久你懂得1024| 国产精品自拍一区| 欧美日韩在线精品一区二区三区激情| 亚洲欧洲日产国产综合网| 成人18视频日本| 国产精品夫妻自拍| 欧美性受极品xxxx喷水| 美脚の诱脚舐め脚责91| 精品国产3级a| 欧美在线一区二区| 亚洲欧洲精品天堂一级| 国产成都精品91一区二区三| 国产日韩高清在线| 色综合视频在线观看| 国产精品久久久久一区二区三区| 成人av网站在线| 亚洲国产一区二区三区青草影视| 91精品综合久久久久久| 国产乱码精品一区二区三区忘忧草 | 欧美一区二区免费| 亚洲一二三四区| 日韩欧美成人激情| 亚洲精品中文在线影院| 精品福利一二区| 欧美日韩激情一区二区| 国产成人av自拍| 激情综合五月天| 亚洲大片精品永久免费| 亚洲蜜臀av乱码久久精品蜜桃| 日韩一区二区三区免费看| 欧美亚洲一区二区在线| 成人免费视频国产在线观看| 国产精品网站在线播放| 91黄色免费版| 日韩欧美一区二区免费| 日韩二区三区在线观看| 亚洲精品乱码久久久久| 97久久超碰国产精品| 国产精品久久久久久久第一福利| 国产一区三区三区| 国产亚洲自拍一区| 97久久精品人人澡人人爽| 一区二区三区四区在线播放| 欧美日韩在线亚洲一区蜜芽| 日韩中文字幕区一区有砖一区| 欧美一区二区视频在线观看2022 | 欧美一区二区视频在线观看| 青青草成人在线观看| 久久久久久久久久美女| 懂色av一区二区夜夜嗨| 一区二区三区国产| 日韩午夜激情av| 成人h精品动漫一区二区三区| 亚洲免费毛片网站| 亚洲色图都市小说| 97精品国产露脸对白| 一区二区三区在线播| 日韩精品一区二区三区视频在线观看| 国产精品一区免费视频| 最新不卡av在线| 91精品国产欧美一区二区| 成人免费观看av| 琪琪久久久久日韩精品| 国产精品福利电影一区二区三区四区| 欧美日韩免费一区二区三区视频 | 国产精品亚洲午夜一区二区三区| 亚洲婷婷综合久久一本伊一区| 欧美日本乱大交xxxxx| 国产成人久久精品77777最新版本| 一区二区三区精品在线观看| 久久综合久色欧美综合狠狠| 日本伦理一区二区| 国产一区二区三区在线观看免费视频| 一区二区三区高清不卡| 国产精品网站一区| 欧美va在线播放| 色婷婷久久99综合精品jk白丝| 国产综合色精品一区二区三区| 亚洲国产va精品久久久不卡综合| 日本一区二区免费在线| 欧美一级欧美一级在线播放| 色天天综合久久久久综合片| 国产精品2024| 九九热在线视频观看这里只有精品| 亚洲精品成人悠悠色影视| 国产欧美精品一区二区色综合朱莉| 日韩亚洲欧美高清| 欧美美女一区二区在线观看| 色综合天天综合给合国产| 国产精品888| 国产综合一区二区| 美女视频黄 久久| 日本成人中文字幕在线视频| 亚洲国产精品自拍| 一区二区三区免费在线观看| 亚洲欧美精品午睡沙发| 国产精品人人做人人爽人人添| 26uuu国产日韩综合| 欧美不卡视频一区| 欧美大胆一级视频| 日韩精品一区国产麻豆| 欧美电视剧免费观看| 欧美电影免费观看高清完整版在线观看 | 亚洲成人综合在线| 亚洲成av人片| 性做久久久久久免费观看欧美| 亚洲午夜在线电影| 亚洲国产精品综合小说图片区| 亚洲国产成人高清精品| 亚洲成人动漫在线观看| 亚洲成人在线观看视频| 亚洲一区二区在线视频| 亚洲一区国产视频| 男女男精品视频网| 国产在线精品国自产拍免费| 国产成人精品一区二区三区网站观看| 国产精一品亚洲二区在线视频| 国产精品主播直播| 97se亚洲国产综合自在线观| 色8久久精品久久久久久蜜| 欧美日产国产精品| 日韩精品一区二区三区在线观看| 精品美女在线观看| 日本一区二区三区视频视频| 成人欧美一区二区三区白人 | 久久久99免费| 中文字幕中文字幕一区| 一区二区在线观看视频| 日韩精品一区第一页| 国产一区二区三区电影在线观看| 成人国产精品视频| 欧美色欧美亚洲另类二区| 日韩一区二区在线看| 欧美国产禁国产网站cc| 一区二区三区波多野结衣在线观看| 偷拍与自拍一区| 国产精品一区二区在线观看网站| 99免费精品在线| 欧美精品xxxxbbbb| 亚洲国产精品99久久久久久久久| 亚洲国产综合人成综合网站| 久久国产精品99精品国产| 9久草视频在线视频精品| 91精品福利在线一区二区三区| 久久久精品欧美丰满| 亚洲综合免费观看高清完整版| 另类综合日韩欧美亚洲| 97久久久精品综合88久久| 日韩欧美亚洲国产另类| 亚洲欧美日韩系列| 韩国一区二区在线观看| 欧美午夜不卡在线观看免费| 国产人妖乱国产精品人妖| 亚洲成a人v欧美综合天堂下载 | 免费成人在线观看| 色婷婷综合久久久久中文| 久久日一线二线三线suv| 亚洲成a人在线观看| av中文字幕在线不卡| 日韩欧美国产一区二区三区| 亚洲三级电影网站| 国产露脸91国语对白| 欧美色网站导航| 国产精品福利在线播放| 国产乱人伦偷精品视频不卡| 91精品国产综合久久久久久| 亚洲欧美色一区| 国产激情精品久久久第一区二区| 欧美久久一二三四区| 亚洲日本青草视频在线怡红院| 国产成人免费视频网站| 久久一日本道色综合| 日本aⅴ免费视频一区二区三区| 91蜜桃在线免费视频| 国产精品乱人伦一区二区| 黑人巨大精品欧美一区| 欧美成人一级视频| 免费成人在线网站| 日韩一二三区不卡| 免费久久99精品国产| 欧美精品久久天天躁| 性欧美疯狂xxxxbbbb| 欧美日韩一区二区三区高清 | 欧美一区二区视频网站| 天天色 色综合| 337p亚洲精品色噜噜狠狠| 午夜精品一区二区三区电影天堂| 欧美丝袜丝交足nylons图片| 一区二区三区欧美日|