Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
GetShortPathName.c File Reference
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define MAX_BUF   4096

Functions

int main (int argc, char *argv[])

Define Documentation

#define MAX_BUF   4096

Definition at line 43 of file GetShortPathName.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 44 of file GetShortPathName.c.

{
  DWORD dwError;
  char  szShortPath[MAX_BUF];

  if(argc <= 1)
  {
    printf("\n usage: %s <path>\n", argv[0]);
    exit(1);
  }

  dwError = GetShortPathName(argv[1], szShortPath, sizeof(szShortPath));
  printf("%s", szShortPath);
  return(dwError);
}

Here is the call graph for this function: