Lines 511-516
Link Here
|
511 |
public static final int DATE_LONGDATE = 0x00000002; |
511 |
public static final int DATE_LONGDATE = 0x00000002; |
512 |
public static final int DATE_SHORTDATE = 0x00000001; |
512 |
public static final int DATE_SHORTDATE = 0x00000001; |
513 |
public static final int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500) |
513 |
public static final int DATE_YEARMONTH = 0x00000008; //#if(WINVER >= 0x0500) |
|
|
514 |
public static final int DC_PAPERS = 2; |
515 |
public static final int DC_PAPERNAMES = 16; |
514 |
public static final int DCX_CACHE = 0x2; |
516 |
public static final int DCX_CACHE = 0x2; |
515 |
public static final int DCX_CLIPCHILDREN = 0x8; |
517 |
public static final int DCX_CLIPCHILDREN = 0x8; |
516 |
public static final int DCX_CLIPSIBLINGS = 0x10; |
518 |
public static final int DCX_CLIPSIBLINGS = 0x10; |
Lines 544-553
Link Here
|
544 |
public static final short DMCOLLATE_TRUE = 1; |
546 |
public static final short DMCOLLATE_TRUE = 1; |
545 |
public static final int DM_SETDEFID = 0x401; |
547 |
public static final int DM_SETDEFID = 0x401; |
546 |
public static final int DM_COLLATE = 0x00008000; |
548 |
public static final int DM_COLLATE = 0x00008000; |
|
|
549 |
public static final int DM_FORMNAME = 0x00010000; |
550 |
public static final int DM_IN_BUFFER = 0x00000002; |
551 |
public static final int DM_SCALE = 0x00000010; |
552 |
public static final int DM_DUPLEX = 0x00001000; |
553 |
public static final int DM_YRESOLUTION = 0x00002000; |
554 |
public static final int DM_PRINTQUALITY = 0x00000400; |
555 |
public static final int DM_NUP = 0x00000040; |
547 |
public static final int DM_COPIES = 0x00000100; |
556 |
public static final int DM_COPIES = 0x00000100; |
548 |
public static final int DM_ORIENTATION = 0x00000001; |
557 |
public static final int DM_ORIENTATION = 0x00000001; |
|
|
558 |
public static final int DM_PAPERSIZE = 0x00000002; |
559 |
public static final int DM_PAPERLENGTH = 0x00000004; |
560 |
public static final int DM_PAPERWIDTH = 0x00000008; |
549 |
public static final short DMORIENT_PORTRAIT = 1; |
561 |
public static final short DMORIENT_PORTRAIT = 1; |
550 |
public static final short DMORIENT_LANDSCAPE = 2; |
562 |
public static final short DMORIENT_LANDSCAPE = 2; |
|
|
563 |
public static final short DMPAPER_LETTER = 1; |
564 |
public static final short DMPAPER_LEGAL = 5; |
565 |
public static final short DMPAPER_USER = 256; |
566 |
public static final short DMPAPER_EXECUTIVE = 7; |
567 |
public static final short DMPAPER_A2 = 66; |
568 |
public static final short DMPAPER_A4 = 9; |
569 |
public static final short DMPAPER_A5 = 11; |
570 |
public static final short DMPAPER_A6 = 70; |
571 |
public static final short DMPAPER_B5 = 34; |
572 |
public static final short DMPAPER_JB5 = 13; |
551 |
public static final int DSS_DISABLED = 0x20; |
573 |
public static final int DSS_DISABLED = 0x20; |
552 |
public static final int DSTINVERT = 0x550009; |
574 |
public static final int DSTINVERT = 0x550009; |
553 |
public static final int DST_BITMAP = 0x4; |
575 |
public static final int DST_BITMAP = 0x4; |
Lines 2189-2194
Link Here
|
2189 |
public static final native int DRAWITEMSTRUCT_sizeof (); |
2211 |
public static final native int DRAWITEMSTRUCT_sizeof (); |
2190 |
public static final native int DROPFILES_sizeof (); |
2212 |
public static final native int DROPFILES_sizeof (); |
2191 |
public static final native int DWM_BLURBEHIND_sizeof (); |
2213 |
public static final native int DWM_BLURBEHIND_sizeof (); |
|
|
2214 |
public static final native int FORM_INFO_1_sizeof (); |
2192 |
public static final native int EMR_sizeof (); |
2215 |
public static final native int EMR_sizeof (); |
2193 |
public static final native int EMREXTCREATEFONTINDIRECTW_sizeof (); |
2216 |
public static final native int EMREXTCREATEFONTINDIRECTW_sizeof (); |
2194 |
public static final native int EXTLOGFONTW_sizeof (); |
2217 |
public static final native int EXTLOGFONTW_sizeof (); |
Lines 2383-2388
Link Here
|
2383 |
return CreateDCA (lpszDriver1, lpszDevice1, lpszOutput, lpInitData); |
2406 |
return CreateDCA (lpszDriver1, lpszDevice1, lpszOutput, lpInitData); |
2384 |
} |
2407 |
} |
2385 |
|
2408 |
|
|
|
2409 |
public static final int /*long*/ ResetDC (int /*long*/ hdc, int /*long*/ lpInitData) { |
2410 |
if (IsUnicode) { |
2411 |
return ResetDCW (hdc, lpInitData); |
2412 |
} |
2413 |
return ResetDCA (hdc, lpInitData); |
2414 |
} |
2415 |
|
2386 |
public static final int /*long*/ CreateEnhMetaFile (int /*long*/ hdcRef, TCHAR lpFilename, RECT lpRect, TCHAR lpDescription) { |
2416 |
public static final int /*long*/ CreateEnhMetaFile (int /*long*/ hdcRef, TCHAR lpFilename, RECT lpRect, TCHAR lpDescription) { |
2387 |
if (IsUnicode) { |
2417 |
if (IsUnicode) { |
2388 |
char [] lpFilename1 = lpFilename == null ? null : lpFilename.chars; |
2418 |
char [] lpFilename1 = lpFilename == null ? null : lpFilename.chars; |
Lines 2932-2937
Link Here
|
2932 |
MoveMemory (Destination, Source1, Length); |
2962 |
MoveMemory (Destination, Source1, Length); |
2933 |
} |
2963 |
} |
2934 |
} |
2964 |
} |
|
|
2965 |
/** |
2966 |
* @param Destination cast=(PVOID) |
2967 |
* @param paperInfo cast=(CONST VOID *),flags=no_out |
2968 |
*/ |
2969 |
public static native final void MoveMemory (int /*long*/ Destination, FORM_INFO_1 paperInfo, int Length); |
2935 |
|
2970 |
|
2936 |
public static final void MoveMemory (TCHAR Destination, int /*long*/ Source, int Length) { |
2971 |
public static final void MoveMemory (TCHAR Destination, int /*long*/ Source, int Length) { |
2937 |
if (IsUnicode) { |
2972 |
if (IsUnicode) { |
Lines 2951-2956
Link Here
|
2951 |
} |
2986 |
} |
2952 |
} |
2987 |
} |
2953 |
|
2988 |
|
|
|
2989 |
public static final int DeviceCapabilities (String device, char[] port, int capability, int /*long*/ output, int /*long*/ devMode) { |
2990 |
if (IsUnicode) { |
2991 |
char[] nameChars = new char[device.length()+1]; |
2992 |
device.getChars(0, device.length(), nameChars, 0); |
2993 |
return OS.DeviceCapabilitiesW (nameChars, port, capability, output, devMode); |
2994 |
} else { |
2995 |
return OS.DeviceCapabilitiesA (device.getBytes(), port, capability, output, devMode); |
2996 |
} |
2997 |
} |
2998 |
|
2999 |
public static final boolean SetForm (int /*long*/ printer_handle, byte[] name, int level, int /*long*/ pForm) { |
3000 |
if (IsUnicode) { |
3001 |
return SetFormW(printer_handle, name, level, pForm); |
3002 |
} |
3003 |
return SetFormA(printer_handle, name, level, pForm); |
3004 |
} |
3005 |
|
2954 |
public static final void MoveMemory (DEVMODE Destination, int /*long*/ Source, int Length) { |
3006 |
public static final void MoveMemory (DEVMODE Destination, int /*long*/ Source, int Length) { |
2955 |
if (IsUnicode) { |
3007 |
if (IsUnicode) { |
2956 |
MoveMemory ((DEVMODEW)Destination, Source, Length); |
3008 |
MoveMemory ((DEVMODEW)Destination, Source, Length); |
Lines 3592-3597
Link Here
|
3592 |
*/ |
3644 |
*/ |
3593 |
public static final native int /*long*/ CreateDCW (char [] lpszDriver, char [] lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData); |
3645 |
public static final native int /*long*/ CreateDCW (char [] lpszDriver, char [] lpszDevice, int /*long*/ lpszOutput, int /*long*/ lpInitData); |
3594 |
/** |
3646 |
/** |
|
|
3647 |
* @param hdc cast=(HDC) |
3648 |
* @param lpInitData cast=(CONST VOID *) |
3649 |
*/ |
3650 |
public static final native int /*long*/ ResetDCW (int /*long*/ hdc, int /*long*/ lpInitData); |
3651 |
/** |
3652 |
* @param hdc cast=(HDC) |
3653 |
* @param lpInitData cast=(CONST VOID *) |
3654 |
*/ |
3655 |
public static final native int /*long*/ ResetDCA (int /*long*/ hdc, int /*long*/ lpInitData); |
3656 |
/** |
3595 |
* @param lpszDriver cast=(LPSTR) |
3657 |
* @param lpszDriver cast=(LPSTR) |
3596 |
* @param lpszDevice cast=(LPSTR) |
3658 |
* @param lpszDevice cast=(LPSTR) |
3597 |
* @param lpszOutput cast=(LPSTR) |
3659 |
* @param lpszOutput cast=(LPSTR) |
Lines 3753-3758
Link Here
|
3753 |
public static final native boolean DestroyMenu (int /*long*/ hMenu); |
3815 |
public static final native boolean DestroyMenu (int /*long*/ hMenu); |
3754 |
/** @param hWnd cast=(HWND) */ |
3816 |
/** @param hWnd cast=(HWND) */ |
3755 |
public static final native boolean DestroyWindow (int /*long*/ hWnd); |
3817 |
public static final native boolean DestroyWindow (int /*long*/ hWnd); |
|
|
3818 |
/** |
3819 |
* @param device cast=(LPCTSTR) |
3820 |
* @param port cast=(LPCTSTR) |
3821 |
* @param output cast=(LPTSTR) |
3822 |
* @param devMode cast=(const DEVMODE *) |
3823 |
*/ |
3824 |
public static native final int DeviceCapabilitiesA (byte[] device, char[] port, int capability, int /*long*/ output, int /*long*/ devMode); |
3825 |
/** |
3826 |
* @param device cast=(LPCTSTR) |
3827 |
* @param port cast=(LPCTSTR) |
3828 |
* @param output cast=(LPTSTR) |
3829 |
* @param devMode cast=(const DEVMODE *) |
3830 |
*/ |
3831 |
public static native final int DeviceCapabilitiesW (char[] device, char[] port, int capability, int /*long*/ output, int /*long*/ devMode); |
3756 |
public static final native int /*long*/ DispatchMessageW (MSG lpmsg); |
3832 |
public static final native int /*long*/ DispatchMessageW (MSG lpmsg); |
3757 |
public static final native int /*long*/ DispatchMessageA (MSG lpmsg); |
3833 |
public static final native int /*long*/ DispatchMessageA (MSG lpmsg); |
3758 |
/** @param hdc cast=(HDC) */ |
3834 |
/** @param hdc cast=(HDC) */ |
Lines 5750-5755
Link Here
|
5750 |
*/ |
5826 |
*/ |
5751 |
public static final native int ScriptGetCMap (int /*long*/ hdc, int /*long*/ psc, char[] pwcChars, int cChars, int dwFlags, short[] pwOutGlyphs); |
5827 |
public static final native int ScriptGetCMap (int /*long*/ hdc, int /*long*/ psc, char[] pwcChars, int cChars, int dwFlags, short[] pwOutGlyphs); |
5752 |
/** |
5828 |
/** |
|
|
5829 |
* @param name cast=(LPTSTR) |
5830 |
* @param length cast=(WORD*) |
5831 |
*/ |
5832 |
public static final native boolean GetDefaultPrinter (byte[] name, int[] /*long*/ length); |
5833 |
/** |
5834 |
* @param name cast=(LPTSTR) |
5835 |
* @param handle cast=(LPHANDLE*) |
5836 |
* @param defaults cast=(LPPRINTER_DEFAULTS) |
5837 |
*/ |
5838 |
public static final native boolean OpenPrinter (byte[] name, int[] /*long*/ handle, int[] /*long*/ defaults); |
5839 |
/** |
5840 |
* @param printer_handle cast=(HANDLE) |
5841 |
* @param level cast=(DWORD) |
5842 |
* @param pForm cast=(LPBYTE) |
5843 |
*/ |
5844 |
public static final native boolean AddForm (int /*long*/ printer_handle, int level, int /*long*/ pForm); |
5845 |
/** |
5846 |
* @param printer_handle cast=(HANDLE) |
5847 |
* @param name cast=(LPTSTR) |
5848 |
* @param level cast=(DWORD) |
5849 |
* @param pForm cast=(LPBYTE) |
5850 |
*/ |
5851 |
public static final native boolean SetFormW (int /*long*/ printer_handle, byte[] name, int level, int /*long*/ pForm); |
5852 |
/** |
5853 |
* @param printer_handle cast=(HANDLE) |
5854 |
* @param name cast=(LPTSTR) |
5855 |
* @param level cast=(DWORD) |
5856 |
* @param pForm cast=(LPBYTE) |
5857 |
*/ |
5858 |
public static final native boolean SetFormA (int /*long*/ printer_handle, byte[] name, int level, int /*long*/ pForm); |
5859 |
|
5860 |
/** |
5753 |
* @param hdc cast=(HDC) |
5861 |
* @param hdc cast=(HDC) |
5754 |
* @param psc cast=(SCRIPT_CACHE *) |
5862 |
* @param psc cast=(SCRIPT_CACHE *) |
5755 |
* @param pwcChars cast=(const WCHAR *) |
5863 |
* @param pwcChars cast=(const WCHAR *) |
Lines 6264-6269
Link Here
|
6264 |
* @param dwLayout cast=(DWORD) |
6372 |
* @param dwLayout cast=(DWORD) |
6265 |
*/ |
6373 |
*/ |
6266 |
public static final native int SetLayout (int /*long*/ hdc, int dwLayout); |
6374 |
public static final native int SetLayout (int /*long*/ hdc, int dwLayout); |
|
|
6375 |
/** |
6376 |
* @param hParent cast=(HWND) |
6377 |
* @param hPrinter cast=(HANDLE) |
6378 |
* @param deviceName cast=(LPTSTR) |
6379 |
* @param pDevModeOut cast=(PDEVMODE) |
6380 |
* @param pDevModeIn cast=(PDEVMODE) |
6381 |
* @param flags cast=(DWORD) |
6382 |
*/ |
6383 |
public static final native int DocumentProperties (int /*long*/ hParent, int /*long*/ hPrinter, byte[] deviceName, int /*long*/ pDevModeOut, int /*long*/ pDevModeIn, int flags); |
6267 |
/** @param hdc cast=(HDC) */ |
6384 |
/** @param hdc cast=(HDC) */ |
6268 |
public static final native int SetMapMode (int /*long*/ hdc, int fnMapMode); |
6385 |
public static final native int SetMapMode (int /*long*/ hdc, int fnMapMode); |
6269 |
/** |
6386 |
/** |
Lines 6569-6574
Link Here
|
6569 |
public static final native boolean UpdateLayeredWindow (int /*long*/ hwnd, int /*long*/ hdcDst, POINT pptDst, SIZE psize, int /*long*/ hdcSrc, POINT pptSrc, int crKey, BLENDFUNCTION pblend, int dwFlags); |
6686 |
public static final native boolean UpdateLayeredWindow (int /*long*/ hwnd, int /*long*/ hdcDst, POINT pptDst, SIZE psize, int /*long*/ hdcSrc, POINT pptSrc, int crKey, BLENDFUNCTION pblend, int dwFlags); |
6570 |
/** @param hWnd cast=(HWND) */ |
6687 |
/** @param hWnd cast=(HWND) */ |
6571 |
public static final native boolean UpdateWindow (int /*long*/ hWnd); |
6688 |
public static final native boolean UpdateWindow (int /*long*/ hWnd); |
|
|
6689 |
/** @param ptr cast=(CONST VOID *) */ |
6690 |
public static final native void updateNup (int /*long*/ ptr, int nup); |
6572 |
/** @param hWnd cast=(HWND) */ |
6691 |
/** @param hWnd cast=(HWND) */ |
6573 |
public static final native boolean ValidateRect (int /*long*/ hWnd, RECT lpRect); |
6692 |
public static final native boolean ValidateRect (int /*long*/ hWnd, RECT lpRect); |
6574 |
/** @param ch cast=(WCHAR) */ |
6693 |
/** @param ch cast=(WCHAR) */ |
Lines 6647-6651
Link Here
|
6647 |
*/ |
6766 |
*/ |
6648 |
public static final native boolean DuplicateHandle(int /*long*/ hSourceProcessHandle, int /*long*/ hSourceHandle, int /*long*/ hTargetProcessHandle, |
6767 |
public static final native boolean DuplicateHandle(int /*long*/ hSourceProcessHandle, int /*long*/ hSourceHandle, int /*long*/ hTargetProcessHandle, |
6649 |
int /*long*/ [] lpTargetHandle, int dwDesiredAccess, boolean b, int dwOptions); |
6768 |
int /*long*/ [] lpTargetHandle, int dwDesiredAccess, boolean b, int dwOptions); |
6650 |
|
|
|
6651 |
} |
6769 |
} |