|
I should have been a little more clear. When you declare the array of bytes going to the fuction, you have to call it with an array of bytes too:
Public Function GetPlaylistFile(ByVal TrackNo As Integer) As String
Dim strFileName As String
Dim lp As Integer
Dim lpWinamp As Integer
Dim PID As Integer
Dim Buffer(260) As Byte
Dim Temp As String
Dim dwRead As Long
I can't test the code because I don't use WinAmp...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Still does not work.... I am annoyed because it doesn't even return an exception!
|
|
|
|
|
'don't yet have a clue how to convert the data to text form, never reached
'this point on execution
'Temp = StrConv(Buffer, vbUnicode)
'strFileName = Left$(Temp, InStr(Temp, Chr$(0)) - 1)
Would be somthing like:
Temp = ConvertToStringFromBytes(Buffer)
strFileName = Left(Temp, InStr(Temp, Chr(0)) - 1)
Return strFileName
here's the function :
Public Function ConvertToStringFromBytes(ByRef abData() As Byte) As String
Return System.Text.Encoding.Default.GetString(abData)
End Function
Hope that helps
|
|
|
|
|
Hey, guys I know how to diable taskmanager in windows xp/2000 but I didn't know how to trap alt+f4 in windows xp/2000 ,can i have to program low level keyboard hooking
|
|
|
|
|
See this[^] article by George Mamaladze. It's in C#, but is covertable to VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hey dave can the code is in vb available and it should work in windows xp/2000/nt
|
|
|
|
|
Are you trying to do this in VB6 or VB.NET?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
|
Iam making a project for a school and until an d unless password is supplied the user supposed not to leave the form
|
|
|
|
|
So what's the question? What are you having a problem with?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Dave:
I think the author has put the question in the subject itself. 'not to allow the mouse cursor to go out of Active Window Context'. Something like what you see in VirtualPC, without VirtualPC additions installed.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
The mouse cursor and the focus are two completely different things. The question still stands...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can any one can tell me how can i know whic O.S. is running. ie,windows xp/2000/95/98/nt
|
|
|
|
|
system.environment.osversion class
it has platform and a version properties that you can use to determine which os and version.
-jim
|
|
|
|
|
|
|
how can i lock the file so that no one can delete it.
|
|
|
|
|
You set the permissions so that they do not have ownership of the file.
"People who never make mistakes, never do anything."
My blog
http://toddsnotsoamazinglife.blogspot.com/
|
|
|
|
|
I want to know to lock the file or using vb code
|
|
|
|
|
What are you getting at?
You want it so noone can delete the file, ever? Or just when you program is running?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Open it with Exclusive access and leave it open for the duration of your application if you want. But, this is considered VERY BAD practice.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How about folders and how opening file with exclusive excess
|
|
|
|
|
You can't lock a folder.
You've never specified what language your using, so I'm going to assume VB6. Open statement[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|