RAPI constants -where are they defined?

R

rocio

I need to use the RAPI function CeFindAllFiles that uses as flag values a
bunch of constants like FAF_ATTRIB_CHILDREN, FAF_ATTRIBUTES, etc. I'm using
VB6 and need the actual numeric definiitons of these constants to include in
my program.

Where can I find them? In the rapi.h file? Where can I get a copy of this
file?

Tx!
 
C

Chris Tacke, eMVP

Install a PPC sdk and look here:

C:\Windows CE Tools\wce300\Pocket PC 2002\support\ActiveSync\inc
 
G

Ginny Caughey [MVP]

The Rapi constants are indeed defined in rapi.h. On this computer Rapi.h is
installed in Program Files\Windows CE Tools\wce420\SMARTPHONE
2003\Activesync\Inc and were apparently installed along with the SmartPhone
SDK. Here are all the CeFindAllFiles constants:

//
// These are flags for CeFindAllFiles
//
#define FAF_ATTRIBUTES ((DWORD) 0x01)
#define FAF_CREATION_TIME ((DWORD) 0x02)
#define FAF_LASTACCESS_TIME ((DWORD) 0x04)
#define FAF_LASTWRITE_TIME ((DWORD) 0x08)
#define FAF_SIZE_HIGH ((DWORD) 0x10)
#define FAF_SIZE_LOW ((DWORD) 0x20)
#define FAF_OID ((DWORD) 0x40)
#define FAF_NAME ((DWORD) 0x80)
#define FAF_FLAG_COUNT ((UINT) 8)
#define FAF_ATTRIB_CHILDREN ((DWORD) 0x01000)
#define FAF_ATTRIB_NO_HIDDEN ((DWORD) 0x02000)
#define FAF_FOLDERS_ONLY ((DWORD) 0x04000)
#define FAF_NO_HIDDEN_SYS_ROMMODULES ((DWORD) 0x08000)
#define FAF_GETTARGET ((DWORD) 0x10000)

#define FAD_OID ((WORD) 0x01)
#define FAD_FLAGS ((WORD) 0x02)
#define FAD_NAME ((WORD) 0x04)
#define FAD_TYPE ((WORD) 0x08)
#define FAD_NUM_RECORDS ((WORD) 0x10)
#define FAD_NUM_SORT_ORDER ((WORD) 0x20)
#define FAD_SIZE ((WORD) 0x40)
#define FAD_LAST_MODIFIED ((WORD) 0x80)
#define FAD_SORT_SPECS ((WORD) 0x100)
#define FAD_FLAG_COUNT ((UINT) 9)

#ifndef FILE_ATTRIBUTE_INROM
#define FILE_ATTRIBUTE_INROM 0x00000040
#endif
#ifndef FILE_ATTRIBUTE_ROMSTATICREF
#define FILE_ATTRIBUTE_ROMSTATICREF 0x00001000
#endif
#ifndef FILE_ATTRIBUTE_ROMMODULE
#define FILE_ATTRIBUTE_ROMMODULE 0x00002000
#endif

//
// The following is not a standard Windows CE File Attribute.
//
#ifndef FILE_ATTRIBUTE_HAS_CHILDREN
#define FILE_ATTRIBUTE_HAS_CHILDREN 0x00010000
#endif
#ifndef FILE_ATTRIBUTE_SHORTCUT
#define FILE_ATTRIBUTE_SHORTCUT 0x00020000
#endif
 
R

rocio

Tx!
I found it there too.

Just one more question: how do I rewrite this in vb6:
(DWORD) 0x80 versus (WORD) 0x80 ?

what is &H80 ?
 

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