Claims
- 1. A method of invoking an operating system function from an application program comprising:making a function call of the form CreateDIBSection (a, b, c, d, e, f), wherein a through f are parameters and: a represents a handle to a device context; b represents a pointer to a data structure that describes the format of a bitmap to create; c represents a value that specifies whether members of the data structure contain explicit color values or palette indices; d represents a pointer to a buffer that receives the address of the bitmap bits; e represents an identifier of a memory mapped object from which the bitmap may be created; f represents a value that specifies an offset; and passing the parameters to the called operating system function.
- 2. The method of claim 1 wherein:a is named hdc; b is named IpIpinfo; c is named dwUsage; d is named IpIpBits; e is named hSection; and f is named dwOffset.
- 3. The method of claim 1 including returning a value g to the calling environment, g representing a handle to the bitmap if the function succeeds.
- 4. An operating system stored in memory comprising a plurality of functions which may be called by an application program, the operating system including a function CreateDIBSection, which accepts six parameters from a calling program and returns a value that is a handle to a created bitmap.
- 5. The operating system of claim 4 wherein the six parameters comprise:a handle to a device context; a pointer to a data structure that describes the format of a bitmap to create; a value that specifies whether members of the data structure contain explicit color values or palette indices; a pointer to a buffer that receives the address of the bitmap bits; an identifier of a memory mapped object from which the bitmap may be created; and a value that specifies an offset.
- 6. The operating system of claim 5 wherein:the handle to a device context is named hdc; the pointer to a data structure that describes the format of a bitmap to create is named IpIpinfo; the value that specifies whether members of the data structure contain explicit color values or palette indices is named dwUsage; the pointer to a buffer that receives the address of the bitmap bits is named IpIpBits; the identifier of a memory mapped object from which the bitmap may be created is named hsection; and the value that specifies an offset is named dwOffset.
RELATED APPLICATION DATA
This application is a continuation-in-part of U.S. application Ser. No. 08/328,349, filed Oct. 24, 1994. Now U.S. Pat. No. 5,734,387.
US Referenced Citations (1)
Number |
Name |
Date |
Kind |
5434913 |
Tung et al. |
Jul 1995 |
A |
Non-Patent Literature Citations (1)
Entry |
“Device Driver Adaption Guide” Microsoft Corporation, 1992; Chapters 1, 2 & 10. |
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
08/328349 |
Oct 1994 |
US |
Child |
08/355406 |
|
US |