📄 com.java
字号:
public static final int STGM_READ = 0x00000000; public static final int STGM_READWRITE = 0x00000002; public static final int STGM_SHARE_DENY_NONE = 0x00000040; public static final int STGM_SHARE_DENY_READ = 0x00000030; public static final int STGM_SHARE_DENY_WRITE = 0x00000020; public static final int STGM_SHARE_EXCLUSIVE = 0x00000010; public static final int STGM_SIMPLE = 0x08000000; public static final int STGM_TRANSACTED = 0x00010000; public static final int STGM_WRITE = 0x00000001; public static final int STGTY_STORAGE = 1; public static final int STGTY_STREAM = 2; public static final int STGTY_LOCKBYTES = 3; public static final int STGTY_PROPERTY = 4; //public static final int TYMED_ENHMF = 64; //Values for tymed //public static final int TYMED_FILE = 2; //public static final int TYMED_GDI = 16; public static final int TYMED_HGLOBAL = 1; //public static final int TYMED_ISTORAGE = 8; //public static final int TYMED_ISTREAM = 4; //public static final int TYMED_MFPICT = 32; //public static final int TYMED_NULL = 0; public static final short DISPATCH_METHOD = 0x1; //Dispatch Constants public static final short DISPATCH_PROPERTYGET = 0x2; public static final short DISPATCH_PROPERTYPUT = 0x4; public static final short DISPATCH_PROPERTYPUTREF = 0x8; //public static final short DISPID_CONSTRUCTOR = -6; //public static final short DISPID_DESTRUCTOR = -7; //public static final short DISPID_EVALUATE = -5; //public static final short DISPID_NEWENUM = -4; public static final short DISPID_PROPERTYPUT = -3; //public static final short DISPID_UNKNOWN = -1; //public static final short DISPID_VALUE = 0; // Variant types public static final short VT_BOOL = 11; // Boolean; True=-1, False=0. public static final short VT_BSTR = 8; // Binary String. public static final short VT_BYREF = 16384; // By reference - must be combined with one of the othre VT values public static final short VT_CY = 6; // Currency. public static final short VT_DATE = 7; // Date. public static final short VT_DISPATCH = 9; // IDispatch public static final short VT_EMPTY = 0; // Not specified. public static final short VT_ERROR = 10; // Scodes. public static final short VT_I2 = 2; // 2-byte signed int. public static final short VT_I4 = 3; // 4-byte signed int. public static final short VT_NULL = 1; // Null. public static final short VT_R4 = 4; // 4-byte real. public static final short VT_R8 = 5; // 8-byte real. public static final short VT_UI1 = 17; // Unsigned char. public static final short VT_UI4 = 19; // Unsigned int. public static final short VT_UNKNOWN = 13; // IUnknown FAR*. public static final short VT_VARIANT = 12; // VARIANT FAR*. public static final short VARIANT_TRUE = -1; public static final short VARIANT_FALSE = 0;public static final native int CLSIDFromProgID(char[] lpszProgID, GUID pclsid);public static final native int CLSIDFromString(char[] lpsz, GUID pclsid);public static final native int CoCreateInstance( GUID rclsid, int pUnkOuter, int dwClsContext, GUID riid, int[] ppv); public static final native void CoFreeUnusedLibraries();public static final native int CoGetClassObject(GUID rclsid, int dwClsContext, int pServerInfo, GUID riid, int[] ppv);public static final native int CoLockObjectExternal( int pUnk, //Pointer to object to be locked or unlocked boolean fLock, //TRUE = lock, FALSE = unlock boolean fLastUnlockReleases //TRUE = release all pointers to object);public static final native int CoTaskMemAlloc(int cb); //Size in bytes of memory block to be allocatedpublic static final native void CoTaskMemFree(int pv);public static final native int DoDragDrop( int pDataObject, //Pointer to the data object int pDropSource, //Pointer to the source int dwOKEffect, //Effects allowed by the source int[] pdwEffect //Pointer to effects on the source);public static final native int GetClassFile( char[] szFileName, //Pointer to filename for which you are requesting a CLSID GUID clsid //Pointer to location for returning the CLSID);public static final native int IIDFromString(char[] lpsz, GUID lpiid);private static GUID IIDFromString(String lpsz) { // create a null terminated array of char char[] buffer = (lpsz +"\0").toCharArray(); // invoke system method GUID lpiid = new GUID(); if (COM.IIDFromString(buffer, lpiid) == COM.S_OK) return lpiid; return null;}public static final native boolean IsEqualGUID(GUID rguid1, GUID rguid2);public static final native void MoveMemory(int Destination, FORMATETC Source, int Length);public static final native void MoveMemory(int DestinationPtr, GUID Source, int Length);public static final native void MoveMemory(int DestinationPtr, OLEINPLACEFRAMEINFO Source, int Length);public static final native void MoveMemory(int Destination, STATSTG Source, int Length);public static final native void MoveMemory(int Destination, STGMEDIUM Source, int Length);public static final native void MoveMemory(STGMEDIUM Destination, int SourcePtr, int Length);public static final native void MoveMemory(DISPPARAMS Destination, int SourcePtr, int Length);public static final native void MoveMemory(FORMATETC Destination, int Source, int Length);public static final native void MoveMemory(GUID Destination, int SourcePtr, int Length);public static final native void MoveMemory(STATSTG Destination, int Source, int Length);public static final native void MoveMemory(TYPEATTR Destination, int SourcePtr, int Length);public static final native void MoveMemory(RECT Destination, int Source, int Length);public static final native void MoveMemory(FUNCDESC1 Destination, int Source, int Length);public static final native void MoveMemory(VARDESC1 Destination, int Source, int Length);public static final native void MoveMemory(FUNCDESC2 Destination, int Source, int Length);public static final native void MoveMemory(VARDESC2 Destination, int Source, int Length);public static final native int OleCreate(GUID rclsid, GUID riid, int renderopt, FORMATETC pFormatEtc, int pClientSite, int pStg, int[] ppvObject);public static final native int OleCreateFromFile( GUID rclsid, //Reserved. Must be CLSID_NULL char[] lpszFileName, //Pointer to full path of file used to create object GUID riid, //Reference to the identifier of the interface to be used to // communicate with new object int renderopt, //Value from OLERENDER FORMATETC pFormatEtc, //Pointer to the FORMATETC structure int pClientSite, //Pointer to an interface int pStg, //Pointer tothe interface to be used as object storage int[] ppvObj); //Address of output variable that receives the interface pointer // requested in riid public static final native int OleCreatePropertyFrame(int hwndOwner,int x, int y, char[] lpszCaption, int cObjects, int[] lplpUnk, int cPages, int lpPageClsID, int lcid, int dwReserved, int lpvReserved);public static final native int OleDraw(int pUnk, //Pointer to the view object to be drawn int dwAspect, //How the object is to be represented int hdcDraw, //Device context on which to draw int lprcBounds);//Pointer to the rectangle in which the object is drawnpublic static final native int OleFlushClipboard();public static final native int OleGetClipboard(int[] ppDataObject);public static final native int OleIsCurrentClipboard(int pDataObject);public static final native boolean OleIsRunning(int pObject);public static final native int OleLoad( int pStg, //Pointer to the storage object from which to load GUID riid, //Reference to the identifier of the interface int pClientSite, //Pointer to the client site for the object int[] ppvObj //Address of output variable that receives the interface pointer requested in riid);public static final native int OleRun(int pUnknown);public static final native int OleSave(int pPS, int pStg,boolean fSameAsLoad);public static final native int OleSetClipboard(int pDataObject);public static final native int OleSetContainedObject(int pUnk, boolean fContained);public static final native int OleSetMenuDescriptor(int holemenu, int hwndFrame, int hwndActiveObject, int lpFrame, int lpActiveObj);public static final native int OleTranslateColor(int clr, int hpal, int[] pcolorref);public static final native int ProgIDFromCLSID( GUID clsid, //CLSID for which the ProgID is requested int[] lplpszProgID //Address of output variable that receives a pointer to the requested ProgID string);public static final native int RegisterDragDrop( int hwnd, //Handle to a window that can accept drops int pDropTarget //Pointer to object that is to be target of drop);public static final native void ReleaseStgMedium( int pmedium //Pointer to storage medium to be freed); public static final native int RevokeDragDrop( int hwnd //Handle to a window that can accept drops);public static final native int StgCreateDocfile(char[] pwcsName, int grfMode, int reserved, int[] ppstgOpen);public static final native int StgIsStorageFile( char[] pwcsName //Points to a path of the file to check);public static final native int StgOpenStorage( char[] pwcsName, //Points to the path of the file containing storage object int pstgPriority, //Points to a previous opening of a root storage object
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -