PHP/mdetect.php
function DetectWindowsMobile()
   {
      if ($this->DetectWindowsPhone() == $this->true)
         return $this->false;
      
      //Most devices use 'Windows CE', but some report 'iemobile' 
      //  and some older ones report as 'PIE' for Pocket IE. 
      if (stripos($this->useragent, $this->deviceWinMob) > -1 ||
          stripos($this->useragent, $this->deviceIeMob) > -1 ||
          stripos($this->useragent, $this->enginePie) > -1)
         return $this->true; 
      //Test for Windows Mobile PPC but not old Macintosh PowerPC.
	  if (stripos($this->useragent, $this->devicePpc) > -1
		  && !(stripos($this->useragent, $this->deviceMacPpc) > 1))
         return $this->true; 
      //Test for certain Windwos Mobile-based HTC devices.
      if (stripos($this->useragent, $this->manuHtc) > -1 &&
          stripos($this->useragent, $this->deviceWindows) > -1)
         return $this->true; 
      if ($this->DetectWapWml() == $this->true &&
          stripos($this->useragent, $this->deviceWindows) > -1) 
         return $this->true; 
      else
         return $this->false; 
   }
function DetectWindowsMobile()
   {
      if ($this->DetectWindowsPhone() == $this->true)
         return $this->false;
      
      //Most devices use 'Windows CE', but some report 'iemobile' 
      //  and some older ones report as 'PIE' for Pocket IE. 
      if (stripos($this->useragent, $this->deviceWinMob) > -1 ||
          stripos($this->useragent, $this->deviceIeMob) > -1 ||
          stripos($this->useragent, $this->enginePie) > -1)
         return $this->true; 
      //Test for Windows Mobile PPC but not old Macintosh PowerPC.
	  if (stripos($this->useragent, $this->devicePpc) > -1
		  && !(stripos($this->useragent, $this->deviceMacPpc) > 1))
         return $this->true; 
      //Test for certain Windwos Mobile-based HTC devices.
      if (stripos($this->useragent, $this->manuHtc) > -1 &&
          stripos($this->useragent, $this->deviceWindows) > -1)
         return $this->true; 
      if ($this->DetectWapWml() == $this->true &&
          stripos($this->useragent, $this->deviceWindows) > -1) 
         return $this->true; 
      else
         return $this->false; 
   }
function DetectWindowsMobile ( ) { if ( $ this -> DetectWindowsPhone ( ) == $ this -> true ) return $ this -> false ; //Most devices use 'Windows CE', but some report 'iemobile' 
 //  and some older ones report as 'PIE' for Pocket IE. 
 if ( stripos ( $ this -> useragent , $ this -> deviceWinMob ) > - 1 || stripos ( $ this -> useragent , $ this -> deviceIeMob ) > - 1 || stripos ( $ this -> useragent , $ this -> enginePie ) > - 1 ) return $ this -> true ; //Test for Windows Mobile PPC but not old Macintosh PowerPC.
 if ( stripos ( $ this -> useragent , $ this -> devicePpc ) > - 1 && ! ( stripos ( $ this -> useragent , $ this -> deviceMacPpc ) > 1 ) ) return $ this -> true ; //Test for certain Windwos Mobile-based HTC devices.
 if ( stripos ( $ this -> useragent , $ this -> manuHtc ) > - 1 && stripos ( $ this -> useragent , $ this -> deviceWindows ) > - 1 ) return $ this -> true ; if ( $ this -> DetectWapWml ( ) == $ this -> true && stripos ( $ this -> useragent , $ this -> deviceWindows ) > - 1 ) return $ this -> true ; else return $ this -> false ; }
Focuses on Windows Mobile 6.xx and earlier.
Focuses on Windows Mobile 6 . xx and earlier .