• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // Reference something in kernel32.dll. This will fail to link, verifying that
6 // GYP provides no default import library configuration.
7 // Note that we don't include Windows.h, as that will result in generating
8 // linker directives in the object file through #pragma comment(lib, ...).
9 typedef short BOOL;
10 
11 extern "C" __declspec(dllimport)
12 BOOL CopyFileW(const wchar_t*, const wchar_t*, BOOL);
13 
14 
main()15 int main() {
16   CopyFileW(0, 0, 0); // kernel32
17   return 0;
18 }
19