xboxscene.org forums

Author Topic: Xeimagefilename  (Read 59 times)

ZogoChieftan

  • Archived User
  • Jr. Member
  • *
  • Posts: 54
Xeimagefilename
« on: June 19, 2004, 11:56:00 PM »

Does anyone know where this is initialized in because I got it from a friend it gives the application startup path but I don't have a clue where exactly it's initialized. Any info would be great.
From ZogoChieftan
Logged

fghjj

  • Archived User
  • Sr. Member
  • *
  • Posts: 288
Xeimagefilename
« Reply #1 on: June 20, 2004, 10:55:00 PM »

wink.gif
CODE

//Main header
#include

//PSTR = pointer to char
typedef char *PSTR;

//Kernel communicates in ANSI strings
typedef struct _ANSI_STRING {
   WORD Length;
   WORD MaxLength;
   PSTR Buffer;
} *PANSI_STRING;

//Import kernel function
#ifdef __cplusplus
extern "C" {
#endif
   extern PANSI_STRING XeImageFileName;
#ifdef __cplusplus
};
#endif

//Entry point
void __cdecl main() {
   //XeImageFileName->Buffer points to path of XBE
   //Format is like this: \Device\Harddisk0\Partition1\bla.xbe
   XeImageFileName->Buffer;
   //Size of XeImageFileName->Buffer is stored in XeImageFileName->Length
   XeImageFileName->Length;
   //Loop until infinity
   while (true) {
   }
}
Logged

ZogoChieftan

  • Archived User
  • Jr. Member
  • *
  • Posts: 54
Xeimagefilename
« Reply #2 on: June 28, 2004, 10:44:00 PM »

smile.gif
Logged