Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
os2utils.cpp File Reference
#include <os2.h>
#include "plugbase.h"

Go to the source code of this file.




void GetModulePath (HMODULE aInstance, char *aPath, int aSize)
void GetINIFileName (HMODULE aInstance, char *aName, int aSize)


static char szINIFile [] = NPAPI_INI_FILE_NAME

Define Documentation

Definition at line 38 of file os2utils.cpp.

Function Documentation

void GetINIFileName ( HMODULE  aInstance,
char *  aName,
int  aSize 

Definition at line 61 of file os2utils.cpp.

  GetModulePath(aInstance, aName, aSize);
  strcat(aName, szINIFile);

Here is the caller graph for this function:

void GetModulePath ( HMODULE  aInstance,
char *  aPath,
int  aSize 

Definition at line 43 of file os2utils.cpp.

  char sz[_MAX_PATH];
  DosQueryModuleName(aInstance, sizeof(sz), sz);
  char * p = strrchr(sz, '\\');
  if(p != NULL) {
    *++p = '\0';
    if((int)strlen(sz) < aSize) 
      strcpy(aPath, sz);
      strcpy(aPath, "");
    strcpy(aPath, "");

Here is the caller graph for this function:

Variable Documentation

char szINIFile[] = NPAPI_INI_FILE_NAME [static]

Definition at line 59 of file os2utils.cpp.