On Tue, Nov 14, 2006 at 10:57:25AM +0000, Pedro Alves wrote:
> Kevin O'Connor wrote:
> >All of these can be found on MSDN at:
> >
> >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcemain4/html/cmconKernelFunctions.asp
> >
> >According to MSDN, they all seem to be defined in a file "pkfuncs.h".
> >This file is not currently in cegcc.  Also, since the defs were
> >manually defined in the original (MSVC compiled) haret, I'm not sure
> >they're part of the ms toolkit.
[...]
> >In order to make the haret code more clear, I'm going to build a
> >pkfuncs.h file.  If there is interest, I'll push it to cegcc.
> >  
> >
> Yes, please :)
> 

Attached is the file.  It is not in the form of a patch, because I
don't know where one would place it in the heirarchy.  All the
functions were found on MSDN using the above link.  The one variable
was found by doing a google code search.

Note that I've only defined the functions I've needed so far.  There
are definitely others in that file.

-Kevin

2006-11-25  Kevin O'Connor  <[EMAIL PROTECTED]>

        * include/pkfuncs.h: New file with CE definitions thought to
          be in the MS file of the same name.

#ifndef __PKFUNCS_H
#define __PKFUNCS_H

// The following definitions are from:
//
// 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcemain4/html/cmconKernelFunctions.asp
//

#ifdef __cplusplus
extern "C" {
#endif

VOID ForcePageout(void);
LPVOID AllocPhysMem(DWORD cbSize, DWORD fdwProtect, DWORD dwAlignmentMask,
                    DWORD dwFlags, PULONG pPhysicalAddress);
BOOL FreePhysMem(LPVOID lpvAddress);
DWORD SetProcPermissions(DWORD newperms );
DWORD GetCurrentPermissions(void);
BOOL SetKMode(BOOL fMode);
BOOL VirtualCopy(LPVOID lpvDest, LPVOID lpvSrc, DWORD cbSize, DWORD fdwProtect);
BOOL LockPages(LPVOID lpvAddress, DWORD cbSize, PDWORD pPFNs, int fOptions);
BOOL UnlockPages(LPVOID lpvAddress, DWORD cbSize);
#define LOCKFLAG_READ       0x004

#ifdef __cplusplus
} // extern "C"
#endif

#endif // pkfuncs.h
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to