This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method returns a handle to a known system data type based on a file's contents. This is an abstract method; subclasses that describe files for which a system handle type exist (such as WPIcon or WPBitmap) should subclass this method.
#define INCL_WINWORKPLACE #include <os2.h> WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */ LHANDLE handle; /* Handle to the data type object (or NULLHANDLE if call is unsuccessful). */ handle = _wpQueryHandleFromContents(somSelf);