INT 31 P - DPMIsee DOS Protected-Mode Interface 1.0+ - INSTALL RESIDENT HANDLER INIT CALLBACK AX = 0C00h ES:(E)DI -> resident service provider structure (see #03158) Return: CF clear if successful CF set on error AX = error code (8015h,8021h,8025h) (see #03143 at AX=0000h) Note: calling this function declares an intent to provide resident protected mode services after terminating with AX=0C01h SeeAlso: AX=0303h,AX=0C01h Format of DPMIsee DOS Protected-Mode Interface resident service provider structure: Offset Size Description (Table 03158) 00h QWORD(quad-word) Eight bytes. See also DWORD, PWORD. descriptor for 16-bit data segment 08h QWORD(quad-word) Eight bytes. See also DWORD, PWORD. descriptor for 16-bit code segment (zeros if not supported) 10h WORD offset of 16-bit callback procedure 12h 2 BYTEs reserved 14h QWORD(quad-word) Eight bytes. See also DWORD, PWORD. descriptor for 32-bit data segment 1Ch QWORD(quad-word) Eight bytes. See also DWORD, PWORD. descriptor for 32-bit code segment (zeros if not supported) 24h DWORDDoubleword; four bytes. Commonly used to hold a 32-bit segment:offset or selector:offset address. offset of 32-bit callback procedure