UtterAccess HomeUtterAccess Wiki

Welcome Guest ( Log In | Register )

Custom Search
Edit Discussion
> GetAncestor    
CODE
Public Enum gaFlag
   GA_PARENT = 1
   GA_ROOT = 2
   GA_ROOTOWNER = 3
End Enum

Public Declare PtrSafe Function GetAncestor Lib "user32" (ByVal hWnd As LongPtr, ByVal gaFlags As gaFlag) As LongPtr

NOTE: The code reflects a possible number(s) of declarations. Depending on your specific needs, you may want different syntax. For details on how to declare an API procedure, consult API article. For pre-VBA7 (pre-Access 2010) compatible syntax, there are several sites that already documents the same API in more details. ALLAPI at mentalis.org is one such resource.

MSDN Reference: GetAncestor
See other pages that uses GetAncestor

Edit Discussion
Custom Search
Thank you for your support!
This page has been accessed 1,983 times.  This page was last modified 16:52, 18 May 2011 by BananaRepublic.   Disclaimers