Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 2 May 2005 11:17:02 -0700,    group: microsoft.public.dotnet.myservices        back       


Create a Service from VB.NET Code   
Here is what I have so far!

declare function OpenSCManager & CreateService in "advapi32.dll" 
Ohandle = OpenSCManager(... 
SHandle = CreateService(... 
error = GetLasError( ) 

I am getting an "ERROR 126 The specified module could not be found." 

Anybody have any examples on how to do this?

Help????
date: Mon, 2 May 2005 11:17:02 -0700   author:   Bob Alvarado-QC-AZ

Re: Create a Service from VB.NET Code   
Bob Alvarado-QC-AZ wrote:
> Here is what I have so far!
> 
> declare function OpenSCManager & CreateService in "advapi32.dll" 
> Ohandle = OpenSCManager(... 
> SHandle = CreateService(... 
> error = GetLasError( ) 
> 
> I am getting an "ERROR 126 The specified module could not be found." 
> 
> Anybody have any examples on how to do this?
> 
> Help????

Well, I guess you could use Interop, and call the Win32 API directly if 
you prefer.

Or you could check the .NET docs for the classes it provides to assist 
with this.

Here is a walkthrough.
http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/01/12/NetServ/toc.asp
also...
http://samples.gotdotnet.com/QuickStart/howto/default.aspx?url=/quickstart/howto/doc/SimpleService.aspx
date: Tue, 03 May 2005 12:12:00 -0700   author:   Lee Gillie

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us