Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mz
  Where is Mz?
 Metro Manila
 Philippines
 Mz
 To: A QP
  Where is A QP?
 JHB
 South Africa
 A QP
 Tags
Subject: RE: Net Start , Net Stop
Thread ID: 50976 Message ID: 51162 # Views: 2 # Ratings: 0
Version: Not Applicable Category: Win32API programming
Date: Thursday, September 09, 2004 9:38:59 AM         
   


> Hi All
> Does anyone know if there is a API call to start and stop a service?
> Thanks
> A

hi,

I have COOKED the contents of NET.EXE assuming that there is a call inside it. however, i havent tested them
yet.

Anyway, try didling on this man...

--- cut here --->
00004D !This program cannot be run in DOS mode.
000270 MSVCRT.dll
00027B ADVAPI32.dll
000288 KERNEL32.dll
000295 NETAPI32.dll
0017C8 t/Ht'Ht Ht
007738 _XcptFilter
007746 __p___initenv
007756 __getmainargs
007772 __setusermatherr
007786 _adjust_fdiv
007796 __p__commode
0077A6 __p__fmode
0077B4 __set_app_type
0077C6 _except_handler3
0077D8 MSVCRT.dll
0077E6 _controlfp
0077F4 RegCloseKey
007802 RegQueryValueExW
007816 RegOpenKeyExW
007826 RegEnumValueW
007834 ADVAPI32.dll
007844 GetCommandLineW
007856 SetThreadLocale
007868 GetSystemDefaultLangID
00788E GetConsoleOutputCP
0078A4 GetExitCodeProcess
0078BA WaitForSingleObject
0078D0 CloseHandle
0078DE GetLastError
0078EE CreateProcessW
007900 GetProfileStringW
007914 WriteProfileStringW
00792A GetDriveTypeW
007938 KERNEL32.dll
007948 NetApiBufferFree
00795C NetapipBufferAllocate
007974 NetApiBufferAllocate
00798C NetApiBufferReallocate
0079A6 NetUseEnum
0079B4 NetUseGetInfo
0079C4 I_NetNameValidate
0079D8 I_NetPathType
0079E8 NetUserGetInfo
0079FA NetWkstaUserGetInfo
007A10 NetWkstaGetInfo
007A22 NetServerEnum
007A32 NetServerGetInfo
007A46 NetShareEnum
007A54 NETAPI32.dll
007A64 WNetCloseEnum
007A74 WNetEnumResourceW
007A88 WNetOpenEnumW
007A98 WNetAddConnection2W
007AAE WNetCancelConnection2W
007AC8 WNetGetLastErrorW
007ADC WNetGetConnectionW
007AFA _snwprintf
007B14 RtlAllocateHeap
007B5A RtlQueryTimeZoneInformation
007B98 _vsnwprintf
007BE6 GetFileType
007C00 WideCharToMultiByte
007C16 WriteConsoleW
007C26 GetStdHandle
007C36 SetLastError
007C46 GetModuleFileNameW
007C5C FormatMessageW
007C6E ReadConsoleW
007C7E SetConsoleMode
007C90 GetConsoleMode
007CA2 PeekConsoleInputW
007CB6 LoadLibraryW
007CC6 FreeLibrary
00A60C exe\net.dbg
--- cut here --->

what is in my mind is this...

since the NET.EXE may execute file mapping via command

NET USE K: \\192.168.0.1\SHAREDFOLDER

the net use is trying to use the API Call of


007A98 WNetAddConnection2W


thus, I assume that the NET START would be on the list...

good day!

-Mz



ENTIRE THREAD

Net Start , Net Stop Posted by A QP @ 9/7/2004 3:18:06 PM
RE: Net Start , Net Stop Posted by Pete Sass @ 9/7/2004 5:04:46 PM
RE: Net Start , Net Stop Posted by Yuri Rubinov @ 9/7/2004 5:41:24 PM
RE: Net Start , Net Stop Posted by Ken Blum @ 9/7/2004 6:02:49 PM
RE: Net Start , Net Stop "Yuri" Posted by Pete Sass @ 9/7/2004 6:46:53 PM
RE: Net Start , Net Stop "Yuri" Posted by Yuri Rubinov @ 9/7/2004 9:48:23 PM
RE: Net Start , Net Stop "Yuri" Posted by Mz @ 9/11/2004 5:41:50 AM
RE: Net Start , Net Stop "Yuri" Posted by Yuri Rubinov @ 9/11/2004 8:12:57 PM
RE: Net Start , Net Stop "A" Posted by A QP @ 9/13/2004 4:42:25 PM
RE: Net Start , Net Stop Posted by Yuri Rubinov @ 9/7/2004 9:43:06 PM
RE: Net Start , Net Stop Posted by Mz @ 9/9/2004 9:38:59 AM