Browse Source

* getrandomrgn

git-svn-id: trunk@1809 -
marco 19 years ago
parent
commit
bd30d32683
2 changed files with 4 additions and 0 deletions
  1. 1 0
      rtl/win32/wininc/defines.inc
  2. 3 0
      rtl/win32/wininc/func.inc

+ 1 - 0
rtl/win32/wininc/defines.inc

@@ -5351,6 +5351,7 @@ const
 
 
   WM_APP                        = $8000;
   WM_APP                        = $8000;
 
 
+  SYSRGN                  	= 4;
 
 
 
 
 {$endif read_interface}
 {$endif read_interface}

+ 3 - 0
rtl/win32/wininc/func.inc

@@ -46,6 +46,7 @@
 
 
 {$ifdef read_interface}
 {$ifdef read_interface}
 
 
+function GetRandomRgn(aHDC: HDC; aHRGN: HRGN; iNum: WINT): WINT; stdcall; external 'gdi32';
 function AccessCheck(pSecurityDescriptor:PSECURITY_DESCRIPTOR; ClientToken:HANDLE; DesiredAccess:DWORD; GenericMapping:PGENERIC_MAPPING; PrivilegeSet:PPRIVILEGE_SET;PrivilegeSetLength:LPDWORD;
 function AccessCheck(pSecurityDescriptor:PSECURITY_DESCRIPTOR; ClientToken:HANDLE; DesiredAccess:DWORD; GenericMapping:PGENERIC_MAPPING; PrivilegeSet:PPRIVILEGE_SET;PrivilegeSetLength:LPDWORD;
   GrantedAccess:LPDWORD; AccessStatus:LPBOOL):WINBOOL; external 'advapi32' name 'AccessCheck';
   GrantedAccess:LPDWORD; AccessStatus:LPBOOL):WINBOOL; external 'advapi32' name 'AccessCheck';
 function InterlockedIncrement(lpAddend:LPLONG):LONG; external 'kernel32' name 'InterlockedIncrement';
 function InterlockedIncrement(lpAddend:LPLONG):LONG; external 'kernel32' name 'InterlockedIncrement';
@@ -1245,6 +1246,8 @@ function GlobalReAllocPtr(lp:Pointer;cbNew,flags:DWord):Pointer;
 function GlobalPtrHandle(lp:pointer):Pointer;
 function GlobalPtrHandle(lp:pointer):Pointer;
 function SetLayeredWindowAttributes(HWND:hwnd;crKey :COLORREF;bAlpha : byte;dwFlags : DWORD):WINBOOL; external 'user32' name 'SetLayeredWindowAttributes';
 function SetLayeredWindowAttributes(HWND:hwnd;crKey :COLORREF;bAlpha : byte;dwFlags : DWORD):WINBOOL; external 'user32' name 'SetLayeredWindowAttributes';
 
 
+
+
 {$endif read_interface}
 {$endif read_interface}