Back to index

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

Go to the source code of this file.


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


static char szINIFile [] = NPAPI_INI_FILE_NAME

Function Documentation

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

Definition at line 60 of file winutils.cpp.

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

Here is the call graph for this function:

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

Definition at line 42 of file winutils.cpp.

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

Variable Documentation

char szINIFile[] = NPAPI_INI_FILE_NAME [static]

Definition at line 58 of file winutils.cpp.