Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:docs:fapi:dosallochuge [2021/09/16 13:09] – prokushev | en:docs:fapi:dosallochuge [2021/10/16 14:05] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{logos:os2.gif? | + | {{page>en:templates:fapiint}} |
| ====== DosAllocHuge ====== | ====== DosAllocHuge ====== | ||
| Line 16: | Line 17: | ||
| * Size ([[USHORT]]) - input : Number of bytes to be allocated in the last (non-65536-byte) segment. A value of zero indicates none. | * Size ([[USHORT]]) - input : Number of bytes to be allocated in the last (non-65536-byte) segment. A value of zero indicates none. | ||
| * Selector ([[PSEL]]) - output : Address where the selector of the first segment allocated is returned. | * Selector ([[PSEL]]) - output : Address where the selector of the first segment allocated is returned. | ||
| - | * MaxNumSeg ([[USHORT]]) - input : Maximum number of 65536-byte segments this object occupies as a result of any subsequent [[DosReallocHuge]]. If MaxNumSeg is 0, OS/2 assumes this segment will never be increased by DosReallocHuge beyond its original size, though it may be decreased. This value is ignored in the DOS mode. | + | * MaxNumSeg ([[USHORT]]) - input : Maximum number of 65536-byte segments this object occupies as a result of any subsequent [[DosReallocHuge]]. If MaxNumSeg is 0, OS/2 assumes this segment will never be increased by [[DosReallocHuge]] beyond its original size, though it may be decreased. This value is ignored in the DOS mode. |
| * AllocFlags ([[USHORT]]) - input : Bit indicators describing the characteristics of the segment allocated. The bits that can be set and their meanings are: | * AllocFlags ([[USHORT]]) - input : Bit indicators describing the characteristics of the segment allocated. The bits that can be set and their meanings are: | ||
| - | ^ Bit ^ Description ^ | + | ^ Bit ^ Description ^ |
| | 15-4 | Reserved and must be set to zero. | | | 15-4 | Reserved and must be set to zero. | | ||
| | 3 | If segment is shared, it can be decreased in size by [[DosReallocHuge]]. | | | 3 | If segment is shared, it can be decreased in size by [[DosReallocHuge]]. | | ||
| Line 62: | Line 63: | ||
| **Note:** This request may be issued from privilege level 2. However, the segment is allocated as a privilege level 3 segment. | **Note:** This request may be issued from privilege level 2. However, the segment is allocated as a privilege level 3 segment. | ||
| - | ===== Family API Considerations | + | ==== Family API Considerations ==== |
| Line 126: | Line 127: | ||
| Returns WORD | Returns WORD | ||
| </ | </ | ||
| - | ====== Note ====== | + | ===== Note ===== |
| Text based on [[http:// | Text based on [[http:// | ||




