set sip location...

B

baramuse

Hi all :)

Almost everything is in the subject... I just want to set the location
of the SIP programatically(is that english? :p)
The Bounds property is read-only so...

Oh yes I'm dealing with a WindowsCE.net OS and using C# :)

Thanks in advance and good morning/afternoon/night :p
 
A

Alex Feinman [MVP]

baramuse said:
Hi all :)

Almost everything is in the subject... I just want to set the location of
the SIP programatically(is that english? :p)

Yes, it is.
The Bounds property is read-only so...

Oh yes I'm dealing with a WindowsCE.net OS and using C# :)

Thanks in advance and good morning/afternoon/night :p

You should try P/Invoking SipSetInfo:

struct SIPINFO
{
int cbSize; // Set to 48
int fdwFlags; // Set to 0
Rectangle rcVisibleDesktop; // set to 0,0,0,0
Rectangle rcSipRect;
int dwImDataSize; // Set to 0
IntPtr pvImData; // Set to IntPtr.Zero
} SIPINFO;

[DllImpot("coredll")]
extern static bool SipSetInfo(ref SIPINFO sipInfo);

Also of interest is SipSetDefaultRect(RECT*) which specifies the default
screen rect for all new instances of SIP
 
B

baramuse

baramuse said:
Hi all :)

Almost everything is in the subject... I just want to set the location
of the SIP programatically(is that english? :p)
The Bounds property is read-only so...

Oh yes I'm dealing with a WindowsCE.net OS and using C# :)

Thanks in advance and good morning/afternoon/night :p
Thanks a lot you both :)
Works like a charm ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top