home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / sdk20 / jsdk05.cab / Src / Win32Api / Shell32.java < prev    next >
Encoding:
Java Source  |  1997-09-25  |  2.9 KB  |  65 lines

  1. // Copyright (C) 1997 Microsoft Corporation  All Rights Reserved
  2.  
  3. // These classes provide direct, low-overhead access to commonly used
  4. // Windows api. These classes use the new J/Direct feature.
  5. //
  6. // Information on how to use J/Direct to write your own declarations
  7. // can be found in the Microsoft SDK for Java 2.0.
  8.  
  9. package com.ms.win32;
  10.  
  11. /** @security(checkClassLinking=on) */
  12. public class Shell32 {
  13.         /** @dll.import("SHELL32", unicode) */
  14.         public native static int CommandLineToArgvW (String lpCmdLine, int[] pNumArgs);
  15.  
  16.         /** @dll.import("SHELL32",auto) */
  17.         public native static void DragAcceptFiles (int anonymous0, boolean anonymous1);
  18.  
  19.         /** @dll.import("SHELL32",auto) */
  20.         public native static void DragFinish (int anonymous0);
  21.  
  22.         /** @dll.import("SHELL32", auto) */
  23.         public native static int DragQueryFile (int anonymous0, int anonymous1, StringBuffer anonymous2, int anonymous3);
  24.  
  25.         /** @dll.import("SHELL32",auto) */
  26.         public native static boolean DragQueryPoint (int anonymous0, POINT anonymous1);
  27.  
  28.         /** @dll.import("SHELL32", auto) */
  29.         public native static int ExtractAssociatedIcon (int hInst, StringBuffer lpIconPath, short[] lpiIcon);
  30.  
  31.         /** @dll.import("SHELL32", auto) */
  32.         public native static int ExtractIconEx (String lpszFile, int nIconIndex, int[] phiconLarge, int[] phiconSmall, int nIcons);
  33.  
  34.         /** @dll.import("SHELL32", auto) */
  35.         public native static int ExtractIcon (int hInst, String lpszExeFileName, int nIconIndex);
  36.  
  37.         /** @dll.import("SHELL32", auto) */
  38.         public native static int FindExecutable (String lpFile, String lpDirectory, StringBuffer lpResult);
  39.  
  40.         /** @dll.import("SHELL32",auto) */
  41.         public native static int SHAppBarMessage (int dwMessage, APPBARDATA pData);
  42.  
  43.         /** @dll.import("SHELL32",auto) */
  44.         public native static int SHFileOperation (SHFILEOPSTRUCT lpFileOp);
  45.  
  46.         /** @dll.import("SHELL32",auto) */
  47.         public native static void SHFreeNameMappings (int hNameMappings);
  48.  
  49.         /** @dll.import("SHELL32", auto) */
  50.         public native static int SHGetFileInfo (String pszPath, int dwFileAttributes, SHFILEINFO psfi, int cbFileInfo, int uFlags);
  51.  
  52.         /** @dll.import("SHELL32", auto) */
  53.         public native static int ShellAbout (int hWnd, String szApp, String szOtherStuff, int hIcon);
  54.  
  55.         /** @dll.import("SHELL32",auto) */
  56.         public native static boolean ShellExecuteEx (SHELLEXECUTEINFO lpExecInfo);
  57.  
  58.         /** @dll.import("SHELL32", auto) */
  59.         public native static int ShellExecute (int hwnd, String lpOperation, String lpFile, String lpParameters, String lpDirectory, int nShowCmd);
  60.  
  61.         /** @dll.import("SHELL32",auto) */
  62.         public native static boolean Shell_NotifyIcon (int dwMessage, NOTIFYICONDATA lpData);
  63. }
  64.  
  65.