| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 Google Inc. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <windows.h> | |
| 6 #include <delayimp.h> | |
| 7 #include <odbcinst.h> | |
| 8 #include <shlobj.h> | |
| 9 #include <sql.h> | |
| 10 #include <stdio.h> | |
| 11 | |
| 12 // Reference something in each of the default-linked libraries to cause a link | |
| 13 // error if one is not correctly included. | |
| 14 | |
| 15 extern "C" void* __puiHead; // DelayImp | |
| 16 | |
| 17 int main() { | |
| 18 CopyFile(0, 0, 0); // kernel32 | |
| 19 MessageBox(0, 0, 0, 0); // user32 | |
| 20 CreateDC(0, 0, 0, 0); // gdi32 | |
| 21 AddPrinter(0, 0, 0); // winspool | |
| 22 FindText(0); // comdlg32 | |
| 23 ClearEventLog(0, 0); // advapi32 | |
| 24 SHGetSettings(0, 0); // shell32 | |
| 25 OleFlushClipboard(); // ole32 | |
| 26 VarAdd(0, 0, 0); // oleaut32 | |
| 27 printf("%p", &CLSID_FileOpenDialog); // uuid | |
| 28 SQLAllocHandle(0, 0, 0); // odbc32 | |
| 29 return 0; | |
| 30 } | |
| OLD | NEW |