|
-
Sep 27th, 2000, 06:46 PM
#1
Ask a stupid question, get a stupid answer.
But I must know...
Code:
Declare Function findwindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
You don't have to have the api function case sensitive, right?
Meaning, I could have it like:
Code:
Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
'or
Declare Function findWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
'or
Declare Function Findwindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
'or anything else like..
Declare Function FiNdWiNdoW Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
-
Sep 27th, 2000, 06:51 PM
#2
Addicted Member
It aint case sensitive...
So i dont think it matters..... i done code with the "A" at the end of the api call... So idoubt case matters at all.
-
Sep 27th, 2000, 06:52 PM
#3
_______
<?>
Do what you want with case as long as the spelling and punctation is correct.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 27th, 2000, 06:54 PM
#4
I think it does matter, I've just tried Sleep and sleep and sleep didn't work, no entry point found, so VB was look for a exact match in the DLL.
Sunny
-
Sep 27th, 2000, 06:55 PM
#5
_______
<?>
Public Declare Function fInDWinDOw Lib "user32.dll" _
Alias "FindWindowA" (ByVal lpClassName As Any, _
ByVal lpWindowName As Any) As Long
Runs..but don't mess with the Alias "FindWindowA"
that one is case sensetive.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 27th, 2000, 06:56 PM
#6
Actually, Matt, You can AS LONG AS YOU ALIAS THE REAL NAME, IN THE CORRECT CASE, in your Declare.
You could even change it to this this (but what's the point)?
Code:
Private Declare Function SeekBillGatesThingy Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
lpWindowName As String) As Long
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|