|
-
Feb 23rd, 2007, 11:49 PM
#1
Thread Starter
Frenzied Member
Help With API
I found this http://msdn2.microsoft.com/en-us/library/aa458041.aspx
but I haven't got a clue about how to use it.
I've had very little experience in useing APIs with VB6, and I probably don't remember how to do those now anyway.
Can someone point me to a location that will show me how to use this API? I need to use the full screen API.
Thanks
-
Feb 24th, 2007, 02:44 AM
#2
-
Feb 24th, 2007, 06:08 AM
#3
Thread Starter
Frenzied Member
Re: Help With API
Thanks jm. Actually I did search for quite a while and came up blank. Thanks for coming through again. You're a real help to many of us newbies.
-
Feb 24th, 2007, 11:23 AM
#4
Thread Starter
Frenzied Member
Re: Help With API
Ok the following didn't work for me:
VB Code:
Const SHFS_SHOWTASKBAR As Integer = &H1
Const SHFS_HIDETASKBAR As Integer = &H2
Const SHFS_SHOWSIPBUTTON As Integer = &H4
Const SHFS_HIDESIPBUTTON As Integer = &H8
Const SHFS_SHOWSTARTICON As Integer = &H10
Const SHFS_HIDESTARTICON As Integer = &H20
<DllImport("aygshell.dll")> _
Shared Function SHFullScreen(ByVal hwndRequester As IntPtr, _
ByVal dwState As Integer) As Integer
End Function
<DllImport("coredll.dll")> _
Public Shared Function GetCapture() As IntPtr
End Function
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Capture = True
Dim hwnd As IntPtr = GetCapture()
Capture = False
SHFullScreen(hwnd, SHFS_HIDESTARTICON)
End Sub 'Form1_Load
The Error I got was:
"Can't find an entry point 'SHFullscreen' in a Pinvoke DLL 'aygshell.dll'."
Does that mean the name in the dll is different than "SHFullscreen"?
Any pointers to a full reference for API calls (beginners style) for Windows Mobile would be appreciated.
-
Feb 24th, 2007, 05:21 PM
#5
Re: Help With API
Try changing "aygshell.dll" to "aygshell.lib" and see if that makes a difference.
-
Feb 24th, 2007, 06:26 PM
#6
Thread Starter
Frenzied Member
Re: Help With API
I did as you suggested. It returned "Can't find PInvoke DLL 'aygshell.lib'".
-
Feb 24th, 2007, 06:54 PM
#7
Re: Help With API
Hmmm... that one was a shot in the dark.
The doco you linked to says it requires Windows Mobile 2000 or later and Windows CE 3.0 or later. Are you using an older version of either?
Last edited by jmcilhinney; Feb 24th, 2007 at 06:58 PM.
-
Feb 25th, 2007, 03:11 AM
#8
Frenzied Member
Re: Help With API
Hi,
full screen shown at http://www.vbforums.com/showthread.php?t=452464
Are you using PocketPC - I don't think aygshell comes with CE - just PPC. Can you check it is on your device?
By default, a lot of the system DLLs are hidden. You can see them when
using the Remote File Viewer or when setting Explorer up to not hide
anything; otherwise, you don't see them.
Pete
-
Feb 26th, 2007, 06:36 PM
#9
Thread Starter
Frenzied Member
Re: Help With API
Sorry, Been Busy.
The Version Is Windows Mobile 2003 v 4.21.1088
So it should have worked, correct?
-
Feb 27th, 2007, 02:13 AM
#10
Frenzied Member
Re: Help With API
Hi,
as I asked before, have you checked whether aygshell.dll is on your device?
The version doesn't matter if the dll is not on the device.
Pete
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
|