Click here to Skip to main content
15,886,002 members
Articles / Mobile Apps / Windows Mobile

pfront: A utility for Windows Mobile

Rate me:
Please Sign up or sign in to vote.
4.50/5 (4 votes)
2 May 2011CPOL2 min read 16.7K   354   12  
A small addition to the popular command-line itsutils for Windows Mobile.
#pragma once
#include <rapi2.h>
 
#ifdef PFRONT_LIB_EXPORTS
#define PFRONT_LIB_API __declspec( dllexport )
#else
#define PFRONT_LIB_API __declspec( dllimport )
#endif
 
extern "C" {
 
///////////////////////////////////////////////////////////////////////
//  Method  private PFRONT_BringToFront
/// @brief  bring the application window of the app with the given name to 
/// the front of the window z-order.
///
/// @param  DWORD cbInput - number of bytes in the pInput buffer.
/// @param  BYTE* pInput - [in] wchar_t* - null-terminated name of the 
/// executable with the window to bring to the front. e.g. "myapp.exe"
/// @param  DWORD* pcbOutput - unused.
/// @param  BYTE** ppOutput - unused.
/// @param  IRAPIStream* pStream - unused. NULL, always.
/// @return int - S_OK on success.
///////////////////////////////////////////////////////////////////////
PFRONT_LIB_API int PFRONT_BringToFront( DWORD cbInput, 
                                        BYTE* pInput,
                                        DWORD* pcbOutput, 
                                        BYTE** ppOutput,
                                        IRAPIStream* pStream );
 
}; // extern "C"

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) An engineering firm in Cedar Rapids, Iowa
United States United States
I'm also on the MSDN forums
http://social.msdn.microsoft.com/profile/paulh79

Comments and Discussions