Posted to tcl by patthoyts at Tue Apr 17 10:56:41 GMT 2007view raw

  1. /* builds with cl -nologo -W3 -MD z.c */
  2. -#define STRICT
  3. #define WIN32_LEAN_AND_MEAN
  4. #include <windows.h>
  5. #include <stdio.h>
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. if (argc != 3) {
  10. printf("error: z namne value\n");
  11. return -1;
  12. }
  13. SetEnvironmentVariableA(argv[1], argv[2]);
  14. return 0;
  15. }