CVS: seamlessrdp/ServerExe main.c,1.11,1.12

Pierre Ossman <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7055/ServerExe

Modified Files:
	main.c 
Log Message:
Change state when requested by the client.


Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** main.c	10 Mar 2006 12:37:59 -0000	1.11
--- main.c	10 Mar 2006 15:25:17 -0000	1.12
***************
*** 132,135 ****
--- 132,148 ----
  
  static void
+ do_state(HWND hwnd, int state)
+ {
+ 	if (state == 0)
+ 		ShowWindow(hwnd, SW_RESTORE);
+ 	else if (state == 1)
+ 		ShowWindow(hwnd, SW_MINIMIZE);
+ 	else if (state == 2)
+ 		ShowWindow(hwnd, SW_MAXIMIZE);
+ 	else
+ 		debug("Invalid state %d sent.", state);
+ }
+ 
+ static void
  process_cmds(void)
  {
***************
*** 156,159 ****
--- 169,174 ----
  		if (strcmp(tok1, "SYNC") == 0)
  			do_sync();
+ 		else if (strcmp(tok1, "STATE") == 0)
+ 			do_state((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0));
  	}
  }



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.