Hiding SIP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I gotta hide SIP using the follow code for eVC

HideSIP(HWND hWnd

SHFullScreen (hWnd, SHFS_HIDESIPBUTTON)


I've verified function prototype

BOOL SHFullScreen
HWND hwndRequester
DWORD dwStat
)

When I`m going to compile for ARMV4 target device, I got this error message

error LNK2019: unresolved external symbol SHFullScreen referenced in function _OcultarSI
ARMV4Rel/LogiMap.dll : fatal error LNK1120: 1 unresolved external

But if I try to compile for Win32 Emulator i got no errors... I´ve check for aygshell.lib in PocketPC SKD 2003 folder, compiler
linking paths... everthing is fine... but finally I couldn't link the library..

I don´t care what's going on... I don`t know and I'm not gonna try to fix it... In fact, I just wanna hide SIP !!

Now I'm trying to do the same in VB.NET CF using the following syntax

static bool SHFullScree
<DllImport "aygshell.dll", SetLastError:=True)>
Public Shared Function SHFullScreenGetCapture( IntPtr hWnd, Integer flags) as Integer
End Functio

but it throws exception" A managed MissingMethodException

Does anyone help me

I´m sure that there's another way to fix this problem..

PD. My target device is a HP IPAQ 1940 with PocketPC 2003 O
 
Regarding CF, you seem to have an invalid function name:

-- you have --
static bool SHFullScreen
<DllImport "aygshell.dll", SetLastError:=True)>
Public Shared Function SHFullScreenGetCapture( IntPtr hWnd, Integer flags)
as Integer
End Function

-- should be --
<DllImport "aygshell.dll", SetLastError:=True)> _
Public Shared Function SHFullScreen( hWnd as IntPtr, flags as Integer ) as
Integer
End Function


As for eVC - make sure that the WCE ARM configuration specifies
aygshell.lib - it looks like you only specified it for x86 build

--
Alex Feinman
---
Visit http://www.opennetcf.org
Edward said:
I gotta hide SIP using the follow code for eVC:

HideSIP(HWND hWnd)
{
SHFullScreen (hWnd, SHFS_HIDESIPBUTTON);
}

I've verified function prototype :

BOOL SHFullScreen (
HWND hwndRequester,
DWORD dwState
);

When I`m going to compile for ARMV4 target device, I got this error message:

error LNK2019: unresolved external symbol SHFullScreen referenced in function _OcultarSIP
ARMV4Rel/LogiMap.dll : fatal error LNK1120: 1 unresolved externals


But if I try to compile for Win32 Emulator i got no errors... I´ve check
for aygshell.lib in PocketPC SKD 2003 folder, compiler
linking paths... everthing is fine... but finally I couldn't link the library...

I don´t care what's going on... I don`t know and I'm not gonna try to fix
it... In fact, I just wanna hide SIP !!!
 
Well if i'm getting your problem correctly then to hide the SIP icon
you may call the API like FindWindow, MoveWindow of Coredll to place
the SIP in a position you want and can hide it.

MoveWindow(FindWindow("MS_SIPBUTTON", Nothing), 219, 295, 36, 24, 1)


Well anywhere you want the inputPanel.Enabled = True
you can reposition the SIP to make it visible. I hope it helps

Anamika

Alex Feinman said:
I think he means hiding the icon rather than SIP

--
Alex Feinman
---
Visit http://www.opennetcf.org
Mark Arteaga said:
You can use the following to hide/show the SIP. It works on PPC and WindowsCE

[DllImport("coredll",EntryPoint="SipShowIM")]
private static extern bool SipShowIM(IntPtr SIP_STATUS);
private static readonly IntPtr SIPF_OFF = (IntPtr)0x0;
private static readonly IntPtr SIPF_ON = (IntPtr)0x1;

HTH
Mark Arteaga
 
Back
Top