|
aucun is implementing WlxInitialize, this is the way it works, so i guess first step would be to take a look how aucun is doing it, but its source is in c++
|
|
|
|
|
I hope you do understand that "aucun" requires some actions to force windows to use aucun instead of "msgina". But if this is for your internal application which you will install on client pc, i think that should not be a problem.
|
|
|
|
|
Without writing and replacing GINA with your own version or without using a 3rd party solution, it's not possible to do what you want and get the "fully unlocked" result, just like the user did it him/herself on the workstation.
|
|
|
|
|
The default MS "system locked" screen runs in a secure desktop (just like UAC prompts), so that apps cannot touch it.
You could implement your own GINA, but definitely not in VB.
|
|
|
|
|
Thank you very much to all of you for the fast replies and the help and hints!!!
I think you are right - I would have to write my own GINA!
and yes not in VB
I will stop to investigate here because also when we would found a solution for XP would GINA not work for vista! Means I will give up at this point and think about a service.
More details about my project:
The program on the locked PC contains a 3rd party VNC Server component. (Now should it be clear what I am trying to do, or?)
The application with the VNC Server component listens for VNC connections.
This works fine as long as the pc isnt locked!
But what when the pc is just turned on WITHOUT once a user logged in?
In this situation would my application not run and would not be able to unlock the PC - independently what ever solution we would found!
Means I need a sercive! This service starts (on request) a simple application which contains "only" the VNC server component.
But here we have also some problems:
There isnt a desktop where the application could run "in".
My solution -hopefully: The service starts the application under different user rights (with different credentials; keyword: "CreateProcessWithLogonW").
When this works, runs the application hopefully in a "virtuell" desktop and listens for VNC connections.
The "other side" can then connect to the VNC server, would then see(!) the locked PC and would be able to unlock it.
But this is all theory - I have to test.
What I already tried is to start such an application under that user/rigths under thats a service runs, means under the SYSTEM account. I see then in the taskmanager that the application runs - but I am not able to connect to the VNC server....
I let you all know the details - when I have some ... but now: "Thank god its friday! Watching TV and drinking beer!" (J.J.Cale)
|
|
|
|
|
Hi,
I have also done the same thing for XP. But have no clue, on how to do it on Vista and Windows 7. Can you give me any pointers ? Can I change locked screen of standard windows ?
Thanks,
Swapnil
|
|
|
|
|
Hello Experts!!
I have to develop application in which i am able to rotate images on button click(Next and Previous).I am using vb.net.....
Anybody have code or ideas then suggest me......
|
|
|
|
|
PictureBox.Image.RotateFlip method.
|
|
|
|
|
Just type this on rotate button(Button_Click Event)
pictureBox1 .Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
pictureBox1.Refresh()
Zahid Khan Kakar
|
|
|
|
|
Hi Guys,
I need some help or some direction in what i am trying to do.
basically i want to know how to install an application on a client pc from the server, using vb.net.
kinda like how symantec does it, with the GUI and just click on network pc and install.
I have googled and checked out msdn but with no luck.
is there any documentation that you know that could help me in this...?
thank you in advance
Anoop
|
|
|
|
|
You can use WMI's Win32_Process class, and .NET's System.Management classes, to launch a remote process, with one pitfall. The installer process will run, but no user interface will be possible. So, your .MSI installation has to be configured and launched without expecting any user input at all. Any windows your installer puts up will be launched, but the user will never see them or know they are there.
|
|
|
|
|
I have a large function that has a piece of code that gets repeated 8 times or so. Normally I would just make another function and pass all the variables as byref but in the code that repeats I would have to pass EVERY variable in the Larger function 20+ arguments just to get this small one to work. Now yea I can do that but I'm lazy... so here's my question
Is there a way to make an "Inner" function/sub that you can only use inside another specific "Outer" function/sub where you don't have to pass all the variables from the outer to the inner but you can just pass the addressof or something and be able to automatically use all the variables from the outer in the inner.
|
|
|
|
|
It sound like you are looking for object oriented programming.
Create a class with properties for each variable. Instantiate the class in your "outer" sub / function, set the properties, use them, and then when you want to call your other sub / function, you only make a byval of your class, and pass the instantiated object to it.
Something like:
Module ExampleModule
Private Sub ExampleSub()
Dim MyExampleObject As New Example
MyExampleObject.MyVariable = "Example"
'some loop here
MyFunctionToBeCalledAboutEightTimes(MyExampleObject)
'next loop
End Sub
Function MyFunctionToBeCalledAboutEightTimes(ByVal MyExample As Example) As Integer
If MyExample.MyVariable = "Example" Then
Return 0
Else
Return 1
End If
End Function
End Module
Public Class Example
Private _MyVariable As String
Public Property MyVariable() As String
Get
Return _MyVariable
End Get
Set(ByVal value As String)
_MyVariable = value
End Set
End Property
End Class
My advice is free, and you may get what you paid for.
|
|
|
|
|
I am writing a small code in VB.NET
when I try to change the "VALUE" property of a ProgressBar in FOR EACH loop like following example it is not accepting the VALUE as a property of the box! if i try to change something like name or text it is okay! but with VALUE is not working
who can help me please?
For Each Item As Windows.Forms.Control In Panel1.Controls
Item.vlaue = Delay
Next
|
|
|
|
|
Hi,
Controls is a collection holding controls, so your for each variable is and must be a Control.
However a general Control only has a few properties, such as Name and Type, it does not have a Value.
Some more specialized controls do have a Value. So you need to copycast your control reference to a ProgressBar reference for those controls that are ProgressBars.
I can't be more specific, I don't know the details in VB.NET (in C# you would use the "as" keyword and a null test).
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
yesss... thanks for your help
|
|
|
|
|
I can change LINE charts Series with the commands, but not a bar / cylinder chart
Dim series1 As excel.Series = CType(ChartPage.SeriesCollection(1), excel.Series)
series1.MarkerForegroundColorIndex = 3
|
|
|
|
|
How do I get the microsoft word to prompt for password each time a new page is opened. Either this is possible or am beginning to freak myself out on security.
Thanx in advance.
|
|
|
|
|
Asking for a password every time you start a new page in Word?? Are you insane?? Are you trying to make your users of Word insane??
Possible, but easily defeatable. There is no real solution for this since Word doesn't support an extensive security model.
|
|
|
|
|
its just my system, dont share it with anybody.Guess we can do what we like with what is ours.
Thanx any way.
|
|
|
|
|
Guy, there's no real way to do it. Word doesn't support a security model extensive enough to support this in a way that is not easily defeatable.
|
|
|
|
|
Dave, thats ok, Thanx men!
|
|
|
|
|
So you are the one who wants people to hate MS Word and switch to open office.
|
|
|
|
|
I am having difficulty communication through a socket. I am new to this, so bare with me.
I am trying to pass string control protocols to a device like a display sign.
Here is how I have connected to the sign. I think this has worked because I don't get an error. Plus, when I try to connect again it says that I am already connected.
Private endpoint as new IPEndPoint(ipaddress, port)
private socket as new socket(endpoint.addressFamily, SocketType.Stream, ProtocolType.Tcp)
--Sub
socket.connect(endpoint)
--end sub
The issue is when I try to send the protocol text string to the sign. I need help formatting the string.
EXAMPLE: The documentation says to send <0x01>Z00<0x02>AA<0x1C>1<0x1D>B3This is where message is.<0x04>
So I changed it to hex:
dim signmsg = This is where message is.
dim signstring = &H1.tostring + "Z00" + &H2.tostring + "AA" + &H28.tostring + "1" + &H29.tostring + "B3" + signmsg + &H4.toString
First, can you see if I am doing any thing wrong above.
Second, What is the easiest way to get this data formatted correctly and sent to the socket.
Will this work?
dim Buffer() as Byte = System.text.acsciiencoding.ascii.getbytes(signString)
To send I use
socket.send(Buffer, buffer.length, Sockets.SocketFlags.none)
But I get nothing from the sign.
What am I doing wrong?
I can't think of anything cool and nerdy to say.
|
|
|
|
|
Hi Cory,
have you looked at the content of signstring? IMO it is not what you want it to be.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|