Changeset 171
- Timestamp:
- 12/19/06 18:41:26 (5 years ago)
- Files:
-
- trunk/win32/dde.d (modified) (7 diffs)
- trunk/win32/setupapi.d (modified) (2 diffs)
- trunk/win32/shellapi.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dde.d
r155 r171 33 33 34 34 ubyte reserved() { return _bf & 0x3F; } 35 bool fBusy(){ return cast(bool) (_bf & 0x40); }36 bool fAck(){ return cast(bool) (_bf & 0x80); }35 bool fBusy() { return cast(bool) (_bf & 0x40); } 36 bool fAck() { return cast(bool) (_bf & 0x80); } 37 37 38 38 ubyte reserved(ubyte r) { … … 42 42 43 43 bool fBusy(bool f) { _bf = (_bf & ~0x40) | (f << 6); return f; } 44 bool fAck(bool f) { _bf = (_bf & ~0x80) | (f << 7); return f; }44 bool fAck(bool f) { _bf = (_bf & ~0x80) | (f << 7); return f; } 45 45 } 46 46 47 47 struct DDEADVISE { 48 48 ushort _bf; 49 short cfFormat;50 51 ubyte reserved(){ return _bf & 0x3FFF; }52 bool fDeferUpd() { return cast(bool) (_bf & 0x4000); }53 bool fAckReq(){ return cast(bool) (_bf & 0x8000); }49 short cfFormat; 50 51 ubyte reserved() { return _bf & 0x3FFF; } 52 bool fDeferUpd() { return cast(bool) (_bf & 0x4000); } 53 bool fAckReq() { return cast(bool) (_bf & 0x8000); } 54 54 55 55 ushort reserved(ushort r) { … … 58 58 } 59 59 60 bool fDeferUpd(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; }61 bool fAckReq(bool f){ _bf = (_bf & ~0x8000) | (f << 15); return f; }60 bool fDeferUpd(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; } 61 bool fAckReq(bool f) { _bf = (_bf & ~0x8000) | (f << 15); return f; } 62 62 } 63 63 64 64 struct DDEDATA { 65 65 ushort _bf; 66 short cfFormat;67 byte _Value[1];68 69 ubyte unused() { return _bf & 0x0FFF; }70 bool fResponse() { return cast(bool) (_bf & 0x1000); }71 bool fRelease() { return cast(bool) (_bf & 0x2000); }72 bool reserved() { return cast(bool) (_bf & 0x4000); }73 bool fAckReq() { return cast(bool) (_bf & 0x8000); }66 short cfFormat; 67 byte _Value; 68 69 ubyte unused() { return _bf & 0x0FFF; } 70 bool fResponse() { return cast(bool) (_bf & 0x1000); } 71 bool fRelease() { return cast(bool) (_bf & 0x2000); } 72 bool reserved() { return cast(bool) (_bf & 0x4000); } 73 bool fAckReq() { return cast(bool) (_bf & 0x8000); } 74 74 75 75 ushort unused(ushort r) { … … 78 78 } 79 79 80 byte* Value() { return _Value.ptr; }81 82 bool fResponse(bool f) { _bf = (_bf & ~0x1000) | (f << 12); return f; }83 bool fRelease(bool f){ _bf = (_bf & ~0x2000) | (f << 13); return f; }84 bool reserved(bool f){ _bf = (_bf & ~0x4000) | (f << 14); return f; }85 bool fAckReq(bool f){ _bf = (_bf & ~0x8000) | (f << 15); return f; }80 byte* Value() { return &_Value; } 81 82 bool fResponse(bool f) { _bf = (_bf & ~0x1000) | (f << 12); return f; } 83 bool fRelease(bool f) { _bf = (_bf & ~0x2000) | (f << 13); return f; } 84 bool reserved(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; } 85 bool fAckReq(bool f) { _bf = (_bf & ~0x8000) | (f << 15); return f; } 86 86 } 87 87 88 88 struct DDEPOKE { 89 89 ushort _bf; 90 short cfFormat;91 byte _Value[1];92 93 ushort unused() { return _bf & 0x1FFF; }94 bool fRelease(){ return cast(bool) (_bf & 0x2000); }95 ubyte fReserved() { return (_bf & 0xC000) >>> 14; }90 short cfFormat; 91 byte _Value; 92 93 ushort unused() { return _bf & 0x1FFF; } 94 bool fRelease() { return cast(bool) (_bf & 0x2000); } 95 ubyte fReserved() { return (_bf & 0xC000) >>> 14; } 96 96 97 97 ushort unused(ushort u) { … … 100 100 } 101 101 102 byte* Value() { return _Value.ptr; }103 104 bool fRelease(bool f){ _bf = (_bf & ~0x2000) | (f << 13); return f; }105 ubyte fReserved(ubyte r) { _bf = (_bf & ~0xC000) | (r << 14); return r; }102 byte* Value() { return &_Value; } 103 104 bool fRelease(bool f) { _bf = (_bf & ~0x2000) | (f << 13); return f; } 105 ubyte fReserved(ubyte r) { _bf = (_bf & ~0xC000) | (r << 14); return r; } 106 106 } 107 107 108 108 deprecated struct DDELN { 109 109 ushort _bf; 110 short cfFormat;111 112 ubyte unused() { return _bf & 0x1FFF; }113 bool fRelease() { return cast(bool) (_bf & 0x2000); }114 bool fDeferUpd() { return cast(bool) (_bf & 0x4000); }115 bool fAckReq() { return cast(bool) (_bf & 0x8000); }110 short cfFormat; 111 112 ubyte unused() { return _bf & 0x1FFF; } 113 bool fRelease() { return cast(bool) (_bf & 0x2000); } 114 bool fDeferUpd() { return cast(bool) (_bf & 0x4000); } 115 bool fAckReq() { return cast(bool) (_bf & 0x8000); } 116 116 117 117 ushort unused(ushort u) { … … 120 120 } 121 121 122 bool fRelease(bool f) { _bf = (_bf & ~0x2000) | (f << 13); return f; }123 bool fDeferUpd(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; }124 bool fAckReq(bool f) { _bf = (_bf & ~0x8000) | (f << 15); return f; }122 bool fRelease(bool f) { _bf = (_bf & ~0x2000) | (f << 13); return f; } 123 bool fDeferUpd(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; } 124 bool fAckReq(bool f) { _bf = (_bf & ~0x8000) | (f << 15); return f; } 125 125 } 126 126 127 127 deprecated struct DDEUP { 128 128 ushort _bf; 129 short cfFormat;130 byte _rgb[1];131 132 ubyte unused(){ return _bf & 0x0FFF; }133 bool fAck(){ return cast(bool) (_bf & 0x1000); }134 bool fRelease(){ return cast(bool) (_bf & 0x2000); }135 bool fReserved() { return cast(bool) (_bf & 0x4000); }136 bool fAckReq(){ return cast(bool) (_bf & 0x8000); }129 short cfFormat; 130 byte _rgb; 131 132 ubyte unused() { return _bf & 0x0FFF; } 133 bool fAck() { return cast(bool) (_bf & 0x1000); } 134 bool fRelease() { return cast(bool) (_bf & 0x2000); } 135 bool fReserved() { return cast(bool) (_bf & 0x4000); } 136 bool fAckReq() { return cast(bool) (_bf & 0x8000); } 137 137 138 138 ushort unused(ushort r) { … … 141 141 } 142 142 143 byte* rgb() { return _rgb.ptr; }144 145 bool fAck(bool f){ _bf = (_bf & ~0x1000) | (f << 12); return f; }146 bool fRelease(bool f){ _bf = (_bf & ~0x2000) | (f << 13); return f; }147 bool fReserved(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; }148 bool fAckReq(bool f){ _bf = (_bf & ~0x8000) | (f << 15); return f; }143 byte* rgb() { return &_rgb; } 144 145 bool fAck(bool f) { _bf = (_bf & ~0x1000) | (f << 12); return f; } 146 bool fRelease(bool f) { _bf = (_bf & ~0x2000) | (f << 13); return f; } 147 bool fReserved(bool f) { _bf = (_bf & ~0x4000) | (f << 14); return f; } 148 bool fAckReq(bool f) { _bf = (_bf & ~0x8000) | (f << 15); return f; } 149 149 } 150 150 trunk/win32/setupapi.d
r155 r171 39 39 const UINT USE_SP_DRVINFO_DATA_V1 = 1; 40 40 }*/ 41 41 /+ 42 42 const UINT _SETUPAPI_VER = 0x0400; // Earliest SetupAPI version 43 43 const UINT USE_SP_DRVINFO_DATA_V1 = 1; 44 +/ 45 const UINT _SETUPAPI_VER = WINVER; 46 const bool USE_SP_DRVINFO_DATA_V1 = !_WIN32_WINNT_ONLY || _WIN32_WINNT < 0x500; 44 47 45 48 enum : uint { … … 713 716 714 717 static if(_SETUPAPI_VER >= 0x0501) { 715 enum UINT {718 enum : UINT { 716 719 SPFILENOTIFY_QUEUESCAN_SIGNERINFO = 0x00000040 717 720 } trunk/win32/shellapi.d
r135 r171 236 236 WCHAR[256] szInfo; 237 237 union { 238 UINT uTimeout;239 UINT uVersion;238 UINT uTimeout; 239 UINT uVersion; 240 240 } 241 WCHAR[64] szInfoTitle;242 DWORD dwInfoFlags;241 WCHAR[64] szInfoTitle; 242 DWORD dwInfoFlags; 243 243 } else { 244 WCHAR[64] szTip;244 WCHAR[64] szTip; 245 245 } 246 246 static if (_WIN32_IE >= 0x600) {
