Artifact Content

Not logged in

Artifact 32515530001c4a7e641aaa713e8aa6c86464d334


     1  module win32.dde;
     2  
     3  // Translated from Microsoft Platform SDK August 2001 Edition
     4  // by Y.Tomino
     5  
     6  
     7  // #ifndef _DDEHEADER_INCLUDED_
     8  // #define _DDEHEADER_INCLUDED_
     9  
    10  // #if _MSC_VER > 1000
    11  // #pragma once
    12  // #endif
    13  
    14  // #ifndef _WINDEF_
    15  import win32.windef;
    16  // #endif
    17  
    18  // #ifdef __cplusplus
    19  // extern "C" {
    20  // #endif
    21  
    22  enum : uint { WM_DDE_FIRST = 0x03E0 }
    23  const uint WM_DDE_INITIATE = WM_DDE_FIRST;
    24  const uint WM_DDE_TERMINATE = WM_DDE_FIRST+1;
    25  const uint WM_DDE_ADVISE = WM_DDE_FIRST+2;
    26  const uint WM_DDE_UNADVISE = WM_DDE_FIRST+3;
    27  const uint WM_DDE_ACK = WM_DDE_FIRST+4;
    28  const uint WM_DDE_DATA = WM_DDE_FIRST+5;
    29  const uint WM_DDE_REQUEST = WM_DDE_FIRST+6;
    30  const uint WM_DDE_POKE = WM_DDE_FIRST+7;
    31  const uint WM_DDE_EXECUTE = WM_DDE_FIRST+8;
    32  const uint WM_DDE_LAST = WM_DDE_FIRST+8;
    33  
    34  struct _0 {
    35  // #ifndef _MAC
    36  // unsigned short bAppReturnCode:8,
    37  // reserved:6,
    38  // fBusy:1,
    39  // fAck:1;
    40  // #else
    41  // ...
    42  // #endif
    43  }
    44  alias _0 DDEACK;
    45  
    46  struct _1 {
    47  // #ifndef _MAC
    48  // unsigned short reserved:14,
    49  // fDeferUpd:1,
    50  // fAckReq:1;
    51  // #else
    52  // ...
    53  // #endif
    54    short cfFormat;
    55  }
    56  alias _1 DDEADVISE;
    57  
    58  struct _2 {
    59  // #ifndef _MAC
    60  // unsigned short unused:12,
    61  // fResponse:1,
    62  // fRelease:1,
    63  // reserved:1,
    64  // fAckReq:1;
    65  // #else
    66  // ...
    67  // #endif
    68    short cfFormat;
    69    BYTE Value[1];
    70  }
    71  alias _2 DDEDATA;
    72  
    73  struct _3 {
    74  // #ifndef _MAC
    75  // unsigned short unused:13,
    76  
    77  // fRelease:1,
    78  // fReserved:2;
    79  // #else
    80  // ...
    81  // #endif
    82    short cfFormat;
    83    BYTE Value[1];
    84  
    85  }
    86  alias _3 DDEPOKE;
    87  
    88  struct _4 {
    89  // #ifndef _MAC
    90  // unsigned short unused:13,
    91  // fRelease:1,
    92  // fDeferUpd:1,
    93  // fAckReq:1;
    94  // #else
    95  // ...
    96  // #endif
    97    short cfFormat;
    98  }
    99  alias _4 DDELN;
   100  
   101  struct _5 {
   102  // #ifndef _MAC
   103  // unsigned short unused:12,
   104  // fAck:1,
   105  // fRelease:1,
   106  // fReserved:1,
   107  // fAckReq:1;
   108  // #else
   109  // ...
   110  // #endif
   111    short cfFormat;
   112    BYTE rgb[1];
   113  }
   114  alias _5 DDEUP;
   115  
   116  extern(Windows) export BOOL DdeSetQualityOfService(
   117      HWND hwndClient,
   118       SECURITY_QUALITY_OF_SERVICE *pqosNew,
   119      PSECURITY_QUALITY_OF_SERVICE pqosPrev);
   120  
   121  extern(Windows) export BOOL ImpersonateDdeClientWindow(
   122      HWND hWndClient,
   123      HWND hWndServer);
   124  
   125  extern(Windows) export LPARAM PackDDElParam(UINT msg, UINT_PTR uiLo, UINT_PTR uiHi);
   126  extern(Windows) export BOOL UnpackDDElParam(UINT msg, LPARAM lParam, PUINT_PTR puiLo, PUINT_PTR puiHi);
   127  extern(Windows) export BOOL FreeDDElParam(UINT msg, LPARAM lParam);
   128  extern(Windows) export LPARAM ReuseDDElParam(LPARAM lParam, UINT msgIn, UINT msgOut, UINT_PTR uiLo, UINT_PTR uiHi);
   129  
   130  // #ifdef __cplusplus
   131  // }
   132  // #endif
   133  
   134  // #endif // _DDEHEADER_INCLUDED_