|
i guesss you need to put this in the environment variable.
set EPCOROOT = \Symbian\OS7_00871\bin\TechView
this is an example, yours may be different.
Any ways, i havent worked on symbian anytime, but have some personal knowledge on it.
I knew that you are working on symbian by the kind of questions you were posting.
Regards.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Hi all,
someone has an idea on how to manage network connection by script or command line?
I need to connect to/disconnect from different network segments, but I could not.
I found a script on msdn that enumerates my network connections and return their status, I need some help on how to change it...
Here is it:
Main( )
function Main()
DIM objShare
DIM objEveryColl
set objShare = Wscript.CreateObject("HNetCfg.HNetShare.1")
if(IsObject(objShare) = FALSE ) then
exit function
end if
set objEveryColl = objShare.EnumEveryConnection
if (IsObject(objEveryColl) = TRUE) then
DIM objNetConn
for each objNetConn in objEveryColl
DIM objShareCfg
set objShareCfg = objShare.INetSharingConfigurationForINetConnection(objNetConn)
if (IsObject(objShareCfg) = TRUE) then
DIM objNCProps
set objNCProps = objShare.NetConnectionProps(objNetConn)
if (IsObject(objNCProps) = TRUE) then
DIM str
str = "Name: " & objNCProps.Name & chr(13) & _
"Guid: " & objNCProps.Guid & chr(13) & _
"DeviceName: " & objNCProps.DeviceName & chr(13) & _
"Status: " & objNCProps.Status & chr(13) & _
"MediaType: " & objNCProps.MediaType
WScript.Echo( str )
end if
end if
next
end if
end function
Thanks in advance!
|
|
|
|
|
Take a look at the next post/question... one of them is a sample of a bat file that maps network drives...
|
|
|
|
|
Thank you, but I am talking about network CONNECTION and not network drives. I am looking for some code or some command that can connect/disconnect my network.
Have you any idea?
Regards
|
|
|
|
|
Hello,
INTRODUCTION:
I've posted this same question in the visual c++ forum, but after following all the steps carefully and after having seen my program working once the user has logged in... it doesn't work when it's called from XYNTService (an application that is installed as a service and that runs applications that you can add inside an ini file (you can see it here in cp...)).
QUESTION:
I think that I'm missing an important thing because it seems that I cannot do it before logging noway... I've tried to do it via a script (a bat file) and also with a visual C++ program using the WNetAddConnection2() function.
well... what do I need to know in order to do that?
I have no clue why it works once the user has logged in and not before... (I'm passing the user name and the password into the call to "net use" (in the bat file) and into the visual C++ function...)
Thank you in advance...
|
|
|
|
|
Have the XYZNTService run under a specific user account. That way you can map network drives via the logon script for the service user account.
|
|
|
|
|
...
I'll try it, but I need one of the apps to run with capability to access the desktop...
I guess I can try to use two XYNTService : one for the mapping and the other one for the application...
Thank you... I'll try it tomorrow, for me here is 00:14 (in the night)
|
|
|
|
|
Well, I have not been able to wait till tomorrow...
I've tried it and it didn't worked...
I don't understand nothing...
here's the code that I'm using in the bat file that works when the session has been opened:
REM -- scriptMAPND.bat<br />
echo %DATE% %TIME% > c:\mapnetworkdrive\MAPND.log<br />
net use Y: \\server01\Folder 123456 /user:myuser /PERSISTENT:NO >> c:\mapnetworkdrive\MAPND.log<br />
echo %ERRORLEVEL% >> c:\mapnetworkdrive\MAPND.log<br />
REM EOF
If you want you can try it for yourself... this is working fine when the user has logged in... but it seems impossible to make it work just before logging in...
Well, thank you again...
|
|
|
|
|
Here's a quote from a MS document about Windows XP startup:
"Network initialization is now done in parallel to boot. Winlogon does not wait for network initialization."
I'm not sure if you are getting around this somehow (or even if it's possible), it's just the first thought I had when I read this. Anyways here's a link to that document from Microsoft (it's an exe that extracts out to a doc, and it's on the upper right hand side):
http://www.microsoft.com/whdc/hwdev/platform/performance/fastboot/fastboot-winxp.mspx[^]
Good luck
Chris Richardson
|
|
|
|
|
Thank you, I'll give it a try...
I hope it works... I need it desperately...
|
|
|
|
|
|
Isn't it possible to run the service under a unique service account and have that account logged in automatically at startup? I haven't a clue how to do this, since I've never had a need for it, but it seems to me that this would be a necessary feature for a lot of situations.
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
Why not have the service map the drive itself programmatically on startup? This way the service creates the shares it needs without all the "hoo ha" of a logged in user...
See NetShareCheck, NetShareEnum, and NetShareAdd.
Hopefully that helps...
As an aside, I'm not sure if the above require an interactive login or not (probably not,) but you can also login a user programatically to perform actions. (See LogonUser and CreateProcessAsUser.
|
|
|
|
|
I will try it tonight... I can't stop the secretary computers as often as I would...
I'm begining to think that I have tried all the possibilities...
Thank you in advance...
|
|
|
|
|
Tried searching MS site, but only found WDT for NT/2K/XP.
'til next we type...
HAVE FUN!! -- Jesse
|
|
|
|
|
You can use VC 6.0. You also need the debug version of Win98 which contains the debug symbols, if you want to see more meaningful stuff.
|
|
|
|
|
ian mariano wrote:
You can use VC 6.0
I was looking for Depends, which (I thought) came with Windows Debugging Tools. I have this for Win NT/2K/Xp, but couldn't find a version for Win 98. I'm used to right-clicking on an executable and running depends from the context menu.
Well, your comment got me speilunking and lo! there is Depends in the Visual Studio Tools folder! And, once I ran it, I get the selection in the Context menu, just as I like it.
So, a big thanks!!!
'til next we type...
HAVE FUN!! -- Jesse
|
|
|
|
|
Hi,
I've been trying to access the physical memory (BIOS) from my program under Windows XP, but can't seem to make it work.
Is there anybody who knows how to do it, and could you possibly post some info about this?
Pleezzz help me !
--[ There are 10 kinds of people in the world: those who understand binary and those who dont. ]--
|
|
|
|
|
If you really must do this: you have to write a device driver. Regular applications don't have direct access to physical memory.
Are you sure there isn't already an API for doing what you need to do?
To develop device drivers, you need the Windows DDK[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Mike,
Thanx for your answer.
Mike Dimmick wrote:
If you really must do this: you have to write a device driver. Regular applications don't have direct access to physical memory.
Are you sure there isn't already an API for doing what you need to do?
Well, you're right, and now I have (re-)learned that the hard way. I was seeking high and seeking low for the SMBIOS UUID (Universal Unique ID) and first found it after several days.
The information is available (if supported by the BIOS) through WMI. Stupidly enough I was searching for it under the key Win32_BIOS or Win32_SMBIOSMemory. Instead I found it as mentioned after several days of R&D under the key Win32_ComputerSystemProduct.
Yes, silly me!
So I lived happily everafter....
BTW I have an assembly program which goes through the BIOS searching for a key, and it works! So we figure it works because it runs in a commandbox (DOS box), and the OS sort of emulates a DOS environment with some access to (a copy of) the BIOS.
Regards
Allan Krings
--[ There are 10 kinds of people in the world: those who understand binary and those who dont. ]--
|
|
|
|
|
I want to write a application which automatically encrypt the files that created by all the other applications, including the files created by Windows, and the encrypt process is transparent to the users.
Could you give me some advice.Thanks!;P
Li
|
|
|
|
|
I guess that you'd have to write a device driver which hooks the NtReadFile and NtWriteFile entry points, performing decryption and encryption as appropriate. Other problems to solve would include where to store the encryption key and how to allow administrators to decrypt files if the original owner lost their key.
To get an idea of how Microsoft implemented this in Windows 2000 and later, see Inside Windows 2000 by David Solomon and Mark Russinovich.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I'm asking on behalf of a friend (largely because it's also my 500th message on CP) if anyone knows how to install these from code.
Steve S
|
|
|
|
|
|