home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / win_lrn / apps / winfind.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  436 b   |  24 lines

  1. #include <windows.h>
  2.  
  3. void FAR PASCAL locate();
  4.  
  5.  
  6. int PASCAL WinMain( hInstance, hPrevInstance, lpszCmdLine, cmdShow )
  7. HANDLE hInstance, hPrevInstance;
  8. LPSTR  lpszCmdLine;
  9. int    cmdShow;
  10. {
  11.     locate();
  12.     return 0;
  13. }
  14.  
  15. void FAR PASCAL locate()
  16. {
  17.   char   buf[60];
  18.  
  19.   GetModuleFileName( GetModuleHandle((LPSTR)"winfind"), buf, 60 );
  20.   MessageBox( GetFocus(), (LPSTR)buf, (LPSTR)"module loaded from", MB_OK);
  21.  
  22. }
  23.  
  24.